org.objectweb.proactive.core.component.xml
Class PrimitiveComponentHandler
java.lang.Object
|
+--org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
|
+--org.objectweb.proactive.core.component.xml.ComponentHandler
|
+--org.objectweb.proactive.core.component.xml.PrimitiveComponentHandler
- All Implemented Interfaces:
- UnmarshallerHandler, XMLHandler
- public class PrimitiveComponentHandler
- extends ComponentHandler
- Author:
- Matthieu Morel
Field Summary |
static org.apache.log4j.Logger |
logger
|
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)
handles the creation of primitive component on a virtual node
If the virtual node attribute is set to "null", then the component is created in the current vm
If the virtual node is cyclic, several instances of the primitive are created, with suffixed names |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static org.apache.log4j.Logger logger
PrimitiveComponentHandler
public PrimitiveComponentHandler(ProActiveDescriptor deploymentDescriptor,
ComponentsCache componentsCache,
java.util.HashMap componentTypes)
- Parameters:
deploymentDescriptor
-
startContextElement
public void startContextElement(java.lang.String name,
Attributes attributes)
throws org.xml.sax.SAXException
- handles the creation of primitive component on a virtual node
If the virtual node attribute is set to "null", then the component is created in the current vm
If the virtual node is cyclic, several instances of the primitive are created, with suffixed names
- Specified by:
startContextElement
in interface UnmarshallerHandler
- Overrides:
startContextElement
in class ComponentHandler
- Parameters:
name
- the name of the element just openedattributes
- 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
- Overrides:
getResultObject
in class ComponentHandler
- 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.
notifyEndActiveHandler
protected void notifyEndActiveHandler(java.lang.String name,
UnmarshallerHandler activeHandler)
throws org.xml.sax.SAXException
- Overrides:
notifyEndActiveHandler
in class ComponentHandler
org.xml.sax.SAXException
Copyright © April 2004 INRIA All Rights Reserved.