|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.services.binding.XMLServicesStore
XML implementation of ServicesStore.
Reads/writes/manages the XML config file for the ServiceBinding Manager module
Constructor Summary | |
XMLServicesStore()
|
Method Summary | |
void |
addService(String serverName,
javax.management.ObjectName serviceName,
ServiceConfig config)
This method is not usable in this implementation as XMLServiceStore is read-only |
ServiceConfig |
getService(String serverName,
javax.management.ObjectName serviceName)
Looks up a service, by server name and service name. |
void |
load(URL cfgURL)
Loads XML config file into memory and parses it into ServiceConfig objects. |
void |
removeService(String serverName,
javax.management.ObjectName serviceName)
This method is not usable in this implementation as XMLServiceStore is read-only |
void |
store(URL cfgURL)
Store is a noop as this is a read-only store |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLServicesStore()
Method Detail |
public void addService(String serverName, javax.management.ObjectName serviceName, ServiceConfig config) throws DuplicateServiceException
addService
in interface ServicesStore
serverName
- serviceName
- config
-
DuplicateServiceException
- never thrown
UnsupportedOperationException("XMLServiceStore
- is read-only") always thrownpublic ServiceConfig getService(String serverName, javax.management.ObjectName serviceName)
getService
in interface ServicesStore
serverName
- The name of the server in the config fileserviceName
- The name of the service (i.e. the JMX object name)
public void removeService(String serverName, javax.management.ObjectName serviceName)
removeService
in interface ServicesStore
serverName
- serviceName
-
UnsupportedOperationException("XMLServiceStore
- is read-only") always thrownpublic void load(URL cfgURL) throws Exception
load
in interface ServicesStore
cfgURL
- the URL representing the location of the store
Exception
- on any parse errorpublic void store(URL cfgURL) throws Exception
store
in interface ServicesStore
cfgURL
- the URL representing the location of the store
Exception
- thrown on any failure to save the store
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |