org.openejb.alt.assembler.classic.xml
Class Service

java.lang.Object
  extended by org.openejb.alt.assembler.classic.InfoObject
      extended by org.openejb.alt.assembler.classic.ServiceInfo
          extended by org.openejb.alt.assembler.classic.xml.Service
All Implemented Interfaces:
java.io.Serializable, ServiceTypeConstants

public class Service
extends ServiceInfo

A subclass of ServiceInfo filled with data from an XML file. Populates the member variables of ServiceInfo in this classes initializeFromDOM method.

Author:
David Blevins, Richard Monson-Haefel
See Also:
ServiceInfo, Serialized Form

Field Summary
static java.lang.String CODEBASE
          Represents the codebase element in the XML config file.
static java.lang.String DESCRIPTION
          Represents the description element in the XML config file.
static java.lang.String DISPLAY_NAME
          Represents the display-name element in the XML config file.
static java.lang.String FACTORY_CLASS
          Represents the factory-class element in the XML config file.
static java.lang.String SERVICE_NAME
          Represents the service-name element in the XML config file.
 
Fields inherited from class org.openejb.alt.assembler.classic.ServiceInfo
codebase, description, displayName, factoryClass, factoryClassName, properties, serviceName, serviceType
 
Fields inherited from interface org.openejb.alt.assembler.classic.ServiceTypeConstants
PERSISTENCE_SERVICE, SECURITY_SERVICE, TRANSACTION_SERVICE
 
Constructor Summary
Service()
           
 
Method Summary
static void initializeFromDOM(org.w3c.dom.Node node, ServiceInfo serviceInfo)
          Parses out the values needed by this DomObject from the DOM Node passed in.
 void serializeToDOM(org.w3c.dom.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTION

public static final java.lang.String DESCRIPTION
Represents the description element in the XML config file.

See Also:
Constant Field Values

DISPLAY_NAME

public static final java.lang.String DISPLAY_NAME
Represents the display-name element in the XML config file.

See Also:
Constant Field Values

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
Represents the service-name element in the XML config file.

See Also:
Constant Field Values

FACTORY_CLASS

public static final java.lang.String FACTORY_CLASS
Represents the factory-class element in the XML config file.

See Also:
Constant Field Values

CODEBASE

public static final java.lang.String CODEBASE
Represents the codebase element in the XML config file.

See Also:
Constant Field Values
Constructor Detail

Service

public Service()
Method Detail

initializeFromDOM

public static void initializeFromDOM(org.w3c.dom.Node node,
                                     ServiceInfo serviceInfo)
                              throws OpenEJBException
Parses out the values needed by this DomObject from the DOM Node passed in.

Throws:
OpenEJBException
See Also:
Node

serializeToDOM

public void serializeToDOM(org.w3c.dom.Node node)
                    throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.