public class EjbReferenceDescriptor extends EnvironmentProperty implements EjbReference, NamedDescriptor
mappedNameDESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED| Constructor and Description |
|---|
EjbReferenceDescriptor()
Constructs a reference in the exterrnal state.
|
EjbReferenceDescriptor(EjbReferenceDescriptor other)
copy constructor
|
EjbReferenceDescriptor(String name,
String description,
EjbDescriptor ejbDescriptor)
Construct an remote ejb reference to the given ejb descriptor
with the given name and descriptor of the reference.
|
EjbReferenceDescriptor(String name,
String description,
EjbDescriptor ejbDescriptor,
boolean isLocal)
constructs an local or remote ejb reference to the given ejb descriptor,
the description and the name of the reference
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Returns true if the argument is an environment property of the same name, false else.
|
String |
getBeanClassName() |
EjbDescriptor |
getEjbDescriptor()
return the ejb to whoch I refer.
|
String |
getEjbHomeInterface()
Gets the home classname of the referee EJB.
|
String |
getEjbInterface()
Gets the local or remote interface classname of the referee EJB.
|
String |
getHomeClassName()
Gets the home classname of the referee EJB.
|
String |
getInjectResourceType()
This is the class name of the type of resource that is to be injected.
|
String |
getJndiName()
return the jndi name of the bean to which I refer.
|
String |
getLinkName()
Gets the link name of the reference.
|
String |
getLookupName()
Gets the lookup value
|
BundleDescriptor |
getReferringBundleDescriptor()
Get the referring bundle, i.e.
|
String |
getType()
Retusn the type of the ejb to whioch I refer.
|
String |
getValue()
Return the jndi name of the bean to which I refer.
|
int |
hashCode()
The hashCode of an environment property is the same as that of the name String.
|
boolean |
hasJndiName()
Returns true if the reference has a non-null non-zero length jndiname
|
boolean |
hasLookupName()
Returns true if the lookup name is non-null and has a non-zero length
|
boolean |
isConflict(EjbReferenceDescriptor other) |
boolean |
isEJB30ClientView() |
boolean |
isLinked()
return true if I know the name of the ejb to which I refer.
|
boolean |
isLocal()
Tests if the reference to the referree EJB is through local or
remote interface
|
void |
print(StringBuffer toStringBuffer)
returns a formatted string representing me.
|
void |
setBeanClassName(String remoteClassName)
Sets the bean instance business interface classname of the bean to which I refer.
|
void |
setEjbDescriptor(EjbDescriptor ejbDescriptor)
Sets the ejb descriptor to which I refer.
|
void |
setEjbHomeInterface(String homeClassName)
Sets the local or remote home classname of the referee EJB.
|
void |
setEjbInterface(String remoteClassName)
Sets the local or remote bean interface classname of the referee EJB.
|
void |
setHomeClassName(String homeClassName)
Sets the home classname of the bean to whcioh I refer.
|
void |
setInjectResourceType(String resourceType) |
void |
setJndiName(String jndiName)
Sets the jndi name of the bean type which I am referring.
|
void |
setLinkName(String linkName)
Sets the name of the ejb to which I refer.
|
void |
setLocal(boolean local)
Set whether this EJB Reference uses local interfaces or remote
|
void |
setLookupName(String l)
Sets the lookup name
|
void |
setReferringBundleDescriptor(BundleDescriptor referringBundle)
Set the referring bundle, i.e.
|
void |
setType(String type)
Assigns the type of the ejb to whcoih I refer.
|
addInjectionTarget, getComponentEnvName, getInjectionTargets, getMappedName, getResolvedValue, getResolvedValueObject, getValueObject, getValueType, hasAValue, hasInjectionTargetFromXml, isConflict, isConflictResourceGroup, isInjectable, isSetValueCalled, printInjectableResourceInfo, setMappedName, setValueaddDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getName, setDescription, setNameaddInjectionTarget, getComponentEnvName, getInjectionTargets, isInjectablegetNamegetDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUrigetDescription, getName, setDescription, setNamepublic EjbReferenceDescriptor(EjbReferenceDescriptor other)
other - handle to other EjbReferenceDescriptor to clonepublic EjbReferenceDescriptor(String name, String description, EjbDescriptor ejbDescriptor)
name - the ejb-ref name as used in the referencing beandescription - optional descriptionejbDescriptor - of the referenced beanpublic EjbReferenceDescriptor(String name, String description, EjbDescriptor ejbDescriptor, boolean isLocal)
name - is the name of the referencedescription - is a human readable description of the referenceejbDescriptor - the referenced EJBisLocal - true if the reference uses the local interfacespublic EjbReferenceDescriptor()
public void setReferringBundleDescriptor(BundleDescriptor referringBundle)
setReferringBundleDescriptor in interface EjbReferencepublic BundleDescriptor getReferringBundleDescriptor()
getReferringBundleDescriptor in interface EjbReferencepublic void setEjbDescriptor(EjbDescriptor ejbDescriptor)
setEjbDescriptor in interface EjbReferenceejbDescriptor - the ejb descriptor referenced, null if it is unknown at this timepublic void setJndiName(String jndiName)
setJndiName in interface NamedDescriptorsetJndiName in interface EjbReferencejndiName - the new JNDI name of the receiver.public boolean hasJndiName()
EjbReferencehasJndiName in interface EjbReferencepublic boolean isLinked()
public String getLinkName()
EjbReferencegetLinkName in interface EjbReferencepublic void setLinkName(String linkName)
setLinkName in interface EjbReferencelinkName - the link name.public String getJndiName()
getJndiName in interface NamedDescriptorgetJndiName in interface EjbReferencepublic String getValue()
getValue in interface NameValuePairgetValue in class EnvironmentPropertypublic void setLookupName(String l)
EnvironmentPropertysetLookupName in class EnvironmentPropertypublic String getLookupName()
EnvironmentPropertygetLookupName in interface EjbReferencegetLookupName in class EnvironmentPropertypublic boolean hasLookupName()
EjbReferencehasLookupName in interface EjbReferencehasLookupName in class EnvironmentPropertypublic EjbDescriptor getEjbDescriptor()
getEjbDescriptor in interface EjbReferencepublic boolean isLocal()
EjbReferenceisLocal in interface EjbReferencepublic void setLocal(boolean local)
setLocal in interface EjbReferencelocal - true if the EJB reference use local interfacespublic String getType()
getType in interface EjbReferencegetType in interface EnvironmentEntrygetType in class EnvironmentPropertypublic void setType(String type)
setType in interface EjbReferencesetType in interface EnvironmentEntrysetType in class EnvironmentPropertytype - the type of the EJB.public String getInjectResourceType()
InjectionCapablegetInjectResourceType in interface InjectionCapablegetInjectResourceType in class EnvironmentPropertypublic void setInjectResourceType(String resourceType)
setInjectResourceType in interface InjectionCapablesetInjectResourceType in class EnvironmentPropertypublic String getHomeClassName()
public void setHomeClassName(String homeClassName)
public String getBeanClassName()
public void setBeanClassName(String remoteClassName)
public String getEjbHomeInterface()
getEjbHomeInterface in interface EjbReferencepublic void setEjbHomeInterface(String homeClassName)
setEjbHomeInterface in interface EjbReferencehomeClassName - the class name of the EJB home.public String getEjbInterface()
getEjbInterface in interface EjbReferencepublic void setEjbInterface(String remoteClassName)
setEjbInterface in interface EjbReferenceremoteClassName - the classname of the EJB remote object.public boolean isEJB30ClientView()
isEJB30ClientView in interface EjbReferencepublic void print(StringBuffer toStringBuffer)
print in class EnvironmentPropertypublic boolean equals(Object object)
EnvironmentPropertyequals in class EnvironmentPropertypublic int hashCode()
EnvironmentPropertyhashCode in class EnvironmentPropertypublic boolean isConflict(EjbReferenceDescriptor other)
Copyright © 2017. All rights reserved.