FileDocCategorySizeDatePackage
EjbReference.javaAPI DocGlassfish v2 API4495Fri May 04 22:32:00 BST 2007com.sun.enterprise.deployment.web

EjbReference

public interface EjbReference implements ContextParameter
Specialization of ContextParameter that represents a link to an EJB.
author
Danny Coward

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetBeanClassName()
Gets the bean instance interface classname of the referee EJB.

return
the classname of the EJB remote object.

public java.lang.StringgetHomeClassName()
Gets the home classname of the referee EJB.

return
the class name of the EJB home.

public java.lang.StringgetLinkName()
Gets the link name of the reference. For use when linking to an EJB within a J2EE application.

return
the link name.

public com.sun.enterprise.deployment.BundleDescriptorgetReferringBundleDescriptor()
Get the referring bundle, i.e. the bundle within which this EJB reference is declared.

public java.lang.StringgetType()
Get the type of the EJB (Session, Entity or Message-Driven).

return
the type of the EJB.

public booleanisLocal()
Tests if the reference to the referree EJB is through local or remote interface

return
true if using the local interfaces

public voidsetBeanClassName(java.lang.String beanClassName)
Sets the bean interface classname of the referee EJB.

param
the classname of the EJB remote object.

public voidsetHomeClassName(java.lang.String homeClassName)
Sets the home classname of the referee EJB.

param
the class name of the EJB home.

public voidsetLinkName(java.lang.String linkName)
Sets the link name of the reference. For use when linking to an EJB within a J2EE application.

param
the link name.

public voidsetLocal(boolean isLocal)
Sets whether the reference uses the local or remote interfaces of the referring EJB

param
true if using the local interface

public voidsetReferringBundleDescriptor(com.sun.enterprise.deployment.BundleDescriptor referringBundle)
Set the referring bundle, i.e. the bundle within which this EJB reference is declared.

public voidsetType(java.lang.String type)
Set the type of the EJB. Allowed values are Session, Entity or Message-driven.

param
the type of the EJB.