JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class EJBLocator<T>

java.lang.Object
  extended by org.jboss.ejb.client.EJBLocator<T>
Type Parameters:
T - the interface type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EJBHomeLocator, EntityEJBLocator, StatefulEJBLocator, StatelessEJBLocator

public abstract class EJBLocator<T>
extends Object
implements Serializable

An identifier for an EJB proxy invocation target instance, suitable for use as a hash key or a serialized token.

See Also:
Serialized Form

Method Summary
 T createProxyInstance(InvocationHandler invocationHandler)
          Create a proxy instance using the cached proxy class.
 boolean equals(EJBLocator<?> other)
          Determine whether this object is equal to another.
 boolean equals(Object other)
          Determine whether this object is equal to another.
 Affinity getAffinity()
          Get the locator affinity.
 String getAppName()
          Get the application name.
 String getBeanName()
          Get the EJB bean name.
 String getDistinctName()
          Get the module distinct name.
 String getModuleName()
          Get the module name.
 Class<? extends T> getProxyClass()
          Get the proxy class for this locator.
 Constructor<? extends T> getProxyConstructor()
          Get the proxy class constructor for this locator.
 Class<T> getViewType()
          Get the view type of this locator.
 int hashCode()
          Get the hash code for this instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getViewType

public Class<T> getViewType()
Get the view type of this locator.

Returns:
the view type

getAppName

public String getAppName()
Get the application name.

Returns:
the application name

getModuleName

public String getModuleName()
Get the module name.

Returns:
the module name

getBeanName

public String getBeanName()
Get the EJB bean name.

Returns:
the EJB bean name

getDistinctName

public String getDistinctName()
Get the module distinct name.

Returns:
the module distinct name

getAffinity

public Affinity getAffinity()
Get the locator affinity.

Returns:
the locator affinity

hashCode

public int hashCode()
Get the hash code for this instance.

Overrides:
hashCode in class Object
Returns:
the hash code for this instance

equals

public boolean equals(Object other)
Determine whether this object is equal to another.

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

getProxyClass

public Class<? extends T> getProxyClass()
Get the proxy class for this locator.

Returns:
the proxy class

getProxyConstructor

public Constructor<? extends T> getProxyConstructor()
Get the proxy class constructor for this locator. A proxy class constructor accepts a single argument of type InvocationHandler.

Returns:
the proxy constructor

createProxyInstance

public T createProxyInstance(InvocationHandler invocationHandler)
Create a proxy instance using the cached proxy class.

Parameters:
invocationHandler - the invocation handler to use
Returns:
the proxy instance

equals

public boolean equals(EJBLocator<?> other)
Determine whether this object is equal to another.

Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

JBoss EJB client 1.0.5.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.