public class ReleaseStrategyFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<ReleaseStrategy>, org.springframework.beans.factory.InitializingBean
ReleaseStrategy.
Encapsulates the knowledge of the default strategy and search algorithms for POJO and annotated methods.| Constructor and Description |
|---|
ReleaseStrategyFactoryBean() |
ReleaseStrategyFactoryBean(java.lang.Object target)
Deprecated.
since 4.2.5 in favor of appropriate setters
to avoid
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck() |
ReleaseStrategyFactoryBean(java.lang.Object target,
java.lang.String methodName)
Deprecated.
since 4.2.5 in favor of appropriate setters
to avoid
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ReleaseStrategy |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setMethodName(java.lang.String methodName) |
void |
setTarget(java.lang.Object target) |
public ReleaseStrategyFactoryBean()
@Deprecated public ReleaseStrategyFactoryBean(java.lang.Object target)
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck()target - the target object (null if default strategy is acceptable)@Deprecated
public ReleaseStrategyFactoryBean(java.lang.Object target,
java.lang.String methodName)
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck()target - the target object (null if default strategy is acceptable)methodName - the method name to invoke in the target (null if it can be inferred)public void setTarget(java.lang.Object target)
public void setMethodName(java.lang.String methodName)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic ReleaseStrategy getObject() throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>