|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.program.ConfigProgram
com.caucho.config.types.ResourceGroupConfig
com.caucho.config.types.BaseRef
com.caucho.config.types.EjbRef
public class EjbRef
Configuration for the ejb-ref. An ejb-ref is used to make an ejb available within the environment in which the ejb-ref is declared.
Field Summary |
---|
Fields inherited from class com.caucho.config.types.BaseRef |
---|
_injectionTarget, _modulePath, _sourceEjbName |
Constructor Summary | |
---|---|
EjbRef()
|
|
EjbRef(javax.naming.Context context)
|
|
EjbRef(Path modulePath)
|
|
EjbRef(Path modulePath,
java.lang.String sourceEjbName)
|
Method Summary | |
---|---|
void |
bind()
Binds the injection point |
void |
deploy()
|
java.lang.Object |
getByType(java.lang.Class<?> type)
|
java.lang.String |
getEjbLink()
|
java.lang.String |
getEjbRefName()
Returns the ejb name. |
java.lang.Class<?> |
getHome()
Returns the home class. |
InjectionTarget |
getInjectionTarget()
Gets the injection-target |
java.lang.Class<?> |
getLocal()
|
java.lang.Class<?> |
getRemote()
Returns the remote class. |
protected java.lang.String |
getTagName()
|
java.lang.Object |
getValue()
Creates the object from the proxy. |
boolean |
isEjbLocalRef()
|
void |
mergeFrom(EjbRef other)
Merges duplicated information in application-client.xml / resin-application-client.xml |
void |
setClientClassName(java.lang.String clientClassName)
|
void |
setConfigLocation(java.lang.String loc)
|
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setEjbLink(java.lang.String ejbLink)
Set the target of the reference, an alternative to #setJndiName(String) . |
void |
setEjbRefName(java.lang.String name)
Sets the name to use in the local jndi context. |
void |
setEjbRefType(java.lang.String type)
|
void |
setForeignName(java.lang.String foreignName)
Sets the canonical jndi name to use to find the bean that is the target of the reference. |
void |
setHome(java.lang.Class<?> home)
|
void |
setId(java.lang.String id)
|
void |
setInjectionTarget(InjectionTarget injectionTarget)
Sets the injection-target |
void |
setRemote(java.lang.Class<?> remote)
|
java.lang.String |
toString()
|
Methods inherited from class com.caucho.config.types.BaseRef |
---|
getFieldOrMethod, getJavaClass |
Methods inherited from class com.caucho.config.types.ResourceGroupConfig |
---|
addInjectionTarget, createObject, error, getJndiClassLoader, getLookupName, getProgram, getProgram, inferTypeFromInjection, init, inject, isProgram, setConfigLocation, setDefaultInjectionClass, setJndiClassLoader, setLookupName, setProgram |
Methods inherited from class com.caucho.config.program.ConfigProgram |
---|
addProgram, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EjbRef()
public EjbRef(javax.naming.Context context)
public EjbRef(Path modulePath)
public EjbRef(Path modulePath, java.lang.String sourceEjbName)
Method Detail |
---|
public void setConfigLocation(java.lang.String loc)
public boolean isEjbLocalRef()
public InjectionTarget getInjectionTarget()
getInjectionTarget
in class BaseRef
protected java.lang.String getTagName()
public void setId(java.lang.String id)
setId
in class ResourceGroupConfig
public void setDescription(java.lang.String description)
ResourceGroupConfig
setDescription
in class ResourceGroupConfig
public void setClientClassName(java.lang.String clientClassName)
public void setEjbRefName(java.lang.String name)
ejb/Gryffindor ... (new InitialContext()).lookup("java:comp/env/ejb/Gryffindor");
public void setInjectionTarget(InjectionTarget injectionTarget)
setInjectionTarget
in class BaseRef
public java.lang.String getEjbRefName()
public void setEjbRefType(java.lang.String type)
public void setHome(java.lang.Class<?> home)
public java.lang.Class<?> getHome()
public void setRemote(java.lang.Class<?> remote)
public java.lang.Class<?> getRemote()
public java.lang.Class<?> getLocal()
public void setForeignName(java.lang.String foreignName)
LinkProxy
is
used to link the local jndi context referred to in this name to
a remote context.
public void setEjbLink(java.lang.String ejbLink)
#setJndiName(String)
.
The format of the ejbLink is "bean", or "jarname#bean", where bean is the
ejb-name of a bean within the same enterprise application, and jarname
further qualifies the identity of the target.
public java.lang.String getEjbLink()
public void mergeFrom(EjbRef other)
public void deploy()
deploy
in class ResourceGroupConfig
public void bind()
ConfigProgram
bind
in class ConfigProgram
public java.lang.Object getValue()
getValue
in class ResourceGroupConfig
public java.lang.Object getByType(java.lang.Class<?> type)
public java.lang.String toString()
toString
in class ResourceGroupConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |