FileDocCategorySizeDatePackage
EjbReference.javaAPI DocGlassfish v2 API5159Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.types

EjbReference

public interface EjbReference implements com.sun.enterprise.deployment.InjectionCapable, NamedInformation
Protocol associated with defining an EJB Interface
author
Jerome Dochez

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.deployment.EjbDescriptorgetEjbDescriptor()

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

return
the class name of the EJB home.

public java.lang.StringgetEjbInterface()
Gets the local or remote interface classname of the referee EJB.

return
the classname of the EJB remote object.

public java.lang.StringgetJndiName()

return
the jndi name for this ejb reference

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 booleanisEJB30ClientView()

return
true if the EJB reference is a 30 client view

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

return
true if using the local interfaces

public voidsetEjbDescriptor(com.sun.enterprise.deployment.EjbDescriptor descriptor)

public voidsetEjbHomeInterface(java.lang.String ejbHomeInterface)
Sets the local or remote home classname of the referee EJB.

param
the class name of the EJB home.

public voidsetEjbInterface(java.lang.String ejbInterface)
Sets the local or remote bean interface classname of the referee EJB.

param
the classname of the EJB remote object.

public voidsetJndiName(java.lang.String jndiName)
Set the jndi name for this ejb reference

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.