T - the remote view typepublic final class EJBHomeLocator<T extends javax.ejb.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 |
|---|---|
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 javax.ejb.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, toStringpublic 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 EJBHomeLocator<T> withNewAffinity(Affinity affinity)
EJBLocatorwithNewAffinity in class EJBLocator<T extends javax.ejb.EJBHome>affinity - the new affinitypublic <S> EJBHomeLocator<? extends S> narrowTo(Class<S> type)
EJBLocatornarrowTo in class EJBLocator<T extends javax.ejb.EJBHome>S - the target typetype - the target type classpublic <S extends javax.ejb.EJBHome> EJBHomeLocator<? extends S> narrowAsHome(Class<S> type)
EJBLocatornarrowAsHome in class EJBLocator<T extends javax.ejb.EJBHome>S - the target typetype - the target type classpublic boolean isHome()
EJBLocatorEJBLocator.narrowAsHome(Class) will generally succeed.isHome in class EJBLocator<T extends javax.ejb.EJBHome>true if this locator is a home, false otherwisepublic boolean equals(Object other)
equals in class EJBLocator<T extends javax.ejb.EJBHome>other - the other objecttrue if they are equal, false otherwisepublic boolean equals(EJBLocator<?> other)
equals in class EJBLocator<T extends javax.ejb.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 © 2016 JBoss by Red Hat. All rights reserved.