Class ClassBasedServiceStrategy<T>
java.lang.Object
net.shibboleth.shared.spring.service.ClassBasedServiceStrategy<T>
- Type Parameters:
T- the service type to look for
- All Implemented Interfaces:
Function<ApplicationContext,,AbstractServiceableComponent<T>> NonnullFunction<ApplicationContext,AbstractServiceableComponent<T>>
public class ClassBasedServiceStrategy<T>
extends Object
implements NonnullFunction<ApplicationContext,AbstractServiceableComponent<T>>
Strategy to create
AbstractServiceableComponents from the ApplicationContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionThe class we are looking for. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serviceClaz
The class we are looking for.
-
-
Constructor Details
-
ClassBasedServiceStrategy
public ClassBasedServiceStrategy(@ParameterName(name="serviceableClaz") @Nonnull Class<T> serviceableClaz) Constructor.- Parameters:
serviceableClaz- what to look for.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ApplicationContext,AbstractServiceableComponent<T>> - Specified by:
applyin interfaceNonnullFunction<ApplicationContext,AbstractServiceableComponent<T>>
-