|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.EnvironmentProperty
public class EnvironmentProperty
The EnvironmentProperty class hold the data about a single environment entry for J2EE components.
| Field Summary | |
|---|---|
protected java.lang.String |
lookupName
|
protected java.lang.String |
mappedName
|
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
EnvironmentProperty()
Construct an environment property if type String and empty string value and no description. |
|
EnvironmentProperty(EnvironmentProperty other)
copy constructor. |
|
EnvironmentProperty(java.lang.String name,
java.lang.String value,
java.lang.String description)
Construct an environment property of given name value and description. |
|
EnvironmentProperty(java.lang.String name,
java.lang.String value,
java.lang.String description,
java.lang.String type)
Construct an environment property of given name value and description and type. |
|
| Method Summary | |
|---|---|
void |
addInjectionTarget(InjectionTarget target)
Add a new injection target for this dependency |
boolean |
equals(java.lang.Object other)
Returns true if the argument is an environment property of the same name, false else. |
java.lang.String |
getComponentEnvName()
ComponentEnvName is the name of the corresponding java:comp/env entry for the object that is to be injected. |
java.util.Set<InjectionTarget> |
getInjectionTargets()
|
java.lang.String |
getInjectResourceType()
This is the class name of the type of resource that is to be injected. |
java.lang.String |
getLookupName()
|
java.lang.String |
getMappedName()
|
java.lang.String |
getResolvedValue()
Returns a resolved value of this environment property |
java.lang.Object |
getResolvedValueObject()
Returns the typed value object of this environment property. |
java.lang.String |
getType()
Returns value type of this environment property as a classname. |
java.lang.String |
getValue()
Returns the String value of this environment property |
java.lang.Object |
getValueObject()
Returns the typed value object of this environment property. |
java.lang.Class |
getValueType()
Returns value type of this environment property. |
boolean |
hasAValue()
|
int |
hashCode()
The hashCode of an environment property is the same as that of the name String. |
boolean |
hasInjectionTargetFromXml()
|
boolean |
hasLookupName()
|
protected boolean |
isConflictResourceGroup(EnvironmentProperty other)
|
boolean |
isInjectable()
True if a particular resource instance is injectable. |
boolean |
isSetValueCalled()
|
void |
print(java.lang.StringBuffer toStringBuffer)
Returns a String representation of this environment property. |
java.lang.StringBuffer |
printInjectableResourceInfo(java.lang.StringBuffer toStringBuffer)
|
void |
setInjectResourceType(java.lang.String resourceType)
|
void |
setLookupName(java.lang.String lName)
|
void |
setMappedName(java.lang.String mName)
|
void |
setType(java.lang.String type)
Returns value type of this environment property. |
void |
setValue(java.lang.String value)
Sets the value of the environment property to the given string. |
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor |
|---|
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri |
| Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair |
|---|
getDescription, getName, setDescription, setName |
| Field Detail |
|---|
protected java.lang.String mappedName
protected java.lang.String lookupName
| Constructor Detail |
|---|
public EnvironmentProperty(EnvironmentProperty other)
public EnvironmentProperty()
public EnvironmentProperty(java.lang.String name,
java.lang.String value,
java.lang.String description)
public EnvironmentProperty(java.lang.String name,
java.lang.String value,
java.lang.String description,
java.lang.String type)
| Method Detail |
|---|
public java.lang.String getValue()
getValue in interface NameValuePairpublic java.lang.String getResolvedValue()
public java.lang.Object getResolvedValueObject()
public java.lang.Object getValueObject()
public java.lang.Class getValueType()
public void setType(java.lang.String type)
setType in interface EnvironmentEntrypublic java.lang.String getType()
getType in interface EnvironmentEntrypublic void setMappedName(java.lang.String mName)
public java.lang.String getMappedName()
public void setLookupName(java.lang.String lName)
public java.lang.String getLookupName()
public boolean hasLookupName()
public void setValue(java.lang.String value)
setValue in interface NameValuePairpublic boolean isSetValueCalled()
public boolean hasAValue()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void print(java.lang.StringBuffer toStringBuffer)
print in class Descriptorprotected boolean isConflictResourceGroup(EnvironmentProperty other)
public void addInjectionTarget(InjectionTarget target)
InjectionCapable
addInjectionTarget in interface InjectionCapablepublic java.util.Set<InjectionTarget> getInjectionTargets()
getInjectionTargets in interface InjectionCapablepublic boolean isInjectable()
InjectionCapable
isInjectable in interface InjectionCapablepublic boolean hasInjectionTargetFromXml()
public java.lang.String getComponentEnvName()
InjectionCapable
getComponentEnvName in interface InjectionCapablepublic java.lang.String getInjectResourceType()
InjectionCapable
getInjectResourceType in interface InjectionCapablepublic void setInjectResourceType(java.lang.String resourceType)
setInjectResourceType in interface InjectionCapablepublic java.lang.StringBuffer printInjectableResourceInfo(java.lang.StringBuffer toStringBuffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||