org.apache.openejb.jee
Class EnvEntry
java.lang.Object
org.apache.openejb.jee.EnvEntry
- All Implemented Interfaces:
- Injectable, JndiReference, Keyable<String>
public class EnvEntry
- extends Object
- implements JndiReference
The env-entryType is used to declare an application's
environment entry. The declaration consists of an optional
description, the name of the environment entry, a type
(optional if the value is injected, otherwise required), and
an optional value.
It also includes optional elements to define injection of
the named resource into fields or JavaBeans properties.
If a value is not specified and injection is requested,
no injection will occur and no entry of the specified name
will be created. This allows an initial value to be
specified in the source code without being incorrectly
changed when no override has been specified.
If a value is not specified and no injection is requested,
a value must be supplied during deployment.
This type is used by env-entry elements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected List<Text> description
envEntryName
protected String envEntryName
envEntryType
protected String envEntryType
envEntryValue
protected String envEntryValue
mappedName
protected String mappedName
injectionTarget
protected List<InjectionTarget> injectionTarget
id
protected String id
EnvEntry
public EnvEntry()
EnvEntry
public EnvEntry(String envEntryName,
String envEntryType,
String envEntryValue)
getName
public String getName()
- Specified by:
getName
in interface JndiReference
getType
public String getType()
- Specified by:
getType
in interface JndiReference
setName
public void setName(String name)
- Specified by:
setName
in interface JndiReference
getKey
public String getKey()
- Description copied from interface:
Keyable
- Gets the immutable key for this object.
- Specified by:
getKey
in interface Keyable<String>
- Returns:
- gets the immutable key for this object
setType
public void setType(String type)
- Specified by:
setType
in interface JndiReference
getDescription
public List<Text> getDescription()
getEnvEntryName
public String getEnvEntryName()
setEnvEntryName
public void setEnvEntryName(String value)
getEnvEntryType
public String getEnvEntryType()
- Gets the value of the envEntryType property.
setEnvEntryType
public void setEnvEntryType(String value)
getEnvEntryValue
public String getEnvEntryValue()
setEnvEntryValue
public void setEnvEntryValue(String value)
getMappedName
public String getMappedName()
- Specified by:
getMappedName
in interface JndiReference
setMappedName
public void setMappedName(String value)
- Specified by:
setMappedName
in interface JndiReference
getInjectionTarget
public List<InjectionTarget> getInjectionTarget()
- Specified by:
getInjectionTarget
in interface Injectable
getId
public String getId()
setId
public void setId(String value)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.