com.sas.services
Class AbstractServiceAttributeFactory

com.sas.services.AbstractServiceAttributeFactory
All Implemented Interfaces:
ServiceAttributeFactoryInterface

public abstract class AbstractServiceAttributeFactory
implements ServiceAttributeFactoryInterface

Abstract implementation of a factory used to manufacture a service attribute. A service attribute is used in the context of the Discovery service as an optional qualifier used to discover a service.

A service may employ service attributes to distinguish itself from other services that satisfy the same service types. This permits a client to seek not only a service satisfying particular service type(s), but also optionally specified service attributes.

Since:
1.0
See Also:
ServiceAttributeFactoryInterface

Constructor Summary
AbstractServiceAttributeFactory()
           
 
Method Summary
abstract  ServiceAttributeInterface getServiceAttribute(java.util.Map nameValueMap)
          Abstract method used to get a service attribute with its fields initialized with values obtained from the specified map.
 ServiceAttributeInterface getServiceAttribute(ServiceConfigurationInterface serviceConfiguration)
          Gets the service attribute from the provided service configuration.
 

Constructor Detail

AbstractServiceAttributeFactory

public AbstractServiceAttributeFactory()
Method Detail

getServiceAttribute

public final ServiceAttributeInterface getServiceAttribute(ServiceConfigurationInterface serviceConfiguration)
                                                    throws InitializationException
Gets the service attribute from the provided service configuration.

Specified by:
getServiceAttribute in interface ServiceAttributeFactoryInterface
Parameters:
serviceConfiguration - Service configuration containing the service attribute.
Returns:
Service attribute.
Throws:
InitializationException - if unable to get the service attribute.

getServiceAttribute

public abstract ServiceAttributeInterface getServiceAttribute(java.util.Map nameValueMap)
                                                       throws InitializationException
Abstract method used to get a service attribute with its fields initialized with values obtained from the specified map.

Parameters:
nameValueMap - A Map of name value pairs where the key is the name of the attribute's field.
Returns:
Service attribute created based upon values specified in the map.
Throws:
InitializationException - if unable to get a service attribute based upon values specified in the map.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.