org.objectweb.easybeans.deployment.annotations.impl
Class JCommonBean

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.impl.JCommonBean
Direct Known Subclasses:
JMessageDriven, JStateful, JStateless

public class JCommonBean
extends java.lang.Object

Defines common methods used by Session Bean and Message Driven beans.

Author:
Florent Benoit

Field Summary
private  java.lang.String description
          Description.
private  java.lang.String mappedName
          Mapped name (could be used as JNDI name).
private  java.lang.String name
          Name of the bean.
 
Constructor Summary
JCommonBean()
          Build an object that will be shared by EJB (Session + MDB).
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getMappedName()
           
 java.lang.String getName()
           
 void setDescription(java.lang.String description)
          Sets the description.
 void setMappedName(java.lang.String mappedName)
          Sets the mapped name.
 void setName(java.lang.String name)
          Sets the bean name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name of the bean.


mappedName

private java.lang.String mappedName
Mapped name (could be used as JNDI name).


description

private java.lang.String description
Description.

Constructor Detail

JCommonBean

public JCommonBean()
Build an object that will be shared by EJB (Session + MDB).

Method Detail

getDescription

public java.lang.String getDescription()
Returns:
the description.

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - value of description

getMappedName

public java.lang.String getMappedName()
Returns:
the mapped name (JNDI ?)

setMappedName

public void setMappedName(java.lang.String mappedName)
Sets the mapped name.

Parameters:
mappedName - the value to set

getName

public java.lang.String getName()
Returns:
name of the bean.

setName

public void setName(java.lang.String name)
Sets the bean name.

Parameters:
name - the bean's name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation