cuba.util.ddgen.tokens
Class EnvironmentEntry

java.lang.Object
  extended by cuba.util.ddgen.tokens.Reference
      extended by cuba.util.ddgen.tokens.EnvironmentEntry

public class EnvironmentEntry
extends Reference

ResourceReference representsan environment entry in a component-jar.xml file.

Author:
Jan Wegener

Constructor Summary
EnvironmentEntry()
           
 
Method Summary
 java.lang.String getLink()
          Returns the reference name which only makes sense for function EJB3AdapterGenerator.generateReferenceDeclarations(cuba.util.GeneratedFile, java.lang.String, java.util.Collection, java.lang.String).
 java.lang.String getValue()
           
 void setLink(java.lang.String link)
          Sets the environment entrie's value attribute rather than the link attribute, allowing to provide an environment value by the @Resource annotation's link spec.
 void setValue(java.lang.String string)
           
 
Methods inherited from class cuba.util.ddgen.tokens.Reference
ejb3InjectionNameAttr, ejb3InterfaceAttrName, ejb3LinkAttrName, getInjectionMemberName, getInjectionMethodDeclaratorType, getInjectionMethodName, getReferenceName, getTypeName, isComponentContext, needsInjection, setInjectionMemberName, setInjectionMethodDeclaratorType, setInjectionMethodName, setReferenceName, setTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentEntry

public EnvironmentEntry()
Method Detail

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String string)

setLink

public void setLink(java.lang.String link)
Sets the environment entrie's value attribute rather than the link attribute, allowing to provide an environment value by the @Resource annotation's link spec. This is an extension over the EJB 3 annotations.

Overrides:
setLink in class Reference

getLink

public java.lang.String getLink()
Returns the reference name which only makes sense for function EJB3AdapterGenerator.generateReferenceDeclarations(cuba.util.GeneratedFile, java.lang.String, java.util.Collection, java.lang.String). For some reason, JBoss 4.0.5 doesn't except an environment entry annotation without a mappedName. This function causes mappedName to be set to the name of the entry. Doesn't make sense but works well. We hope that other application servers don't complain about that.

Overrides:
getLink in class Reference