|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.provider.bean.DefaultBeanProvider
public class DefaultBeanProvider
BeanProvider implementation for accessing properties. Can handle a.b.c.d -> getA().getB().getC().getD(). Access properties in this order: bean.getA(), bean.isA(), bean.a(), bean.a. Can also deal with setter methods.
Constructor Summary | |
---|---|
DefaultBeanProvider()
|
Method Summary | |
---|---|
void |
destroy()
Shutdown Provider. |
Object |
getProperty(Object object,
String property)
Get a single property of the bean. |
void |
init()
Startup Provider. |
boolean |
setProperty(Object object,
String property,
Object value)
Set a single property of the bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBeanProvider()
Method Detail |
---|
public boolean setProperty(Object object, String property, Object value)
BeanProvider
setProperty
in interface BeanProvider
property
- Name of property to set.value
- Value to set property to.public Object getProperty(Object object, String property)
BeanProvider
getProperty
in interface BeanProvider
property
- Name of property to get.public void destroy()
Provider
destroy
in interface Provider
public void init() throws ProviderConfigurationException
Provider
init
in interface Provider
ProviderConfigurationException
- thrown if error in startup
or configuration.
|
OSCore Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |