com.sun.enterprise.deployment.types
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
 EjbDescriptor getEjbDescriptor()
           
 java.lang.String getEjbHomeInterface()
          Gets the home classname of the referee EJB.
 java.lang.String getEjbInterface()
          Gets the local or remote interface classname of the referee EJB.
 java.lang.String getJndiName()
           
 java.lang.String getLinkName()
          Gets the link name of the reference.
 java.lang.String getLookupName()
           
 BundleDescriptor getReferringBundleDescriptor()
          Get the referring bundle, i.e.
 java.lang.String getType()
          Get the type of the EJB (Session, Entity or Message-Driven).
 boolean hasJndiName()
           
 boolean hasLookupName()
           
 boolean isEJB30ClientView()
           
 boolean isLocal()
          Tests if the reference to the referree EJB is through local or remote interface
 void setEjbDescriptor(EjbDescriptor descriptor)
           
 void setEjbHomeInterface(java.lang.String ejbHomeInterface)
          Sets the local or remote home classname of the referee EJB.
 void setEjbInterface(java.lang.String ejbInterface)
          Sets the local or remote bean interface classname of the referee EJB.
 void setJndiName(java.lang.String jndiName)
          Set the jndi name for this ejb reference
 void setLinkName(java.lang.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 EJB
 void setReferringBundleDescriptor(BundleDescriptor referringBundle)
          Set the referring bundle, i.e.
 void setType(java.lang.String type)
          Set the type of the EJB.
 
Methods inherited from interface com.sun.enterprise.deployment.types.NamedInformation
getDescription, getName, setDescription, setName
 
Methods inherited from interface com.sun.enterprise.deployment.InjectionCapable
addInjectionTarget, getComponentEnvName, getInjectionTargets, getInjectResourceType, isInjectable, setInjectResourceType
 

Method Detail

getType

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

Returns:
the type of the EJB.

setType

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

Parameters:
the - type of the EJB.

getEjbHomeInterface

java.lang.String getEjbHomeInterface()
Gets the home classname of the referee EJB.

Returns:
the class name of the EJB home.

setEjbHomeInterface

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

Parameters:
the - class name of the EJB home.

getEjbInterface

java.lang.String getEjbInterface()
Gets the local or remote interface classname of the referee EJB.

Returns:
the classname of the EJB remote object.

setEjbInterface

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

Parameters:
the - classname of the EJB remote object.

getLinkName

java.lang.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(java.lang.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.


setJndiName

void setJndiName(java.lang.String jndiName)
Set the jndi name for this ejb reference


getJndiName

java.lang.String getJndiName()
Returns:
the jndi name for this ejb reference

hasJndiName

boolean hasJndiName()

hasLookupName

boolean hasLookupName()

getLookupName

java.lang.String getLookupName()

getEjbDescriptor

EjbDescriptor getEjbDescriptor()

setEjbDescriptor

void setEjbDescriptor(EjbDescriptor descriptor)

isEJB30ClientView

boolean isEJB30ClientView()
Returns:
true if the EJB reference is a 30 client view


Copyright © 2012 GlassFish Community. All Rights Reserved.