| java.lang.Object org.sakaiproject.metaobj.utils.ioc.FieldRetrievingFactoryBean
FieldRetrievingFactoryBean | public class FieldRetrievingFactoryBean implements FactoryBean,BeanNameAware,InitializingBean(Code) | | FactoryBean which retrieves a static or non-static field value.
Typically used for retrieving public static final constants.
Usage example:
// standard definition for exposing a static field, specifying the "staticField" property
<bean id="myField" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
<property name="staticField"><value>java.sql.Connection.TRANSACTION_SERIALIZABLE</value></property>
</bean>
// convenience version that specifies a static field pattern as bean name
<bean id="java.sql.Connection.TRANSACTION_SERIALIZABLE" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean"/>
author: Juergen Hoeller See Also: FieldRetrievingFactoryBean.setStaticField since: 1.1 |
getTargetClass | public Class getTargetClass()(Code) | | Return the target class on which the field is defined.
|
getTargetField | public String getTargetField()(Code) | | Return the name of the field to be retrieved.
|
getTargetObject | public Object getTargetObject()(Code) | | Return the target object on which the field is defined.
|
isSingleton | public boolean isSingleton()(Code) | | |
setBeanName | public void setBeanName(String beanName)(Code) | | The bean name of this FieldRetrievingFactoryBean will be interpreted
as "staticField" pattern, if neither "targetClass" nor "targetObject"
nor "targetField" have been specified.
This allows for concise bean definitions with just an id/name.
|
|
|