org.objectweb.jonas_ejb.lib
Class BeanNaming

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.lib.BeanNaming

public class BeanNaming
extends java.lang.Object

This class is made for hiding Naming convention in all JOnAS framework.
(Among other things, names of the implementation classes of the Enterprise Bean's Home and Enterprise Bean Remote interfaces generated by the GenIC tools.)
It is used by the EJB generation tools and framework


Constructor Summary
BeanNaming(BeanDesc dd)
          Create a BeanNaming Object from the Deployment Descriptor.
 
Method Summary
static java.lang.String firstToUpperCase(java.lang.String s)
          returns the given string with the first character converted to upper case
static java.lang.String getBaseName(java.lang.String fullName)
          returns the basename of the given full name
 java.lang.String getDerivedBeanName()
          returns the name of the derived class of the bean
 java.lang.String getFullDerivedBeanName()
          returns the full name of the derived class of the bean
 java.lang.String getFullWrpHandleName()
          returns the full name of the Handle class for the bean
 java.lang.String getFullWrpHomeName()
          returns the full name of the wrapper home class for the bean
 java.lang.String getFullWrpLocalHomeName()
          returns the full name of the wrapper local home class for the bean
 java.lang.String getFullWrpLocalName()
          returns the full name of the wrapper class for the bean
 java.lang.String getFullWrpRemoteName()
          returns the full name of the wrapper class for the bean
static java.lang.String getJonasXmlName(java.lang.String stdXmlName)
          returns the name of the JOnAS specific deployment descriptor file's name corresponding to the given standard deployment descriptor file's name.
static java.lang.String getPackageName(java.lang.String fullName)
          returns the name of the package of the given full name
static java.lang.String getPath(java.lang.String fullName)
          returns the full path of the file name.
static java.lang.String getSignature(java.lang.String prefix, java.lang.reflect.Method method)
          returns a string that represents the signature of a method
 java.lang.String getWrpHandleName()
          returns the name of the Handle class for the bean
 java.lang.String getWrpHomeName()
          returns the name of the wrapper home class for the bean
 java.lang.String getWrpLocalHomeName()
          returns the name of the wrapper local home class for the bean
 java.lang.String getWrpLocalName()
          returns the name of the wrapper class for the bean
 java.lang.String getWrpRemoteName()
          returns the name of the wrapper class for the bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanNaming

public BeanNaming(BeanDesc dd)
Create a BeanNaming Object from the Deployment Descriptor.
(Generally speaking FullXName means packageName + Name X)
Method Detail

getPackageName

public static java.lang.String getPackageName(java.lang.String fullName)
returns the name of the package of the given full name

getPath

public static java.lang.String getPath(java.lang.String fullName)
returns the full path of the file name. mainly replace '.' by '/'.

getBaseName

public static java.lang.String getBaseName(java.lang.String fullName)
returns the basename of the given full name

firstToUpperCase

public static java.lang.String firstToUpperCase(java.lang.String s)
returns the given string with the first character converted to upper case

getFullWrpRemoteName

public java.lang.String getFullWrpRemoteName()
returns the full name of the wrapper class for the bean

getFullWrpLocalName

public java.lang.String getFullWrpLocalName()
returns the full name of the wrapper class for the bean

getWrpRemoteName

public java.lang.String getWrpRemoteName()
returns the name of the wrapper class for the bean

getWrpLocalName

public java.lang.String getWrpLocalName()
returns the name of the wrapper class for the bean

getFullWrpHandleName

public java.lang.String getFullWrpHandleName()
returns the full name of the Handle class for the bean

getWrpHandleName

public java.lang.String getWrpHandleName()
returns the name of the Handle class for the bean

getFullWrpHomeName

public java.lang.String getFullWrpHomeName()
returns the full name of the wrapper home class for the bean

getFullWrpLocalHomeName

public java.lang.String getFullWrpLocalHomeName()
returns the full name of the wrapper local home class for the bean

getWrpHomeName

public java.lang.String getWrpHomeName()
returns the name of the wrapper home class for the bean

getWrpLocalHomeName

public java.lang.String getWrpLocalHomeName()
returns the name of the wrapper local home class for the bean

getFullDerivedBeanName

public java.lang.String getFullDerivedBeanName()
returns the full name of the derived class of the bean

getDerivedBeanName

public java.lang.String getDerivedBeanName()
returns the name of the derived class of the bean

getJonasXmlName

public static java.lang.String getJonasXmlName(java.lang.String stdXmlName)
returns the name of the JOnAS specific deployment descriptor file's name corresponding to the given standard deployment descriptor file's name. (ex: returns "jonas-XXX.xml" for "XXX.xml" and "../../jonas-XXX.xml" for "../../XXX.xml")

getSignature

public static java.lang.String getSignature(java.lang.String prefix,
                                            java.lang.reflect.Method method)
returns a string that represents the signature of a method