public class EmptyFactory<T> extends Object implements ServiceFactory<T,T>
| Constructor and Description |
|---|
EmptyFactory(Class<T> clazz,
VersionProperty serviceVersion) |
| Modifier and Type | Method and Description |
|---|---|
T |
build(T config)
Builds a new instance of a Service from the given ServiceConfig.
|
Class<T> |
getConfigurationClass()
Returns the Class of ServiceConfig required to build to this type of
Service.
|
Class<T> |
getServiceClass()
Returns the Class of the Service connected to.
|
VersionProperty |
getServiceVersion()
Returns the VersionProperty of the Service this connects to.
|
public EmptyFactory(Class<T> clazz, VersionProperty serviceVersion)
public VersionProperty getServiceVersion()
ServiceFactorygetServiceVersion in interface ServiceFactory<T,T>public T build(T config)
ServiceFactorybuild in interface ServiceFactory<T,T>config - Configuration parameters used to build to the IO.public Class<T> getServiceClass()
ServiceFactorygetServiceClass in interface ServiceFactory<T,T>public Class<T> getConfigurationClass()
ServiceFactorygetConfigurationClass in interface ServiceFactory<T,T>Copyright © 2011-2014. All Rights Reserved.