org.objectweb.proactive.core.component.config
Class ComponentConfigurationHandler

java.lang.Object
  extended byorg.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
      extended byorg.objectweb.proactive.core.component.config.ComponentConfigurationHandler
All Implemented Interfaces:
ComponentConfigurationConstants, UnmarshallerHandler, XMLHandler

public class ComponentConfigurationHandler
extends AbstractUnmarshallerDecorator
implements ComponentConfigurationConstants

A handler for parsing the xml component configuration.

Author:
Matthieu Morel

Nested Class Summary
 class ComponentConfigurationHandler.ControllerHandler
           
 
Field Summary
static org.apache.log4j.Logger logger
           
 
Fields inherited from interface org.objectweb.proactive.core.component.config.ComponentConfigurationConstants
COMPONENT_CONFIGURATION_ELEMENT, CONTROLLER_ELEMENT, CONTROLLERS_ELEMENT, IMPLEMENTATION_ELEMENT, INPUT_INTERCEPTOR_ATTRIBUTE, INTERFACE_ELEMENT, OUTPUT_INTERCEPTOR_ATTRIBUTE
 
Constructor Summary
ComponentConfigurationHandler()
           
 
Method Summary
static ComponentConfigurationHandler createComponentConfigurationHandler(java.lang.String componentsConfigurationLocation)
           
 java.util.Map getControllers()
           
 java.util.List getInputInterceptors()
           
 java.util.List getOutputInterceptors()
           
 java.lang.Object getResultObject()
          Returns the object resulting of the processing of the SAX events.
protected  void notifyEndActiveHandler(java.lang.String name, UnmarshallerHandler activeHandler)
          see AbstractUnmarshallerDecorator.notifyEndActiveHandler(java.lang.String, org.objectweb.proactive.core.xml.handler.UnmarshallerHandler)
 void startContextElement(java.lang.String name, Attributes attributes)
          see UnmarshallerHandler.startContextElement(java.lang.String, org.objectweb.proactive.core.xml.io.Attributes)
 
Methods inherited from class org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
addHandler, checkActiveHandler, checkNonEmpty, endElement, endPrefixMapping, getHandler, readValue, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.log4j.Logger logger
Constructor Detail

ComponentConfigurationHandler

public ComponentConfigurationHandler()
Method Detail

getInputInterceptors

public java.util.List getInputInterceptors()

getOutputInterceptors

public java.util.List getOutputInterceptors()

getControllers

public java.util.Map getControllers()

createComponentConfigurationHandler

public static ComponentConfigurationHandler createComponentConfigurationHandler(java.lang.String componentsConfigurationLocation)
                                                                         throws java.io.IOException,
                                                                                org.xml.sax.SAXException,
                                                                                ProActiveException
Throws:
java.io.IOException
org.xml.sax.SAXException
ProActiveException

notifyEndActiveHandler

protected void notifyEndActiveHandler(java.lang.String name,
                                      UnmarshallerHandler activeHandler)
                               throws org.xml.sax.SAXException
see AbstractUnmarshallerDecorator.notifyEndActiveHandler(java.lang.String, org.objectweb.proactive.core.xml.handler.UnmarshallerHandler)

Specified by:
notifyEndActiveHandler in class AbstractUnmarshallerDecorator
Throws:
org.xml.sax.SAXException

startContextElement

public void startContextElement(java.lang.String name,
                                Attributes attributes)
                         throws org.xml.sax.SAXException
see UnmarshallerHandler.startContextElement(java.lang.String, org.objectweb.proactive.core.xml.io.Attributes)

Specified by:
startContextElement in interface UnmarshallerHandler
Parameters:
name - the name of the element just opened
attributes - the attributes of this element
Throws:
org.xml.sax.SAXException - if an exception occur during processing

getResultObject

public java.lang.Object getResultObject()
                                 throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Returns the object resulting of the processing of the SAX events.

Specified by:
getResultObject in interface UnmarshallerHandler
Returns:
the object resulting of the processing of the SAX events or null
Throws:
org.xml.sax.SAXException - if the state of the handler does not allow to return any resulting object.


Copyright 2001-2005 INRIA All Rights Reserved.