| java.lang.Object org.jboss.services.binding.XMLServicesStore
XMLServicesStore | public class XMLServicesStore implements ServicesStore(Code) | | XML implementation of ServicesStore.
Reads/writes/manages the XML config file for the ServiceBinding Manager module
author: Mike Finn. author: Scott.Stark@jboss.org version: $Revision: 57210 $ |
Method Summary | |
public void | addService(String serverName, ObjectName serviceName, ServiceConfig config) | public ServiceConfig | getService(String serverName, ObjectName serviceName) Looks up a service, by server name and service name.
If the server or service does not exist, a null object is returned.
Parameters: serverName - The name of the server in the config file Parameters: serviceName - The name of the service (i.e. | public void | load(URL cfgURL) Loads XML config file into memory and parses it into ServiceConfig
objects. | public void | removeService(String serverName, ObjectName serviceName) | public void | store(URL cfgURL) |
getService | public ServiceConfig getService(String serverName, ObjectName serviceName)(Code) | | Looks up a service, by server name and service name.
If the server or service does not exist, a null object is returned.
Parameters: serverName - The name of the server in the config file Parameters: serviceName - The name of the service (i.e. the JMX object name) |
load | public void load(URL cfgURL) throws Exception(Code) | | Loads XML config file into memory and parses it into ServiceConfig
objects.
throws: Exception - on any parse error |
removeService | public void removeService(String serverName, ObjectName serviceName)(Code) | | This method is not usable in this implementation as XMLServiceStore is read-only
Parameters: serverName - Parameters: serviceName - exception: UnsupportedOperationException - ("XMLServiceStore is read-only") always thrown |
store | public void store(URL cfgURL) throws Exception(Code) | | Store is a noop as this is a read-only store
|
|
|