com.xenonsoft.bridgetown.soa.config
Class ContextConfig

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

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

A context configuration provides a namespace for a collection of service beans.

Version:
$Id: ContextConfig.java,v 1.7 2005/02/23 01:31:11 peter_pilgrim Exp $
Author:
Peter Pilgrim
See Also:
Serialized Form

Constructor Summary
ContextConfig()
          Default constructor
 
Method Summary
 void addPointcut(PointcutConfig pointcut)
          Appends the pointcut to the map collection of global pointcuts.
 void addServices(ServicesConfig servicesConfig)
          Add the services configuration bean.
 java.lang.String getDescription()
          Gets the description
 java.lang.String getName()
           
 AssemblyConfig getParentAssemblyConfig()
          Gets the parent Assembly Config
 org.apache.commons.collections.map.ListOrderedMap getPointcutMap()
          Gets the pointcut map
 java.util.List getPointcutMapAsList()
          Conveniently retrieve the pointcut map collection as a list
 ServicesConfig getServicesConfig()
          Gets the servicesConfig
 void setDescription(java.lang.String description)
          Sets the description
 void setName(java.lang.String id)
           
 void setParentAssemblyConfig(AssemblyConfig parentAssemblyConfig)
          Sets the parent Assembly Config
 void setPointcutMap(org.apache.commons.collections.map.ListOrderedMap pointcutList)
          Sets the pointcut map
 void setServicesConfig(ServicesConfig servicesConfig)
          Sets the servicesConfig
 java.lang.String toString()
          Gets debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextConfig

public ContextConfig()
Default constructor

Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String id)

getDescription

public java.lang.String getDescription()
Gets the description

Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Sets the description

Parameters:
description - the new value for description

getServicesConfig

public ServicesConfig getServicesConfig()
Gets the servicesConfig

Returns:
Returns the servicesConfig.

addServices

public void addServices(ServicesConfig servicesConfig)
Add the services configuration bean.

NB: Actually this might be redundant bean because a <context> element tag is constrained to exactly one <services> so far in design

Parameters:
servicesConfig - one services configuration bean

setServicesConfig

public void setServicesConfig(ServicesConfig servicesConfig)
Sets the servicesConfig

Parameters:
servicesConfig - The servicesConfig to set.

getParentAssemblyConfig

public AssemblyConfig getParentAssemblyConfig()
Gets the parent Assembly Config

Returns:
Returns the parentAssemblyConfig.

setParentAssemblyConfig

public void setParentAssemblyConfig(AssemblyConfig parentAssemblyConfig)
Sets the parent Assembly Config

Parameters:
parentAssemblyConfig - the new value for parentAssemblyConfig

getPointcutMap

public org.apache.commons.collections.map.ListOrderedMap getPointcutMap()
Gets the pointcut map

Returns:
Returns the pointcut map.

setPointcutMap

public void setPointcutMap(org.apache.commons.collections.map.ListOrderedMap pointcutList)
Sets the pointcut map


addPointcut

public void addPointcut(PointcutConfig pointcut)
Appends the pointcut to the map collection of global pointcuts.

Parameters:
pointcut - the pointcut configuration
Throws:
AssemblyConfigException - if the pointcut is not uniquely named

getPointcutMapAsList

public java.util.List getPointcutMapAsList()
Conveniently retrieve the pointcut map collection as a list

Returns:
the list of pointcut configurations

toString

public java.lang.String toString()
Gets debuggable string

Returns:
String


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.