Class ClassBasedServiceStrategy<T>
java.lang.Object
net.shibboleth.ext.spring.service.ClassBasedServiceStrategy<T>
- Type Parameters:
T- the service type to look for; defaults toServiceableComponent
- All Implemented Interfaces:
Function<ApplicationContext,ServiceableComponent<T>>
public class ClassBasedServiceStrategy<T>
extends Object
implements Function<ApplicationContext,ServiceableComponent<T>>
Strategy to create
ServiceableComponents from the ApplicationContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<ServiceableComponent>The class we are looking for. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ClassBasedServiceStrategy(Class<ServiceableComponent> serviceableClaz) Constructor. -
Method Summary
-
Field Details
-
serviceClaz
The class we are looking for.
-
-
Constructor Details
-
ClassBasedServiceStrategy
public ClassBasedServiceStrategy()Constructor. -
ClassBasedServiceStrategy
public ClassBasedServiceStrategy(@ParameterName(name="serviceableClaz") Class<ServiceableComponent> serviceableClaz) Constructor.- Parameters:
serviceableClaz- what to look for.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ApplicationContext,ServiceableComponent<T>>
-