org.ehcache.spi
Interface ServiceProvider
- All Known Implementing Classes:
- ServiceLocator
public interface ServiceProvider
This acts as a repository for Service
instances, that can be used to
look them up by type.
Method Summary |
|
getService(java.lang.Class<T> serviceType)
Will look up the Service of the serviceType . |
getService
<T extends Service> T getService(java.lang.Class<T> serviceType)
- Will look up the
Service
of the serviceType
.
The returned service will be started or not depending on the started state of the ServiceProvider
.
- Type Parameters:
T
- The actual Service
type- Parameters:
serviceType
- the class
of the service being looked up
- Returns:
- the service instance for
T
type, or null
if it couldn't be located