ServiceConfig - Type of Configuration class this factory takesServiceClass - Type of Service this factory createspublic interface ServiceFactory<ServiceClass,ServiceConfig>
| Modifier and Type | Method and Description |
|---|---|
ServiceClass |
build(ServiceConfig config)
Builds a new instance of a Service from the given ServiceConfig.
|
Class<ServiceConfig> |
getConfigurationClass()
Returns the Class of ServiceConfig required to build to this type of
Service.
|
Class<ServiceClass> |
getServiceClass()
Returns the Class of the Service connected to.
|
VersionProperty |
getServiceVersion()
Returns the VersionProperty of the Service this connects to.
|
VersionProperty getServiceVersion()
ServiceClass build(ServiceConfig config) throws Exception
config - Configuration parameters used to build to the IO.ExceptionClass<ServiceClass> getServiceClass()
Class<ServiceConfig> getConfigurationClass()
Copyright © 2011-2014. All Rights Reserved.