java.lang.module.spi
Interface ServiceLocator.Factory
- Enclosing class:
- ServiceLocator
public static interface ServiceLocator.Factory
A factory for new service instances.
newService
<T> T newService(java.lang.Class<T> serviceType,
ServiceSpace space)
throws java.lang.Exception
- Returns a new service instance.
- Parameters:
serviceType - The service implementation type.space - The service space that is requesting the new instance.
- Returns:
- The new service.
- Throws:
java.lang.Exception - If an exception occurs.
Send comments or questions to Bryan Atsatt