T - the remote view typepublic final class EJBHomeLocator<T extends EJBHome> extends EJBLocator<T>
| Constructor and Description |
|---|
EJBHomeLocator(Class<T> viewType,
EJBIdentifier identifier)
Construct a new instance.
|
EJBHomeLocator(Class<T> viewType,
EJBIdentifier identifier,
Affinity affinity)
Construct a new instance.
|
EJBHomeLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName)
Construct a new instance.
|
EJBHomeLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
Affinity affinity)
Construct a new instance.
|
EJBHomeLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName)
Construct a new instance.
|
EJBHomeLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName,
Affinity affinity)
Construct a new instance.
|
EJBHomeLocator(EJBHomeLocator<T> original,
Affinity newAffinity)
Construct a new instance from an original instance but with a new affinity.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends EJBHome> |
create(Class<T> viewType,
EJBIdentifier identifier,
Affinity affinity)
Construct a new instance.
|
boolean |
equals(EJBHomeLocator<?> other)
Determine whether this object is equal to another.
|
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 |
isHome()
Determine if this is a home locator.
|
<S extends EJBHome> |
narrowAsHome(Class<S> type)
Narrow this locator to the target type as a home locator.
|
<S> EJBHomeLocator<? extends S> |
narrowTo(Class<S> type)
Narrow this locator to the target type.
|
EJBHomeLocator<T> |
withNewAffinity(Affinity affinity)
Create a copy of this locator, but with the new given affinity.
|
asStateful, asStateless, canNarrowTo, createProxyInstance, getAffinity, getAppName, getBeanName, getDistinctName, getIdentifier, getModuleName, getProxyClass, getProxyConstructor, getViewType, hashCode, isEntity, isStateful, isStateless, narrowAsEntity, narrowAsStateful, narrowAsStateless, toString, withSession, withSessionAndAffinitypublic EJBHomeLocator(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 EJBHomeLocator(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 EJBHomeLocator(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 EJBHomeLocator(Class<T> viewType, String appName, String moduleName, String beanName)
viewType - the view typeappName - the application namemoduleName - the module namebeanName - the bean namepublic EJBHomeLocator(Class<T> viewType, EJBIdentifier identifier, Affinity affinity)
viewType - the view typeidentifier - the EJB identifieraffinity - the affinitypublic EJBHomeLocator(Class<T> viewType, EJBIdentifier identifier)
viewType - the view typeidentifier - the EJB identifierpublic EJBHomeLocator(EJBHomeLocator<T> original, Affinity newAffinity)
original - the original locatornewAffinity - the new affinity to usepublic static <T extends EJBHome> EJBHomeLocator<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 affinitynull)public EJBHomeLocator<T> withNewAffinity(Affinity affinity)
EJBLocatorwithNewAffinity in class EJBLocator<T extends EJBHome>affinity - the new affinitypublic <S> EJBHomeLocator<? extends S> narrowTo(Class<S> type)
EJBLocatornarrowTo in class EJBLocator<T extends EJBHome>S - the target typetype - the target type classpublic <S extends EJBHome> EJBHomeLocator<? extends S> narrowAsHome(Class<S> type)
EJBLocatornarrowAsHome in class EJBLocator<T extends EJBHome>S - the target typetype - the target type classpublic boolean isHome()
EJBLocatorEJBLocator.narrowAsHome(Class) will generally succeed.isHome in class EJBLocator<T extends EJBHome>true if this locator is a home, false otherwisepublic boolean equals(Object other)
equals in class EJBLocator<T extends EJBHome>other - the other objecttrue if they are equal, false otherwisepublic boolean equals(EJBLocator<?> other)
equals in class EJBLocator<T extends EJBHome>other - the other objecttrue if they are equal, false otherwisepublic boolean equals(EJBHomeLocator<?> other)
other - the other objecttrue if they are equal, false otherwiseCopyright © 2017 JBoss by Red Hat. All rights reserved.