|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.support.DefaultStrategiesHelper
public class DefaultStrategiesHelper
Helper class for for loading default implementations of an interface. Encapsulates a properties object, which contains strategy interface names as keys, and comma-separated class names as values.
Simulates thenormal lifecycle
for beans, by calling BeanFactoryAware.setBeanFactory(BeanFactory)
, ApplicationContextAware.setApplicationContext(ApplicationContext)
,
etc.
Constructor Summary | |
---|---|
DefaultStrategiesHelper(Properties defaultStrategies)
Initializes a new instance of the DefaultStrategiesHelper based on the given set of properties. |
|
DefaultStrategiesHelper(Resource resource)
Initializes a new instance of the DefaultStrategiesHelper based on the given resource. |
Method Summary | |
---|---|
List |
getDefaultStrategies(Class strategyInterface)
Create a list of strategy objects for the given strategy interface. |
List |
getDefaultStrategies(Class strategyInterface,
ApplicationContext applicationContext)
Create a list of strategy objects for the given strategy interface. |
Object |
getDefaultStrategy(Class strategyInterface)
Return the default strategy object for the given strategy interface. |
Object |
getDefaultStrategy(Class strategyInterface,
ApplicationContext applicationContext)
Return the default strategy object for the given strategy interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultStrategiesHelper(Properties defaultStrategies)
DefaultStrategiesHelper
based on the given set of properties.
public DefaultStrategiesHelper(Resource resource) throws IllegalStateException
DefaultStrategiesHelper
based on the given resource.
IllegalStateException
Method Detail |
---|
public List getDefaultStrategies(Class strategyInterface) throws BeanInitializationException
Properties
object given at construction-time.
strategyInterface
- the strategy interface
BeansException
- if initialization failed
BeanInitializationException
public List getDefaultStrategies(Class strategyInterface, ApplicationContext applicationContext) throws BeanInitializationException
Properties
object given at construction-time. It instantiates the strategy objects and satisfies
ApplicationContextAware
with the supplied context if necessary.
strategyInterface
- the strategy interfaceapplicationContext
- used to satisfy strategies that are application context aware, may be
null
BeansException
- if initialization failed
BeanInitializationException
public Object getDefaultStrategy(Class strategyInterface) throws BeanInitializationException
strategyInterface
- the strategy interface
BeansException
- if initialization failed
BeanInitializationException
getDefaultStrategies(java.lang.Class)
public Object getDefaultStrategy(Class strategyInterface, ApplicationContext applicationContext) throws BeanInitializationException
getDefaultStrategies(Class,ApplicationContext)
, expecting a single object in the list.
strategyInterface
- the strategy interfaceapplicationContext
- used to satisfy strategies that are application context aware, may be
null
BeansException
- if initialization failed
BeanInitializationException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |