com.sun.enterprise.deployment.web
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
 java.lang.String getBeanClassName()
          Gets the bean instance interface classname of the referee EJB.
 java.lang.String getHomeClassName()
          Gets the home classname of the referee EJB.
 java.lang.String getLinkName()
          Gets the link name of the reference.
 BundleDescriptor getReferringBundleDescriptor()
          Get the referring bundle, i.e.
 java.lang.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 interface
 void setBeanClassName(java.lang.String beanClassName)
          Sets the bean interface classname of the referee EJB.
 void setHomeClassName(java.lang.String homeClassName)
          Sets the home classname of the referee EJB.
 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.web.NameValuePair
getDescription, getName, getValue, setDescription, setName, setValue
 

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.

getHomeClassName

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

Returns:
the class name of the EJB home.

setHomeClassName

void setHomeClassName(java.lang.String homeClassName)
Sets the home classname of the referee EJB.

Parameters:
the - class name of the EJB home.

getBeanClassName

java.lang.String getBeanClassName()
Gets the bean instance interface classname of the referee EJB.

Returns:
the classname of the EJB remote object.

setBeanClassName

void setBeanClassName(java.lang.String beanClassName)
Sets the 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.



Copyright © 2012 GlassFish Community. All Rights Reserved.