Package org.wicketstuff.javaee
Class JndiObjectLocator
java.lang.Object
org.wicketstuff.javaee.JndiObjectLocator
- All Implemented Interfaces:
Serializable,IProxyTargetLocator,IClusterable
Implementation of
private @Resource(name="referenceName") YouClass obj; The 'referenceName' attribute is mandatory, and refers to the name of the object as declared in the web.xml file
IProxyTargetLocator to locate object using JNDI
To use this technique in a Wicket Page, just insert a line likeprivate @Resource(name="referenceName") YouClass obj; The 'referenceName' attribute is mandatory, and refers to the name of the object as declared in the web.xml file
- Author:
- Filippo Diotalevi
- See Also:
-
Constructor Details
-
JndiObjectLocator
Constructor- Parameters:
beanId- bean namebeanType- bean class
-
-
Method Details
-
locateProxyTarget
- Specified by:
locateProxyTargetin interfaceIProxyTargetLocator- See Also:
-
equals
-
hashCode
public int hashCode() -
getBeanName
-
getBeanType
-