|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.test.support.MockStrategiesHelper
public class MockStrategiesHelper
Helper class for for loading default implementations of an interface.
| Constructor Summary | |
|---|---|
MockStrategiesHelper(ApplicationContext applicationContext)
Creates a new instance of the MockStrategiesHelper with the given application context. |
|
| Method Summary | ||
|---|---|---|
ApplicationContext |
getApplicationContext()
Returns the application context. |
|
|
getStrategy(Class<T> type)
Returns a single strategy found in the given application context. |
|
|
getStrategy(Class<T> type,
Class<D> defaultType)
Returns a single strategy found in the given application context, or instantiates a default strategy if no applicable strategy was found. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockStrategiesHelper(ApplicationContext applicationContext)
MockStrategiesHelper with the given application context.
applicationContext - the application context| Method Detail |
|---|
public ApplicationContext getApplicationContext()
public <T> T getStrategy(Class<T> type)
type - the type of bean to be found in the application context
null if no bean of the given type can be found
BeanInitializationException - if there is more than 1 beans of the given type
public <T,D extends T> T getStrategy(Class<T> type,
Class<D> defaultType)
type - the type of bean to be found in the application contextdefaultType - the type to instantiate and return when no bean of the specified type could be found
BeanInitializationException - if there is more than 1 beans of the given type
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||