T - the service type to look for; defaults to ServiceableComponentpublic class ClassBasedServiceStrategy<T> extends Object implements Function<ApplicationContext,net.shibboleth.utilities.java.support.service.ServiceableComponent<T>>
ServiceableComponents from the ApplicationContext.| Modifier and Type | Field and Description |
|---|---|
private Class<? extends net.shibboleth.utilities.java.support.service.ServiceableComponent> |
serviceClaz
The class we are looking for.
|
| Constructor and Description |
|---|
ClassBasedServiceStrategy()
Constructor.
|
ClassBasedServiceStrategy(Class<? extends net.shibboleth.utilities.java.support.service.ServiceableComponent> serviceableClaz)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.shibboleth.utilities.java.support.service.ServiceableComponent<T> |
apply(ApplicationContext appContext) |
public ClassBasedServiceStrategy()
public ClassBasedServiceStrategy(Class<? extends net.shibboleth.utilities.java.support.service.ServiceableComponent> serviceableClaz)
serviceableClaz - what to look for.@Nullable public net.shibboleth.utilities.java.support.service.ServiceableComponent<T> apply(@Nullable ApplicationContext appContext)
apply in interface Function<ApplicationContext,net.shibboleth.utilities.java.support.service.ServiceableComponent<T>>Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.