Module net.shibboleth.ext.spring
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 createServiceableComponents from theApplicationContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Class<ServiceableComponent>serviceClazThe class we are looking for.
-
Constructor Summary
Constructors Constructor Description ClassBasedServiceStrategy()Constructor.ClassBasedServiceStrategy(Class<ServiceableComponent> serviceableClaz)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceableComponent<T>apply(ApplicationContext appContext)
-
-
-
Field Detail
-
serviceClaz
@Nonnull private final Class<ServiceableComponent> serviceClaz
The class we are looking for.
-
-
Constructor Detail
-
ClassBasedServiceStrategy
public ClassBasedServiceStrategy()
Constructor.
-
ClassBasedServiceStrategy
public ClassBasedServiceStrategy(@ParameterName(name="serviceableClaz") Class<ServiceableComponent> serviceableClaz)
Constructor.- Parameters:
serviceableClaz- what to look for.
-
-
Method Detail
-
apply
@Nullable public ServiceableComponent<T> apply(@Nullable ApplicationContext appContext)
- Specified by:
applyin interfaceFunction<ApplicationContext,ServiceableComponent<T>>
-
-