public class WebappServiceLoader<T> extends Object
ServletContainerInitializer
,
ServiceLoader
Constructor and Description |
---|
WebappServiceLoader(Context context)
Construct a loader to load services from a ServletContext.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
load(Class<T> serviceType)
Load the providers for a service type.
|
public WebappServiceLoader(Context context)
context
- the context to usepublic List<T> load(Class<T> serviceType) throws IOException
serviceType
- the type of service to loadIOException
- if there was a problem loading any serviceCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.