jgroup.relacs.config
Class LayerConfig

java.lang.Object
  extended by jgroup.relacs.config.LayerConfig
All Implemented Interfaces:
ConfigurationObject

public final class LayerConfig
extends java.lang.Object
implements ConfigurationObject

Object for holding layer information and creating instances of the layer, and add listeners between the layers.

Since:
Jgroup 1.2
Author:
Hein Meling

Constructor Summary
LayerConfig()
          Constructs an empty layer config object.
LayerConfig(java.lang.String service, java.lang.String layerClassName)
          Constructs a layer config object for the specified class.
 
Method Summary
static void constructLayerObject(java.lang.String serviceName, java.util.Map layerMap, java.util.List<java.lang.Class> internalIfaces)
          Construct the layer for the given service name.
static void initializeLayers()
          Check that layer dependencies are satisfied, and prepare for construction the layers given in the service set.
 void parse(org.w3c.dom.Element elm)
          Parses the specified element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerConfig

public LayerConfig()
Constructs an empty layer config object.


LayerConfig

public LayerConfig(java.lang.String service,
                   java.lang.String layerClassName)
Constructs a layer config object for the specified class.

Method Detail

parse

public void parse(org.w3c.dom.Element elm)
           throws ConfigurationException
Parses the specified element.

Specified by:
parse in interface ConfigurationObject
Throws:
ConfigurationException

initializeLayers

public static void initializeLayers()
                             throws ConfigurationException
Check that layer dependencies are satisfied, and prepare for construction the layers given in the service set.

Throws:
ConfigurationException

constructLayerObject

public static void constructLayerObject(java.lang.String serviceName,
                                        java.util.Map layerMap,
                                        java.util.List<java.lang.Class> internalIfaces)
                                 throws JgroupException
Construct the layer for the given service name.

Parameters:
serviceName -
layerMap -
internalIfaces -
Throws:
JgroupException


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.