Interface EjbReference
-
- All Superinterfaces:
InjectionCapable,NamedInformation
- All Known Implementing Classes:
EjbReferenceDescriptor
public interface EjbReference extends NamedInformation, InjectionCapable
Protocol associated with defining an EJB Interface- Author:
- Jerome Dochez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EjbDescriptorgetEjbDescriptor()StringgetEjbHomeInterface()Gets the home classname of the referee EJB.StringgetEjbInterface()Gets the local or remote interface classname of the referee EJB.StringgetJndiName()StringgetLinkName()Gets the link name of the reference.StringgetLookupName()BundleDescriptorgetReferringBundleDescriptor()Get the referring bundle, i.e.StringgetType()Get the type of the EJB (Session, Entity or Message-Driven).booleanhasJndiName()Returns true if the reference has a non-null non-zero length jndinamebooleanhasLookupName()Returns true if the lookup name is non-null and has a non-zero lengthbooleanisEJB30ClientView()booleanisLocal()Tests if the reference to the referree EJB is through local or remote interfacevoidsetEjbDescriptor(EjbDescriptor descriptor)voidsetEjbHomeInterface(String ejbHomeInterface)Sets the local or remote home classname of the referee EJB.voidsetEjbInterface(String ejbInterface)Sets the local or remote bean interface classname of the referee EJB.voidsetJndiName(String jndiName)Set the jndi name for this ejb referencevoidsetLinkName(String linkName)Sets the link name of the reference.voidsetLocal(boolean isLocal)Sets whether the reference uses the local or remote interfaces of the referring EJBvoidsetReferringBundleDescriptor(BundleDescriptor referringBundle)Set the referring bundle, i.e.voidsetType(String type)Set the type of the EJB.-
Methods inherited from interface com.sun.enterprise.deployment.InjectionCapable
addInjectionTarget, getComponentEnvName, getInjectionTargets, getInjectResourceType, isInjectable, setInjectResourceType
-
Methods inherited from interface com.sun.enterprise.deployment.types.NamedInformation
getDescription, getName, setDescription, setName
-
-
-
-
Method Detail
-
getType
String getType()
Get the type of the EJB (Session, Entity or Message-Driven).- Returns:
- the type of the EJB.
-
setType
void setType(String type)
Set the type of the EJB. Allowed values are Session, Entity or Message-driven.- Parameters:
type- the type of the EJB.
-
getEjbHomeInterface
String getEjbHomeInterface()
Gets the home classname of the referee EJB.- Returns:
- the class name of the EJB home.
-
setEjbHomeInterface
void setEjbHomeInterface(String ejbHomeInterface)
Sets the local or remote home classname of the referee EJB.- Parameters:
ejbHomeInterface- the class name of the EJB home.
-
getEjbInterface
String getEjbInterface()
Gets the local or remote interface classname of the referee EJB.- Returns:
- the classname of the EJB remote object.
-
setEjbInterface
void setEjbInterface(String ejbInterface)
Sets the local or remote bean interface classname of the referee EJB.- Parameters:
ejbInterface- the classname of the EJB remote object.
-
getLinkName
String getLinkName()
Gets the link name of the reference. For use when linking to an EJB within a J2EE application.- Returns:
- the link name.
-
setLinkName
void setLinkName(String linkName)
Sets the link name of the reference. For use when linking to an EJB within a J2EE application.- Parameters:
linkName- the link name.
-
isLocal
boolean isLocal()
Tests if the reference to the referree EJB is through local or remote interface- Returns:
- true if using the local interfaces
-
setLocal
void setLocal(boolean isLocal)
Sets whether the reference uses the local or remote interfaces of the referring EJB- Parameters:
isLocal- true if using the local interface
-
setReferringBundleDescriptor
void setReferringBundleDescriptor(BundleDescriptor referringBundle)
Set the referring bundle, i.e. the bundle within which this EJB reference is declared.- Parameters:
referringBundle-
-
getReferringBundleDescriptor
BundleDescriptor getReferringBundleDescriptor()
Get the referring bundle, i.e. the bundle within which this EJB reference is declared.- Returns:
-
setJndiName
void setJndiName(String jndiName)
Set the jndi name for this ejb reference- Parameters:
jndiName-
-
getJndiName
String getJndiName()
- Returns:
- the jndi name for this ejb reference
-
hasJndiName
boolean hasJndiName()
Returns true if the reference has a non-null non-zero length jndiname- Returns:
-
hasLookupName
boolean hasLookupName()
Returns true if the lookup name is non-null and has a non-zero length- Returns:
-
getLookupName
String getLookupName()
- Returns:
-
getEjbDescriptor
EjbDescriptor getEjbDescriptor()
-
setEjbDescriptor
void setEjbDescriptor(EjbDescriptor descriptor)
-
isEJB30ClientView
boolean isEJB30ClientView()
- Returns:
- true if the EJB reference is a 30 client view
-
-