- java.lang.Object
-
- com.gluonhq.attach.util.impl.DefaultServiceFactory<T>
-
- All Implemented Interfaces:
ServiceFactory<T>
public class DefaultServiceFactory<T> extends java.lang.Object implements ServiceFactory<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceFactory(java.lang.Class<T> serviceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<T>
getInstance()
java.lang.Class<T>
getServiceType()
-
-
-
Constructor Detail
-
DefaultServiceFactory
public DefaultServiceFactory(java.lang.Class<T> serviceType)
-
-
Method Detail
-
getServiceType
public java.lang.Class<T> getServiceType()
- Specified by:
getServiceType
in interfaceServiceFactory<T>
-
getInstance
public java.util.Optional<T> getInstance()
- Specified by:
getInstance
in interfaceServiceFactory<T>
-
-