com.xenonsoft.bridgetown.soa.impl
Class AssemblyUtils

java.lang.Object
  extended bycom.xenonsoft.bridgetown.soa.impl.AssemblyUtils

public class AssemblyUtils
extends java.lang.Object

A static class of assembly factory utility methods

Version:
$Id: AssemblyUtils.java,v 1.1 2004/09/22 02:21:16 peter_pilgrim Exp $
Author:
peterp, 17-Sep-2004

Method Summary
static void dumpClassInfo(java.lang.Class clazz)
          Dump the class information
static void dumpConstructorInfo(java.lang.Class clazz)
          Dump the class constructor information
static void dumpDeclaredConstructorInfo(java.lang.Class clazz)
          Dump the class declared constructor information
static void dumpMethodInfo(java.lang.Class clazz)
          Dump the class method information
static java.lang.String dumpParameterClasses(java.lang.Object[] objArr)
          Prints the indivual object elements inside an primitive array into a String which is delimited by comma, and contained inside parenthesis.
static java.lang.String getBeanObjRef(java.lang.Object bean)
          Dump the object reference in the format < Class.Name > @ < Hex Hash-Code >
static java.lang.Class getClassFromPrimitive(java.lang.String primitiveName)
          Looks up the class name for a primitive by name.
static java.lang.Class getClassFromPrimitive(java.lang.String primitiveName, java.lang.Class defaultClass)
          Looks up the class name for a primitive by name.
static java.lang.Class getWrapperClassFromPrimitive(java.lang.String primitiveName)
          Looks up the wrapper class name for a primitive by name.
static java.lang.Class getWrapperClassFromPrimitive(java.lang.String primitiveName, java.lang.Class defaultClass)
          Looks up the wrapper class name for a primitive by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClassFromPrimitive

public static java.lang.Class getClassFromPrimitive(java.lang.String primitiveName)
Looks up the class name for a primitive by name. For example an "int" returns the class java.lang.Integer.TYPE. This method is obviously usefully to assembly factory writers.

Parameters:
primitiveName - the primitive name
Returns:
the look up class name or the null if the method cannot find a matching primitive.
See Also:
getClassFromPrimitive(String, Class)

getClassFromPrimitive

public static java.lang.Class getClassFromPrimitive(java.lang.String primitiveName,
                                                    java.lang.Class defaultClass)
Looks up the class name for a primitive by name. For example an "int" returns the class java.lang.Integer.TYPE. This method is obviously usefully to assembly factory writers.

Parameters:
primitiveName - the primitive name
defaultClass - the default class name if no match is found.
Returns:
the look up class name or the default class value

getWrapperClassFromPrimitive

public static java.lang.Class getWrapperClassFromPrimitive(java.lang.String primitiveName)
Looks up the wrapper class name for a primitive by name. For example an "int" returns the class java.lang.Integer.class. This method is obviously usefully to assembly factory writers.

Parameters:
primitiveName - the primitive name
Returns:
the look up wrapper class or the null if the method cannot find a matching primitive.
See Also:
getWrapperClassFromPrimitive(String, Class)

getWrapperClassFromPrimitive

public static java.lang.Class getWrapperClassFromPrimitive(java.lang.String primitiveName,
                                                           java.lang.Class defaultClass)
Looks up the wrapper class name for a primitive by name. For example an "int" returns the class java.lang.Integer.class. This method is obviously usefully to assembly factory writers.

Parameters:
primitiveName - the primitive name
defaultClass - the default class name if no match is found.
Returns:
the look up wrapper class or the default class value

dumpParameterClasses

public static java.lang.String dumpParameterClasses(java.lang.Object[] objArr)
Prints the indivual object elements inside an primitive array into a String which is delimited by comma, and contained inside parenthesis.

Parameters:
objArr - the object array of classes
Returns:
the text string of parameters

getBeanObjRef

public static java.lang.String getBeanObjRef(java.lang.Object bean)
Dump the object reference in the format < Class.Name > @ < Hex Hash-Code >

Parameters:
bean - the object
Returns:
the reference
See Also:
Object.hashCode()

dumpClassInfo

public static void dumpClassInfo(java.lang.Class clazz)
Dump the class information

Parameters:
clazz - the java class

dumpConstructorInfo

public static void dumpConstructorInfo(java.lang.Class clazz)
Dump the class constructor information

Parameters:
clazz - the java class

dumpDeclaredConstructorInfo

public static void dumpDeclaredConstructorInfo(java.lang.Class clazz)
Dump the class declared constructor information

Parameters:
clazz - the java class

dumpMethodInfo

public static void dumpMethodInfo(java.lang.Class clazz)
Dump the class method information

Parameters:
clazz - the java class


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.