com.xenonsoft.bridgetown.soa.config
Class AssemblyConfig

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

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

Assembly configuration is the base of the XML configuration and maintains a collection of contextes

Version:
Author:
Peter Pilgrim, Jul 22, 2004 5:17:57 PM
See Also:
Serialized Form

Constructor Summary
AssemblyConfig()
          Default constructor
 
Method Summary
 void addContext(ContextConfig context)
          Adds a context configuration to the assembly
 void addPointcut(PointcutConfig pointcut)
          Appends the pointcut to the map collection of global pointcuts.
 boolean contains(java.lang.String name)
          Returns boolean value if the context exists by name
 ContextConfig getContextConfig(java.lang.String name)
          Retrieve the context configuration by context name
 java.util.List getContextList()
          A convenience method that retrieves a shallow copy of the context collection as a list collection
 java.util.Map getContextMap()
          Gets a shallow copy of the contextMap
 java.lang.String getDescription()
          Gets the description
 org.apache.commons.collections.map.ListOrderedMap getPointcutMap()
          Gets the global pointcut map
 java.util.List getPointcutMapAsList()
          Conveniently retrieve the global pointcut map collection as a list
 void setDescription(java.lang.String description)
          Sets the description
 void setPointcutMap(org.apache.commons.collections.map.ListOrderedMap pointcutMap)
          Sets the global pointcut map
 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

AssemblyConfig

public AssemblyConfig()
Default constructor

Method Detail

addContext

public void addContext(ContextConfig context)
Adds a context configuration to the assembly


contains

public boolean contains(java.lang.String name)
Returns boolean value if the context exists by name


getContextMap

public java.util.Map getContextMap()
Gets a shallow copy of the contextMap

Returns:
Returns the contextMap.

getContextList

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

Returns:
Returns the context as a list collection

getContextConfig

public ContextConfig getContextConfig(java.lang.String name)
Retrieve the context configuration by context name

Parameters:
name - the name
Returns:
context map

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 description to set.

getPointcutMap

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

Returns:
Returns the globalPointcutMap.

setPointcutMap

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

Parameters:
pointcutMap - The global pointcut Map to set.

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 global 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.