|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.ServiceInitializationObject
public class ServiceInitializationObject
Foundation service's configuration represented as an XML document.
A service's configuration is represented as a UTF-8 encoded XML document. Supported object types are:
Constructor Summary | |
---|---|
ServiceInitializationObject()
Constructs a default instance for a service which does not have a configuration. |
|
ServiceInitializationObject(org.xml.sax.InputSource configXMLInputSource)
Constructs an initialization object initialized with the specified service factory. |
|
ServiceInitializationObject(java.lang.String configXML)
Constructs an initialization object initialized with the specified service factory. |
Method Summary | |
---|---|
void |
addConfiguration(java.lang.String configName,
java.lang.String configXML)
Adds a configuration. |
void |
addConfigurationDocument(java.lang.String configName,
org.w3c.dom.Document document)
Adds a configuration. |
org.w3c.dom.Document |
createDocument(java.lang.Object config)
Creates an XML document representation of the service configuration. |
AbstractServiceComponentConfig |
getConfiguration(DocumentServiceConfigAdapterInterface adapter)
Gets a service configuration using the specified adapter to convert XML document to a service configuration. |
java.util.List<ServiceConfigDocument> |
getConfigurations()
Gets a copy of the collection of the service's configurations. |
java.lang.Object |
getInitializationObject()
Gets an object used to configure the service. |
void |
setInitializationObject(java.lang.Object config)
Sets the initialization object. |
Constructor Detail |
---|
public ServiceInitializationObject()
Use setInitializationObject(Object)
to specify the service's
configuration data.
public ServiceInitializationObject(java.lang.String configXML) throws ServiceException, java.lang.IllegalArgumentException
configXML
- Initialization data or null
if the service
does not have any configuration data.
ServiceException
- if unable to create a configuration.
java.lang.IllegalArgumentException
- if invalid XML is specified.ServiceInitializationObject(InputSource)
public ServiceInitializationObject(org.xml.sax.InputSource configXMLInputSource) throws ServiceException, java.lang.IllegalArgumentException
configXMLInputSource
- Initialization data or null
if the service
does not have any configuration data.
ServiceException
- if unable to create a configuration.
java.lang.IllegalArgumentException
- if an invalid input source is specified.ServiceInitializationObject(String)
Method Detail |
---|
public final org.w3c.dom.Document createDocument(java.lang.Object config) throws InitializationException
config
- A String
or InputSource
that represents a
service's XML configuration.
InitializationException
public final void setInitializationObject(java.lang.Object config) throws InitializationException
config
- Configuration from which an XML document
will be obtained that represents a service's configuration.
A service's configuration is represented as a UTF-8 encoded XML document.
Supported object types are:
InitializationException
- if an invalid object is specified.public final void addConfiguration(java.lang.String configName, java.lang.String configXML) throws InitializationException
configName
- Service configuration's name.configXML
- XML service configuration.
InitializationException
public final void addConfigurationDocument(java.lang.String configName, org.w3c.dom.Document document) throws InitializationException
configName
- Service configuration's name.document
- XML document that represents the service's configuration.
InitializationException
public final java.lang.Object getInitializationObject()
getInitializationObject
in interface InitializationObjectInterface
public final java.util.List<ServiceConfigDocument> getConfigurations()
ServiceConfigDocument
.public final AbstractServiceComponentConfig getConfiguration(DocumentServiceConfigAdapterInterface adapter) throws ServiceException
adapter
- Adapter used to translate an XML document into a service
configuration.
null
if a configuration
is not defined.
ServiceException
- if unable to create a configuration.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |