org.objectweb.proactive.core.component.xml
Class ComponentHandler

java.lang.Object
  |
  +--org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
        |
        +--org.objectweb.proactive.core.component.xml.ComponentHandler
All Implemented Interfaces:
UnmarshallerHandler, XMLHandler
Direct Known Subclasses:
AbstractContainerComponentHandler, PrimitiveComponentHandler

public abstract class ComponentHandler
extends AbstractUnmarshallerDecorator

Author:
Matthieu Morel

Field Summary
protected  GenericFactory cf
           
protected  ComponentsCache componentsCache
           
protected  ComponentType componentType
           
protected  java.util.HashMap componentTypes
           
protected  ControllerDescription controllerDescription
           
protected  ProActiveDescriptor deploymentDescriptor
           
static org.apache.log4j.Logger logger
           
protected  TypeFactory typeFactory
           
protected  java.lang.String virtualNode
           
 
Constructor Summary
ComponentHandler(ProActiveDescriptor deploymentDescriptor, ComponentsCache componentsCache, java.util.HashMap componentTypes)
           
 
Method Summary
 java.lang.Object getResultObject()
          Returns the object resulting of the processing of the SAX events.
protected  void notifyEndActiveHandler(java.lang.String name, UnmarshallerHandler activeHandler)
           
 void startContextElement(java.lang.String name, Attributes attributes)
          Receives notification that the XML element of given name and attributes has been read in the XML being deserialized.
 
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

controllerDescription

protected ControllerDescription controllerDescription

virtualNode

protected java.lang.String virtualNode

deploymentDescriptor

protected ProActiveDescriptor deploymentDescriptor

componentsCache

protected ComponentsCache componentsCache

componentTypes

protected java.util.HashMap componentTypes

typeFactory

protected TypeFactory typeFactory

cf

protected GenericFactory cf

componentType

protected ComponentType componentType
Constructor Detail

ComponentHandler

public ComponentHandler(ProActiveDescriptor deploymentDescriptor,
                        ComponentsCache componentsCache,
                        java.util.HashMap componentTypes)
Method Detail

notifyEndActiveHandler

protected void notifyEndActiveHandler(java.lang.String name,
                                      UnmarshallerHandler activeHandler)
                               throws org.xml.sax.SAXException
Specified by:
notifyEndActiveHandler in class AbstractUnmarshallerDecorator
org.xml.sax.SAXException

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.

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.

startContextElement

public void startContextElement(java.lang.String name,
                                Attributes attributes)
                         throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Receives notification that the XML element of given name and attributes has been read in the XML being deserialized. This element is the context element of the Object being unmarshalled. This context element is the element that has triggered the use of this handler.

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


Copyright © April 2004 INRIA All Rights Reserved.