com.bm.ejb3metadata.annotations.impl
Class JCommonBean

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.impl.JCommonBean
Direct Known Subclasses:
JMessageDriven, JService, JStateful, JStateless

public class JCommonBean
extends java.lang.Object

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

Author:
Daniel Wiese

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
 

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


Copyright © 2008. All Rights Reserved.