|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.discovery.DiscoveryServiceFactory
public class DiscoveryServiceFactory
Factory used to manufacture a remotely accessible discovery service.
The manufactured service will implement the following interfaces:
The service created by this factory does not depend upon any other foundation services.
ServiceFactoryInterface
Constructor Summary | |
---|---|
DiscoveryServiceFactory()
Constructs a default instance. |
Method Summary | |
---|---|
static DiscoveryServiceInterface |
createService(ServiceConfigurationInterface serviceConfiguration,
DiscoveryServiceInterface discoveryService)
Gets a discovery service that has been initialized with the specified service configuration. |
RemoteServiceInterface |
getService(ServiceConfigurationInterface serviceConfiguration,
DiscoveryServiceInterface discoveryService)
Gets a service that has been initialized with the specified service configuration. |
Methods inherited from class com.sas.services.AbstractServiceFactory |
---|
getService, getServiceProfile, isSingletonFactory |
Constructor Detail |
---|
public DiscoveryServiceFactory()
Method Detail |
---|
public final RemoteServiceInterface getService(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) throws ServiceException
RemoteServiceInterface
is the
base interface implemented by all services.
Gets a discovery service that has been initialized with the specified
service configuration. Note that the implementation of this method calls
getDiscoveryService(ServiceConfigurationInterface) which
provides a type safe return value. This method is intended for use
by the platform service deployment mechanism which requires a return
type of RemoteServiceInterface
.
getService
in interface ServiceFactoryInterface
getService
in class AbstractServiceFactory
serviceConfiguration
- Service configuration.discoveryService
- A discovery service which may be used to locate other services and
to which a service must bind in order to be discoverable by other
services.
ServiceException
- if unable to obtain a service based upon the specified
configuration.AbstractServiceFactory.getService(ServiceConfigurationInterface)
public static final DiscoveryServiceInterface createService(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) throws ServiceException
This method returns a discovery service that's capable of servicing remote clients. This method provides a type safe return value and is intended for general purpose use.
serviceConfiguration
- Service configuration.discoveryService
- A discovery service which may be used to locate other services and
to which a service must bind in order to be discoverable by other
services.
ServiceException
- if unable to obtain a service based upon the specified
configuration.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |