Spring Integration

org.springframework.integration.config
Class ReleaseStrategyFactoryBean

java.lang.Object
  extended by org.springframework.integration.config.ReleaseStrategyFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<ReleaseStrategy>

public class ReleaseStrategyFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<ReleaseStrategy>

Convenience factory for XML configuration of a ReleaseStrategy. Encapsulates the knowledge of the default strategy and search algorithms for POJO and annotated methods.

Author:
Dave Syer

Constructor Summary
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.
 
Method Summary
 ReleaseStrategy getObject()
           
 java.lang.Class<?> getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReleaseStrategyFactoryBean

public ReleaseStrategyFactoryBean(java.lang.Object target)
Create a factory and set up the delegate which clients of the factory will see as its product.

Parameters:
target - the target object (null if default strategy is acceptable)

ReleaseStrategyFactoryBean

public 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.

Parameters:
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)
Method Detail

getObject

public ReleaseStrategy getObject()
                          throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>

Spring Integration