|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
An interface used to acquire an implementation of a service based upon a desired service configuration. Each service must provide its own factory implmentation.
A naming convention of "XxxServiceFactory.java"
is suggested where "Xxx" represents the service type. For example, a
factory used to get an instance of a LoggingServiceInterface
would be named "LoggingServiceFactory".
An abstract implementation of a service factory
AbstractServiceFactory is available to be subclassed.
| Method Summary | |
String[] |
getDependentServiceInterfaces()
Gets an array of strings representing the Java interfaces of service(s) which must be available at the time this factory's getService(ServiceConfigurationInterface)
method is invoked. |
RemoteServiceInterface |
getService(ServiceConfigurationInterface serviceConfiguration)
Gets a service that has been initialized with the specified service configuration. |
ServiceComponentConfigInterface |
getServiceComponentConfiguration()
Gets the service component's configuration. |
| Method Detail |
public RemoteServiceInterface getService(ServiceConfigurationInterface serviceConfiguration)
throws ServiceException
RemoteServiceInterface is the
base interface implemented by all services.serviceConfiguration - Service configuration.ServiceException - if unable to obtain a service based upon
the specified configuration.public String[] getDependentServiceInterfaces()
getService(ServiceConfigurationInterface)
method is invoked.public ServiceComponentConfigInterface getServiceComponentConfiguration()
null
if a service configuration is not available for this service.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||