com.xenonsoft.bridgetown.soa.config
Class ServicesConfig

java.lang.Object
  extended bycom.xenonsoft.bridgetown.soa.config.ServicesConfig
All Implemented Interfaces:
java.io.Serializable

public class ServicesConfig
extends java.lang.Object
implements java.io.Serializable

Service collection configuration bean maintains a list of services This is an object that stores services data after parsing the bridgetown XML configuration file.

Version:
$Id: ServicesConfig.java,v 1.6 2005/02/23 01:31:13 peter_pilgrim Exp $
Author:
Peter Pilgrim
See Also:
Serialized Form

Constructor Summary
ServicesConfig()
          Default constructor
 
Method Summary
 void addService(ServiceConfig service)
          Adds the service to the service context
 ContextConfig getParentContextConfig()
          Gets the parentContextConfig
 ServiceConfig getServiceById(java.lang.String id)
          Gets the service configuration by id (identifier
 ServiceConfig getServiceByInterface(java.lang.String interfaceClass)
          Gets the service configuration by interface Class (identifier
 java.util.List getServiceList()
          A convenience method that retrieves a shallow copy of the services collection as a list collection
 java.util.Map getServiceMap()
           
 void setParentContextConfig(ContextConfig parentContextConfig)
          Sets the parentContextConfig
 void setServiceMap(java.util.Map serviceMap)
           
 java.lang.String toString()
          Gets the debug info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServicesConfig

public ServicesConfig()
Default constructor

Method Detail

getServiceMap

public java.util.Map getServiceMap()
Returns:
Returns the serviceMap.

setServiceMap

public void setServiceMap(java.util.Map serviceMap)
Parameters:
serviceMap - The serviceMap to set.

getServiceList

public java.util.List getServiceList()
A convenience method that retrieves a shallow copy of the services collection as a list collection

Returns:
Returns the services as a list collection

getParentContextConfig

public ContextConfig getParentContextConfig()
Gets the parentContextConfig

Returns:
Returns the parentContextConfig.

setParentContextConfig

public void setParentContextConfig(ContextConfig parentContextConfig)
Sets the parentContextConfig

Parameters:
parentContextConfig - The parentContextConfig to set.

addService

public void addService(ServiceConfig service)
                throws java.lang.IllegalArgumentException
Adds the service to the service context

Parameters:
service -
Throws:
java.lang.IllegalArgumentException

getServiceById

public ServiceConfig getServiceById(java.lang.String id)
Gets the service configuration by id (identifier


getServiceByInterface

public ServiceConfig getServiceByInterface(java.lang.String interfaceClass)
Gets the service configuration by interface Class (identifier


toString

public java.lang.String toString()
Gets the debug info



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.