cuba.util.ddgen.tokens
Class ComponentDescriptorReader

java.lang.Object
  extended by cuba.util.ddgen.tokens.ComponentDescriptorReader
All Implemented Interfaces:
ComponentReaderI

public class ComponentDescriptorReader
extends java.lang.Object
implements ComponentReaderI

This class reads a module's meta data from a component descriptor and provides its content as a list of CUBAComponents.


Field Summary
protected  java.lang.Class componentClass
           
protected  org.w3c.dom.Element componentDescriptorRoot
           
 
Constructor Summary
ComponentDescriptorReader(org.w3c.dom.Element componentDescriptorRoot)
           
 
Method Summary
protected  void addInterceptorMethod(org.w3c.dom.Node node, java.lang.String interceptorType, CUBAComponent componentObject)
           
protected  void initInjection(org.w3c.dom.Element refElement, Reference ref, java.lang.Class compImplClass)
           
protected  void initReference(org.w3c.dom.Element refElement, Reference ref, java.lang.Class compImplClass)
           
protected  void processComponentRefs(org.w3c.dom.Node node, CUBAComponent componentObject, java.lang.Class compImplClass)
           
protected  void processEnvEntries(org.w3c.dom.Node node, CUBAComponent componentObject, java.lang.Class compImplClass)
           
protected  void processInterceptor(org.w3c.dom.Element interceptionElement, CUBAComponent componentObject)
           
protected  void processNode(org.w3c.dom.Node node, CUBAComponent componentObject)
          Process a Node of a component-jar.xml file and add the information in the corresponding CUBAComponent object
protected  void processResourceRefs(org.w3c.dom.Node node, CUBAComponent componentObject, java.lang.Class compImplClass)
           
protected  void processTransactionElement(org.w3c.dom.Element transactionElement, CUBAComponent componentObject)
           
 java.util.ArrayList readComponents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentDescriptorRoot

protected org.w3c.dom.Element componentDescriptorRoot

componentClass

protected java.lang.Class componentClass
Constructor Detail

ComponentDescriptorReader

public ComponentDescriptorReader(org.w3c.dom.Element componentDescriptorRoot)
Method Detail

readComponents

public java.util.ArrayList readComponents()
                                   throws GeneratorException
Specified by:
readComponents in interface ComponentReaderI
Throws:
GeneratorException

processNode

protected void processNode(org.w3c.dom.Node node,
                           CUBAComponent componentObject)
                    throws GeneratorException
Process a Node of a component-jar.xml file and add the information in the corresponding CUBAComponent object

Parameters:
componentObject - Object representation of a CUBAComponent
node - the xml node to process.
Throws:
GeneratorException

addInterceptorMethod

protected void addInterceptorMethod(org.w3c.dom.Node node,
                                    java.lang.String interceptorType,
                                    CUBAComponent componentObject)
                             throws GeneratorException,
                                    InitException
Throws:
GeneratorException
InitException

processInterceptor

protected void processInterceptor(org.w3c.dom.Element interceptionElement,
                                  CUBAComponent componentObject)
                           throws GeneratorException,
                                  InitException
Throws:
GeneratorException
InitException

processTransactionElement

protected void processTransactionElement(org.w3c.dom.Element transactionElement,
                                         CUBAComponent componentObject)
                                  throws GeneratorException
Throws:
GeneratorException

initInjection

protected void initInjection(org.w3c.dom.Element refElement,
                             Reference ref,
                             java.lang.Class compImplClass)
                      throws GeneratorException
Throws:
GeneratorException

initReference

protected void initReference(org.w3c.dom.Element refElement,
                             Reference ref,
                             java.lang.Class compImplClass)
                      throws GeneratorException
Throws:
GeneratorException

processResourceRefs

protected void processResourceRefs(org.w3c.dom.Node node,
                                   CUBAComponent componentObject,
                                   java.lang.Class compImplClass)
                            throws GeneratorException
Throws:
GeneratorException

processComponentRefs

protected void processComponentRefs(org.w3c.dom.Node node,
                                    CUBAComponent componentObject,
                                    java.lang.Class compImplClass)
                             throws GeneratorException
Throws:
GeneratorException

processEnvEntries

protected void processEnvEntries(org.w3c.dom.Node node,
                                 CUBAComponent componentObject,
                                 java.lang.Class compImplClass)
                          throws GeneratorException
Throws:
GeneratorException