org.wicketstuff.javaee
Class JavaEEBeanLocator

java.lang.Object
  extended by org.wicketstuff.javaee.JavaEEBeanLocator
All Implemented Interfaces:
Serializable, IProxyTargetLocator, IClusterable

public class JavaEEBeanLocator
extends Object
implements IProxyTargetLocator

Implementation of IProxyTargetLocator to locate ejbs using Java EE 5 resource injection. To use this technique in a Wicket Page, annotate a instance variable with

Author:
Filippo Diotalevi
See Also:
Serialized Form

Constructor Summary
JavaEEBeanLocator(String beanId, Class<?> beanType, IJndiNamingStrategy namingStrategy)
          Constructor
 
Method Summary
 boolean equals(Object obj)
           
 String getBeanName()
           
 Class<?> getBeanType()
           
 int hashCode()
           
 Object locateProxyTarget()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaEEBeanLocator

public JavaEEBeanLocator(String beanId,
                         Class<?> beanType,
                         IJndiNamingStrategy namingStrategy)
Constructor

Parameters:
beanId - bean name
beanType - bean class
namingStrategy - - naming strategy
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getBeanName

public String getBeanName()

getBeanType

public Class<?> getBeanType()

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

locateProxyTarget

public Object locateProxyTarget()
Specified by:
locateProxyTarget in interface IProxyTargetLocator
See Also:
IProxyTargetLocator.locateProxyTarget()


Copyright © 2013. All Rights Reserved.