T
- the remote view typepublic final class StatefulEJBLocator<T> extends EJBLocator<T>
Constructor and Description |
---|
StatefulEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName,
SessionID sessionId,
Affinity affinity,
String sessionOwnerNode)
Constructs a
StatefulEJBLocator |
StatefulEJBLocator(StatefulEJBLocator<T> original,
Affinity newAffinity)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
<S> StatefulEJBLocator<? extends S> |
narrowAsStateful(Class<S> type)
Narrow this locator to the target type as a stateful locator.
|
<S> StatefulEJBLocator<? extends S> |
narrowTo(Class<S> type)
Narrow this locator to the target type.
|
String |
toString() |
EJBLocator<T> |
withNewAffinity(Affinity affinity)
Create a copy of this locator, but with the new given affinity.
|
createProxyInstance, getAffinity, getAppName, getBeanName, getDistinctName, getModuleName, getProxyClass, getProxyConstructor, getViewType, narrowAsEntity, narrowAsHome, narrowAsStateless
public StatefulEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, SessionID sessionId, Affinity affinity, String sessionOwnerNode)
StatefulEJBLocator
viewType
- the view typeappName
- the application namemoduleName
- the module namebeanName
- the bean namedistinctName
- the distinct namesessionId
- the stateful session IDaffinity
- The Affinity
for this stateful bean locatorsessionOwnerNode
- The name of the node on which the sessionId was generatedpublic StatefulEJBLocator(StatefulEJBLocator<T> original, Affinity newAffinity)
original
- the original locatornewAffinity
- the new affinitypublic EJBLocator<T> withNewAffinity(Affinity affinity)
EJBLocator
withNewAffinity
in class EJBLocator<T>
affinity
- the new affinitypublic <S> StatefulEJBLocator<? extends S> narrowTo(Class<S> type)
EJBLocator
narrowTo
in class EJBLocator<T>
S
- the target typetype
- the target type classpublic <S> StatefulEJBLocator<? extends S> narrowAsStateful(Class<S> type)
EJBLocator
narrowAsStateful
in class EJBLocator<T>
S
- the target typetype
- the target type classpublic SessionID getSessionId()
public int hashCode()
hashCode
in class EJBLocator<T>
public boolean equals(Object other)
equals
in class EJBLocator<T>
other
- the other objecttrue
if they are equal, false
otherwisepublic boolean equals(EJBLocator<?> other)
equals
in class EJBLocator<T>
other
- the other objecttrue
if they are equal, false
otherwisepublic boolean equals(StatefulEJBLocator<?> other)
other
- the other objecttrue
if they are equal, false
otherwisepublic String toString()
toString
in class EJBLocator<T>
Copyright © 2016 JBoss by Red Hat. All rights reserved.