public class ReleaseStrategyFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<ReleaseStrategy>
ReleaseStrategy
. Encapsulates the knowledge of the default
strategy and search algorithms for POJO and annotated methods.Constructor and Description |
---|
ReleaseStrategyFactoryBean(java.lang.Object target)
Create a factory and set up the delegate which clients of the factory will see as its product.
|
ReleaseStrategyFactoryBean(java.lang.Object target,
java.lang.String methodName)
Create a factory and set up the delegate which clients of the factory will see as its product.
|
Modifier and Type | Method and Description |
---|---|
ReleaseStrategy |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
public ReleaseStrategyFactoryBean(java.lang.Object target)
target
- the target object (null if default strategy is acceptable)public ReleaseStrategyFactoryBean(java.lang.Object target, java.lang.String methodName)
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 ReleaseStrategy getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>
java.lang.Exception
public 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>