public class EjbReferenceDescriptor extends EnvironmentProperty implements EjbReference, NamedDescriptor
mappedName
DESCRIPTION_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, setValue
addDescriptorExtension, 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, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getName, setDescription, setName
addInjectionTarget, getComponentEnvName, getInjectionTargets, isInjectable
getName
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
getDescription, getName, setDescription, setName
public 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 EjbReference
public BundleDescriptor getReferringBundleDescriptor()
getReferringBundleDescriptor
in interface EjbReference
public void setEjbDescriptor(EjbDescriptor ejbDescriptor)
setEjbDescriptor
in interface EjbReference
ejbDescriptor
- the ejb descriptor referenced, null if it is unknown at this timepublic void setJndiName(String jndiName)
setJndiName
in interface NamedDescriptor
setJndiName
in interface EjbReference
jndiName
- the new JNDI name of the receiver.public boolean hasJndiName()
EjbReference
hasJndiName
in interface EjbReference
public boolean isLinked()
public String getLinkName()
EjbReference
getLinkName
in interface EjbReference
public void setLinkName(String linkName)
setLinkName
in interface EjbReference
linkName
- the link name.public String getJndiName()
getJndiName
in interface NamedDescriptor
getJndiName
in interface EjbReference
public String getValue()
getValue
in interface NameValuePair
getValue
in class EnvironmentProperty
public void setLookupName(String l)
EnvironmentProperty
setLookupName
in class EnvironmentProperty
public String getLookupName()
EnvironmentProperty
getLookupName
in interface EjbReference
getLookupName
in class EnvironmentProperty
public boolean hasLookupName()
EjbReference
hasLookupName
in interface EjbReference
hasLookupName
in class EnvironmentProperty
public EjbDescriptor getEjbDescriptor()
getEjbDescriptor
in interface EjbReference
public boolean isLocal()
EjbReference
isLocal
in interface EjbReference
public void setLocal(boolean local)
setLocal
in interface EjbReference
local
- true if the EJB reference use local interfacespublic String getType()
getType
in interface EjbReference
getType
in interface EnvironmentEntry
getType
in class EnvironmentProperty
public void setType(String type)
setType
in interface EjbReference
setType
in interface EnvironmentEntry
setType
in class EnvironmentProperty
type
- the type of the EJB.public String getInjectResourceType()
InjectionCapable
getInjectResourceType
in interface InjectionCapable
getInjectResourceType
in class EnvironmentProperty
public void setInjectResourceType(String resourceType)
setInjectResourceType
in interface InjectionCapable
setInjectResourceType
in class EnvironmentProperty
public String getHomeClassName()
public void setHomeClassName(String homeClassName)
public String getBeanClassName()
public void setBeanClassName(String remoteClassName)
public String getEjbHomeInterface()
getEjbHomeInterface
in interface EjbReference
public void setEjbHomeInterface(String homeClassName)
setEjbHomeInterface
in interface EjbReference
homeClassName
- the class name of the EJB home.public String getEjbInterface()
getEjbInterface
in interface EjbReference
public void setEjbInterface(String remoteClassName)
setEjbInterface
in interface EjbReference
remoteClassName
- the classname of the EJB remote object.public boolean isEJB30ClientView()
isEJB30ClientView
in interface EjbReference
public void print(StringBuffer toStringBuffer)
print
in class EnvironmentProperty
public boolean equals(Object object)
EnvironmentProperty
equals
in class EnvironmentProperty
public int hashCode()
EnvironmentProperty
hashCode
in class EnvironmentProperty
public boolean isConflict(EjbReferenceDescriptor other)
Copyright © 2018. All rights reserved.