|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zkplus.jndi.JndiVariableResolver
public class JndiVariableResolver
JndiVariableResolver, a jndi variableResolver
| Constructor Summary | |
|---|---|
JndiVariableResolver()
|
|
JndiVariableResolver(String prepend,
String mapping)
This constructor take arguments to initialize JNDI names. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
Object |
resolveVariable(String var)
Get object from JNDI binding |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JndiVariableResolver(String prepend,
String mapping)
For example:
By default, session beans will bind to JNDI in the form ejbName/remote for remote interfaces and ejbName/local in the case of local interfaces. When the EJBs are deployed in an .ear file, the default jndi binding will be prepended by the name of the .ear file. As a result, if the ear file name is foo.ear, prepend is: foo
If you define your own jndi binding, the string should be in key-value pairs format as "a=custom/MySession,b=custom/MySession2,emf=java:/EntityManagerFactory"
prepend - prepended part of JNDI namemapping - key-value pairs for JNDI name and its corresponding variable namepublic JndiVariableResolver()
| Method Detail |
|---|
public Object resolveVariable(String var)
throws org.zkoss.xel.XelException
resolveVariable in interface org.zkoss.xel.VariableResolvervar - JNDI binding name
org.zkoss.xel.XelExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||