Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.util

Class Compatibility

com.gentleware.services.util.Compatibility

public final class Compatibility


Compatibility makes methods available that may not be supported by all JDK version Poseidon should run on (and does nothing or a default when the method is not supported on the current JDK).

Currently this class is empty (i.e. has no public methods) because Poseidon only needs to run on JDK 1.4 and there is no newer specification out.

Authors:
Stephen Kelvin


 Attribute Summary
private static final Class[]  _nullClasses
 
private static Object[]  _nullObjects
 
arrow_up
 

 Constructor Summary
private   Compatibility()
Do not instantiate this class. 
arrow_up
 

 Method Summary
private static Class   classForName(String className)
 
private static Constructor   getConstructor(Class clazz, Class arg)
 
private static Constructor   getConstructor(Class clazz, Class[] args)
 
private static Method   getMethod(String className, String methodName)
 
private static Method   getMethod(String className, String methodName, Class[] args)
 
private static Method   getMethod(Class clazz, String methodName)
 
private static Method   getMethod(Class clazz, String methodName, Class[] args)
 
private static Object   invoke(Method method)
A little helper that invokes a static method whitout arguments. 
private static Object   invoke(Method method, Object arg)
A little helper that invokes a static method whith a single argument. 
private static Object   invoke(Object object, Method method)
A little helper that invokes a method whitout arguments. 
private static Object   invoke(Object object, Method method, Object arg)
A little helper that invokes a method whith a single argument. 
private static Object   invoke(Object object, Method method, Object[] args)
A little helper that invokes a method. 
private static Object   newInstance(Constructor constructor, Object arg)
 
private static Object   newInstance(Constructor constructor, Object[] args)
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

_nullClasses

private static Class[] _nullClasses

arrow_up


_nullObjects

private static Object[] _nullObjects

arrow_up
 Constructor Detail

Compatibility

private Compatibility Compatibility()


Do not instantiate this class. It has static helper methods only.  
Returns:
arrow_up
 Method Detail

classForName

private static Class classForName(String className)

Parameters:
className -
Returns:
arrow_up


getConstructor

private static Constructor getConstructor(Class clazz, Class arg)

Parameters:
clazz -
arg -
Returns:
arrow_up


getConstructor

private static Constructor getConstructor(Class clazz, Class[] args)

Parameters:
clazz -
args -
Returns:
arrow_up


getMethod

private static Method getMethod(String className, String methodName)

Parameters:
className -
methodName -
Returns:
arrow_up


getMethod

private static Method getMethod(String className, String methodName, Class[] args)

Parameters:
className -
methodName -
args -
Returns:
arrow_up


getMethod

private static Method getMethod(Class clazz, String methodName)

Parameters:
clazz -
methodName -
Returns:
arrow_up


getMethod

private static Method getMethod(Class clazz, String methodName, Class[] args)

Parameters:
clazz -
methodName -
args -
Returns:
arrow_up


invoke

private static Object invoke(Method method)


A little helper that invokes a static method whitout arguments. Simply retuns null when method is null!  
Parameters:
method -
Returns:
arrow_up


invoke

private static Object invoke(Method method, Object arg)


A little helper that invokes a static method whith a single argument. Simply retuns null when method is null!  
Parameters:
method -
arg -
Returns:
arrow_up


invoke

private static Object invoke(Object object, Method method)


A little helper that invokes a method whitout arguments. Simply retuns null when method is null!  
Parameters:
object -
method -
Returns:
arrow_up


invoke

private static Object invoke(Object object, Method method, Object arg)


A little helper that invokes a method whith a single argument. Simply retuns null when method is null!  
Parameters:
object -
method -
arg -
Returns:
arrow_up


invoke

private static Object invoke(Object object, Method method, Object[] args)


A little helper that invokes a method. Simply returns null when method is null!  
Parameters:
object -
method -
args -
Returns:
arrow_up


newInstance

private static Object newInstance(Constructor constructor, Object arg)

Parameters:
constructor -
arg -
Returns:
arrow_up


newInstance

private static Object newInstance(Constructor constructor, Object[] args)

Parameters:
constructor -
args -
Returns:
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.