Spring Integration

org.springframework.integration.config
Class CorrelationStrategyFactoryBean

java.lang.Object
  extended by org.springframework.integration.config.CorrelationStrategyFactoryBean
All Implemented Interfaces:
FactoryBean<CorrelationStrategy>

public class CorrelationStrategyFactoryBean
extends Object
implements FactoryBean<CorrelationStrategy>

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

Author:
Dave Syer

Constructor Summary
CorrelationStrategyFactoryBean(Object target)
          Create a factory and set up the delegate which clients of the factory will see as its product.
CorrelationStrategyFactoryBean(Object target, String methodName)
          Create a factory and set up the delegate which clients of the factory will see as its product.
 
Method Summary
 CorrelationStrategy getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationStrategyFactoryBean

public CorrelationStrategyFactoryBean(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)

CorrelationStrategyFactoryBean

public CorrelationStrategyFactoryBean(Object target,
                                      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 CorrelationStrategy getObject()
                              throws Exception
Specified by:
getObject in interface FactoryBean<CorrelationStrategy>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<CorrelationStrategy>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<CorrelationStrategy>

Spring Integration

Copyright © 2010. All Rights Reserved.