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

java.lang.Object
  |
  +--org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
        |
        +--org.objectweb.proactive.core.component.xml.ComponentsDescriptorHandler
All Implemented Interfaces:
ComponentsDescriptorConstants, UnmarshallerHandler, XMLHandler

public class ComponentsDescriptorHandler
extends AbstractUnmarshallerDecorator
implements ComponentsDescriptorConstants

Author:
Matthieu Morel

Field Summary
static org.apache.log4j.Logger logger
           
 
Fields inherited from interface org.objectweb.proactive.core.component.xml.ComponentsDescriptorConstants
BINDING_CLIENT_TAG, BINDING_SERVER_TAG, BINDING_TAG, BINDINGS_TAG, COMPONENT_NAME_TAG, COMPONENT_TYPE_ATTRIBUTE_TAG, COMPONENT_TYPE_NAME_TAG, COMPONENT_TYPE_TAG, COMPONENT_VIRTUAL_NODE_TAG, COMPONENTS_DESCRIPTOR_TAG, COMPONENTS_TAG, COMPOSITE_COMPONENT_TAG, INTERFACE_CARDINALITY_COLLECTIVE_TAG, INTERFACE_CARDINALITY_SINGLE_TAG, INTERFACE_CARDINALITY_TAG, INTERFACE_CONTINGENCY_MANDATORY_TAG, INTERFACE_CONTINGENCY_OPTIONAL_TAG, INTERFACE_CONTINGENCY_TAG, INTERFACE_NAME_TAG, INTERFACE_SIGNATURE_TAG, INTERFACE_TAG, NULL, PARALLEL_COMPOSITE_COMPONENT_TAG, PRIMITIVE_COMPONENT_IMPLEMENTATION_TAG, PRIMITIVE_COMPONENT_TAG, PROVIDES_TAG, REQUIRES_TAG, TYPES_TAG
 
Constructor Summary
ComponentsDescriptorHandler(ProActiveDescriptor deploymentDescriptor)
           
 
Method Summary
static ComponentsDescriptorHandler createComponentsDescriptorHandler(java.lang.String componentsDescriptorURL, ProActiveDescriptor deploymentDescriptor)
           
static ComponentsDescriptorHandler createComponentsDescriptorHandler(java.lang.String componentsDescriptorURL, java.lang.String deploymentDescriptorURL)
           
 java.lang.Object getResultObject()
          see UnmarshallerHandler.getResultObject()
static void main(java.lang.String[] args)
           
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

ComponentsDescriptorHandler

public ComponentsDescriptorHandler(ProActiveDescriptor deploymentDescriptor)
Method Detail

createComponentsDescriptorHandler

public static ComponentsDescriptorHandler createComponentsDescriptorHandler(java.lang.String componentsDescriptorURL,
                                                                            java.lang.String deploymentDescriptorURL)
                                                                     throws java.io.IOException,
                                                                            org.xml.sax.SAXException,
                                                                            ProActiveException
java.io.IOException
org.xml.sax.SAXException
ProActiveException

createComponentsDescriptorHandler

public static ComponentsDescriptorHandler createComponentsDescriptorHandler(java.lang.String componentsDescriptorURL,
                                                                            ProActiveDescriptor deploymentDescriptor)
                                                                     throws java.io.IOException,
                                                                            org.xml.sax.SAXException,
                                                                            ProActiveException
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
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

main

public static void main(java.lang.String[] args)

getResultObject

public java.lang.Object getResultObject()
                                 throws org.xml.sax.SAXException
see UnmarshallerHandler.getResultObject()

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 © April 2004 INRIA All Rights Reserved.