org.apache.openejb.config.sys
Class Resource

java.lang.Object
  extended by org.apache.openejb.config.sys.AbstractService
      extended by org.apache.openejb.config.sys.Resource
All Implemented Interfaces:
Service
Direct Known Subclasses:
ActiveMQResourceAdapterBuilder, DataSourceBuilder, JavaMailSessionBuilder, JmsConnectionFactoryBuilder, ORBBuilder, ProviderGenerator, QueueBuilder, TopicBuilder

public class Resource
extends AbstractService

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <simpleContent>
     <extension base="<http://www.w3.org/2001/XMLSchema>string">
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="jar" type="{http://www.openejb.org/System/Configuration}JarFileLocation" />
       <attribute name="jndi" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="provider" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </simpleContent>
 </complexType>
 


Field Summary
protected  List<String> aliases
           
protected  String jndi
           
protected  String postConstruct
           
protected  String preDestroy
           
 
Fields inherited from class org.apache.openejb.config.sys.AbstractService
className, classpath, constructor, factoryName, id, jar, properties, provider, type
 
Constructor Summary
Resource()
           
Resource(String id)
           
Resource(String id, String type)
           
Resource(String id, String type, String provider)
           
 
Method Summary
 boolean equals(Object o)
           
 List<String> getAliases()
           
 String getJndi()
          Gets the value of the jndi property.
 String getPostConstruct()
           
 String getPreDestroy()
           
 int hashCode()
           
 void setJndi(String value)
          Sets the value of the jndi property.
 void setPostConstruct(String postConstruct)
           
 void setPreDestroy(String preDestroy)
           
 
Methods inherited from class org.apache.openejb.config.sys.AbstractService
getClassName, getClasspath, getConstructor, getFactoryName, getId, getJar, getProperties, getPropertiesProvider, getProvider, getType, setClassName, setClasspath, setConstructor, setFactoryName, setId, setJar, setPropertiesProvider, setProvider, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jndi

protected String jndi

postConstruct

protected String postConstruct

preDestroy

protected String preDestroy

aliases

protected List<String> aliases
Constructor Detail

Resource

public Resource(String id)

Resource

public Resource(String id,
                String type)

Resource

public Resource(String id,
                String type,
                String provider)

Resource

public Resource()
Method Detail

getJndi

public String getJndi()
Gets the value of the jndi property.

Returns:
possible object is String

setJndi

public void setJndi(String value)
Sets the value of the jndi property.

Parameters:
value - allowed object is String

getAliases

public List<String> getAliases()

getPostConstruct

public String getPostConstruct()

setPostConstruct

public void setPostConstruct(String postConstruct)

getPreDestroy

public String getPreDestroy()

setPreDestroy

public void setPreDestroy(String preDestroy)

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractService

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractService


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.