T
- the remote view typepublic final class StatelessEJBLocator<T> extends EJBLocator<T>
Constructor and Description |
---|
StatelessEJBLocator(Class<T> viewType,
EJBIdentifier identifier)
Construct a new instance.
|
StatelessEJBLocator(Class<T> viewType,
EJBIdentifier identifier,
Affinity affinity)
Construct a new instance.
|
StatelessEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName)
Construct a new instance.
|
StatelessEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
Affinity affinity)
Construct a new instance.
|
StatelessEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName)
Construct a new instance.
|
StatelessEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName,
Affinity affinity)
Construct a new instance.
|
StatelessEJBLocator(StatelessEJBLocator<T> original,
Affinity newAffinity)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
StatelessEJBLocator<T> |
asStateless()
Return this locator as a stateless locator, if it is one.
|
static <T> StatelessEJBLocator<T> |
create(Class<T> viewType,
EJBIdentifier identifier,
Affinity affinity)
Construct a new instance.
|
static <T> StatelessEJBLocator<T> |
create(EJBLocator<T> original,
Affinity newAffinity)
Construct a new instance.
|
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(StatelessEJBLocator<?> other)
Determine whether this object is equal to another.
|
boolean |
isStateless()
Determine if this is a stateless locator.
|
<S> StatelessEJBLocator<? extends S> |
narrowAsStateless(Class<S> type)
Narrow this locator to the target type as a stateless locator.
|
<S> StatelessEJBLocator<? extends S> |
narrowTo(Class<S> type)
Narrow this locator to the target type.
|
StatelessEJBLocator<T> |
withNewAffinity(Affinity affinity)
Create a copy of this locator, but with the new given affinity.
|
StatefulEJBLocator<T> |
withSession(SessionID sessionId)
Create a copy of this locator, but with the given stateful session ID.
|
StatefulEJBLocator<T> |
withSessionAndAffinity(SessionID sessionId,
Affinity affinity)
Create a copy of this locator, but with the given affinity and stateful session ID.
|
asStateful, canNarrowTo, createProxyInstance, getAffinity, getAppName, getBeanName, getDistinctName, getIdentifier, getModuleName, getProxyClass, getProxyConstructor, getViewType, hashCode, isEntity, isHome, isStateful, narrowAsEntity, narrowAsHome, narrowAsStateful, toString
public StatelessEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName)
viewType
- the view typeappName
- the application namemoduleName
- the module namebeanName
- the bean namepublic StatelessEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, Affinity affinity)
viewType
- the view typeappName
- the application namemoduleName
- the module namebeanName
- the bean nameaffinity
- the affinitypublic StatelessEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName)
viewType
- the view typeappName
- the application namemoduleName
- the module namebeanName
- the bean namedistinctName
- the distinct namepublic StatelessEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, Affinity affinity)
viewType
- the view typeappName
- the application namemoduleName
- the module namebeanName
- the bean namedistinctName
- the distinct nameaffinity
- the affinitypublic StatelessEJBLocator(Class<T> viewType, EJBIdentifier identifier, Affinity affinity)
viewType
- the view typeidentifier
- the EJB identifieraffinity
- the affinitypublic StatelessEJBLocator(Class<T> viewType, EJBIdentifier identifier)
viewType
- the view typeidentifier
- the EJB identifierpublic StatelessEJBLocator(StatelessEJBLocator<T> original, Affinity newAffinity)
original
- the original locatornewAffinity
- the new affinitypublic static <T> StatelessEJBLocator<T> create(Class<T> viewType, EJBIdentifier identifier, Affinity affinity)
T
- the remote view typeviewType
- the view type (must not be null
)identifier
- the EJB identifier (must not be null
)affinity
- the Affinity
for this stateful bean locatornull
)public static <T> StatelessEJBLocator<T> create(EJBLocator<T> original, Affinity newAffinity)
T
- the remote view typeoriginal
- the original locator (must not be null
)newAffinity
- the new affinitynull
)public StatelessEJBLocator<T> withNewAffinity(Affinity affinity)
EJBLocator
withNewAffinity
in class EJBLocator<T>
affinity
- the new affinitypublic StatefulEJBLocator<T> withSession(SessionID sessionId)
EJBLocator
withSession
in class EJBLocator<T>
sessionId
- the stateful session ID (must not be null
)null
)public StatefulEJBLocator<T> withSessionAndAffinity(SessionID sessionId, Affinity affinity)
EJBLocator
withSessionAndAffinity
in class EJBLocator<T>
sessionId
- the stateful session ID (must not be null
)affinity
- the new affinity (must not be null
)null
)public <S> StatelessEJBLocator<? extends S> narrowTo(Class<S> type)
EJBLocator
narrowTo
in class EJBLocator<T>
S
- the target typetype
- the target type classpublic <S> StatelessEJBLocator<? extends S> narrowAsStateless(Class<S> type)
EJBLocator
narrowAsStateless
in class EJBLocator<T>
S
- the target typetype
- the target type classpublic StatelessEJBLocator<T> asStateless()
EJBLocator
asStateless
in class EJBLocator<T>
public boolean isStateless()
EJBLocator
EJBLocator.asStateless()
and EJBLocator.narrowAsStateless(Class)
will generally succeed.isStateless
in class EJBLocator<T>
true
if this locator is stateless, false
otherwisepublic 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(StatelessEJBLocator<?> other)
other
- the other objecttrue
if they are equal, false
otherwiseCopyright © 2017 JBoss by Red Hat. All rights reserved.