JBoss EJB client 1.0.3.Final

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

java.lang.Object
  extended by org.jboss.ejb.client.EJBLocator<T>
      extended by org.jboss.ejb.client.StatefulEJBLocator<T>
Type Parameters:
T - the remote view type
All Implemented Interfaces:
Serializable

public final class StatefulEJBLocator<T>
extends EJBLocator<T>

A locator for a stateful session EJB.

See Also:
Serialized Form

Constructor Summary
StatefulEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, SessionID sessionId, Affinity affinity)
          Deprecated. Since 1.0.2. Use StatefulEJBLocator(Class, String, String, String, String, SessionID, Affinity, String) instead
StatefulEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, SessionID sessionId, Affinity affinity, String sessionOwnerNode)
          Constructs a StatefulEJBLocator
 
Method Summary
 boolean equals(EJBLocator<?> other)
          Determine whether this object is equal to another.
 boolean equals(Object other)
          Determine whether this object is equal to another.
 boolean equals(StatefulEJBLocator<?> other)
          Determine whether this object is equal to another.
 SessionID getSessionId()
          Get the session ID associated with this locator.
 int hashCode()
          Get the hash code for this instance.
 String toString()
           
 
Methods inherited from class org.jboss.ejb.client.EJBLocator
createProxyInstance, getAffinity, getAppName, getBeanName, getDistinctName, getModuleName, getProxyClass, getProxyConstructor, getViewType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatefulEJBLocator

@Deprecated
public StatefulEJBLocator(Class<T> viewType,
                                     String appName,
                                     String moduleName,
                                     String beanName,
                                     String distinctName,
                                     SessionID sessionId,
                                     Affinity affinity)
Deprecated. Since 1.0.2. Use StatefulEJBLocator(Class, String, String, String, String, SessionID, Affinity, String) instead

Construct a new instance.

Parameters:
viewType - the view type
appName - the application name
moduleName - the module name
beanName - the bean name
distinctName - the distinct name
sessionId - the stateful session ID
affinity - The Affinity for this stateful bean locator

StatefulEJBLocator

public StatefulEJBLocator(Class<T> viewType,
                          String appName,
                          String moduleName,
                          String beanName,
                          String distinctName,
                          SessionID sessionId,
                          Affinity affinity,
                          String sessionOwnerNode)
Constructs a StatefulEJBLocator

Parameters:
viewType - the view type
appName - the application name
moduleName - the module name
beanName - the bean name
distinctName - the distinct name
sessionId - the stateful session ID
affinity - The Affinity for this stateful bean locator
sessionOwnerNode - The name of the node on which the sessionId was generated
Method Detail

getSessionId

public SessionID getSessionId()
Get the session ID associated with this locator.

Returns:
the session ID

hashCode

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

Overrides:
hashCode in class EJBLocator<T>
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 EJBLocator<T>
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

equals

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

Overrides:
equals in class EJBLocator<T>
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

equals

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

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

toString

public String toString()
Overrides:
toString in class Object

JBoss EJB client 1.0.3.Final

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