Qwylt

java.lang.module.spi
Interface ServiceLocator.Factory

Enclosing class:
ServiceLocator

public static interface ServiceLocator.Factory

A factory for new service instances.


Method Summary
<T> T
newService(java.lang.Class<T> serviceType, ServiceSpace space)
          Returns a new service instance.
 

Method Detail

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.

Qwylt

Send comments or questions to Bryan Atsatt