com.sun.enterprise.deployment.node.runtime
Class RuntimeDescriptorFactory

java.lang.Object
  extended by com.sun.enterprise.deployment.node.runtime.RuntimeDescriptorFactory

public class RuntimeDescriptorFactory
extends java.lang.Object

This class is responsible for instanciating runtime Descriptor classes

Version:
Author:
Jerome Dochez

Constructor Summary
protected RuntimeDescriptorFactory()
          This is a factory object no need for DescriptorFactory instance
 
Method Summary
static java.lang.Object getDescriptor(java.lang.String xmlPath)
           
static java.lang.Class getDescriptorClass(java.lang.String xmlPath)
           
static void register(XMLElement xmlPath, java.lang.Class clazz)
          register a new descriptor class handling a particular XPATH in the DTD.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeDescriptorFactory

protected RuntimeDescriptorFactory()
This is a factory object no need for DescriptorFactory instance

Method Detail

register

public static void register(XMLElement xmlPath,
                            java.lang.Class clazz)
register a new descriptor class handling a particular XPATH in the DTD.

Parameters:
xmlPath - absolute or relative XPath
clazz - the descriptor class to use

getDescriptorClass

public static java.lang.Class getDescriptorClass(java.lang.String xmlPath)
Returns:
the descriptor tag for a particular XPath

getDescriptor

public static java.lang.Object getDescriptor(java.lang.String xmlPath)
Returns:
a new instance of a registered descriptor class for the supplied XPath


Copyright © 2012 GlassFish Community. All Rights Reserved.