org.apache.openejb.config.sys
Class AbstractService

java.lang.Object
  extended by org.apache.openejb.config.sys.AbstractService
All Implemented Interfaces:
Service
Direct Known Subclasses:
ConnectionManager, Connector, Container, JndiProvider, ProxyFactory, Resource, SecurityService, TransactionManager

public abstract class AbstractService
extends Object
implements Service

Java class for Service complex type.

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

 <complexType name="Service">
   <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="provider" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </simpleContent>
 </complexType>
 


Field Summary
protected  String id
           
protected  String jar
           
protected  Properties properties
           
protected  String provider
           
protected  String type
           
 
Constructor Summary
protected AbstractService()
           
protected AbstractService(String id)
           
protected AbstractService(String id, String type)
           
protected AbstractService(String id, String type, String provider)
           
 
Method Summary
 String getId()
          Gets the value of the id property.
 String getJar()
          Gets the value of the jar property.
 Properties getProperties()
          Gets the value of the properties property.
 String getProvider()
          Gets the value of the provider property.
 String getType()
           
 void setId(String value)
          Sets the value of the id property.
 void setJar(String value)
          Sets the value of the jar property.
 void setProvider(String value)
          Sets the value of the provider property.
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Properties properties

id

protected String id

jar

protected String jar

provider

protected String provider

type

protected String type
Constructor Detail

AbstractService

protected AbstractService(String id)

AbstractService

protected AbstractService(String id,
                          String type)

AbstractService

protected AbstractService(String id,
                          String type,
                          String provider)

AbstractService

protected AbstractService()
Method Detail

getProperties

public Properties getProperties()
Gets the value of the properties property.

This accessor method returns a reference to the live Properties Object, not a snapshot. Therefore any modification you make to the returned Properties will be present inside the JAXB object. This is why there is not a set method for the properties property.

For example, to add a new value, do as follows:

    getProperties().setProperty(key, value);
 

Specified by:
getProperties in interface Service

getId

public String getId()
Gets the value of the id property.

Specified by:
getId in interface Service
Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Specified by:
setId in interface Service
Parameters:
value - allowed object is String

getJar

public String getJar()
Gets the value of the jar property.

Specified by:
getJar in interface Service
Returns:
possible object is String

setJar

public void setJar(String value)
Sets the value of the jar property.

Specified by:
setJar in interface Service
Parameters:
value - allowed object is String

getProvider

public String getProvider()
Gets the value of the provider property.

Specified by:
getProvider in interface Service
Returns:
possible object is String

setProvider

public void setProvider(String value)
Sets the value of the provider property.

Specified by:
setProvider in interface Service
Parameters:
value - allowed object is String

getType

public String getType()
Specified by:
getType in interface Service

setType

public void setType(String type)
Specified by:
setType in interface Service


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.