Package org.wicketstuff.javaee
Class JndiObjectLocator
- java.lang.Object
-
- org.wicketstuff.javaee.JndiObjectLocator
-
- All Implemented Interfaces:
Serializable,IProxyTargetLocator,IClusterable
public class JndiObjectLocator extends Object implements IProxyTargetLocator
Implementation ofIProxyTargetLocatorto locate object using JNDI To use this technique in a Wicket Page, just insert a line like
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- Author:
- Filippo Diotalevi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JndiObjectLocator(String beanId, Class<?> beanType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetBeanName()Class<?>getBeanType()inthashCode()ObjectlocateProxyTarget()
-
-
-
Method Detail
-
locateProxyTarget
public Object locateProxyTarget()
- Specified by:
locateProxyTargetin interfaceIProxyTargetLocator- See Also:
IProxyTargetLocator.locateProxyTarget()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
getBeanName
public String getBeanName()
-
getBeanType
public Class<?> getBeanType()
-
-