java.lang .Object com.sun.jbi.binding.file.util .UtilBase com.sun.jbi.binding.file.util .ConfigReader ConfigReader public class ConfigReader extends UtilBase implements FileBindingResources (Code) Reads the configuration XML file and loads the data into the EndpointBean
objects. The parsing and reading information may not be state of the art
but serves the purpose of getting the data from XML. Simple.
author: Sun Microsystems, Inc.
Constructor Summary public ConfigReader () Creates a new ConfigReader object.
Method Summary public EndpointBean getBean (String endpoint) Returns the Bean object corresponding to the endpoint.
Parameters: endpoint - endpoint name.public EndpointBean []getEndpoint () Gets the endpoint list corresponding to a config file.public intgetEndpointCount () Returns the total number of endopoints in the config file.public voidinit (Document doc) Initializes the config file and loads services.
ConfigReader public ConfigReader()(Code) Creates a new ConfigReader object.
getBean public EndpointBean getBean(String endpoint)(Code) Returns the Bean object corresponding to the endpoint.
Parameters: endpoint - endpoint name. endpoint Bean object.
getEndpoint public EndpointBean [] getEndpoint()(Code) Gets the endpoint list corresponding to a config file.
End point Bean list
getEndpointCount public int getEndpointCount()(Code) Returns the total number of endopoints in the config file.
int number of endpoints.
init public void init(Document doc)(Code) Initializes the config file and loads services.
Parameters: doc - Name of the config file.