Interface EjbReference
-
- All Superinterfaces:
ContextParameter
,NameValuePair
public interface EjbReference extends ContextParameter
Specialization of ContextParameter that represents a link to an EJB.- Author:
- Danny Coward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBeanClassName()
Gets the bean instance interface classname of the referee EJB.String
getHomeClassName()
Gets the home classname of the referee EJB.String
getLinkName()
Gets the link name of the reference.BundleDescriptor
getReferringBundleDescriptor()
Get the referring bundle, i.e.String
getType()
Get the type of the EJB (Session, Entity or Message-Driven).boolean
isLocal()
Tests if the reference to the referree EJB is through local or remote interfacevoid
setBeanClassName(String beanClassName)
Sets the bean interface classname of the referee EJB.void
setHomeClassName(String homeClassName)
Sets the home classname of the referee EJB.void
setLinkName(String linkName)
Sets the link name of the reference.void
setLocal(boolean isLocal)
Sets whether the reference uses the local or remote interfaces of the referring EJBvoid
setReferringBundleDescriptor(BundleDescriptor referringBundle)
Set the referring bundle, i.e.void
setType(String type)
Set the type of the EJB.-
Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair
getDescription, getName, getValue, setDescription, setName, setValue
-
-
-
-
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:
the
- type of the EJB.
-
getHomeClassName
String getHomeClassName()
Gets the home classname of the referee EJB.- Returns:
- the class name of the EJB home.
-
setHomeClassName
void setHomeClassName(String homeClassName)
Sets the home classname of the referee EJB.- Parameters:
the
- class name of the EJB home.
-
getBeanClassName
String getBeanClassName()
Gets the bean instance interface classname of the referee EJB.- Returns:
- the classname of the EJB remote object.
-
setBeanClassName
void setBeanClassName(String beanClassName)
Sets the bean interface classname of the referee EJB.- Parameters:
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:
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:
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.
-
getReferringBundleDescriptor
BundleDescriptor getReferringBundleDescriptor()
Get the referring bundle, i.e. the bundle within which this EJB reference is declared.
-
-