mandala.util
Class SerializableConstructor

java.lang.Object
  extended bymandala.util.SerializableConstructor
All Implemented Interfaces:
AccessibleObjectOp, ConstructorOp, java.lang.reflect.Member, java.io.Serializable

public class SerializableConstructor
extends java.lang.Object
implements ConstructorOp, java.io.Serializable

This class is the java.io.Serializable clone of java.lang.reflect.Constructor.

Version:
$Revision: 1.3 $
Author:
eipi
See Also:
Serializable, Constructor, Serialized Form

Field Summary
protected static Syslog syslog
          Message logger.
 
Fields inherited from interface java.lang.reflect.Member
DECLARED, PUBLIC
 
Constructor Summary
protected SerializableConstructor(java.lang.reflect.Constructor constructor)
          Creates a new SerializableConstructor instance.
 
Method Summary
 java.lang.reflect.Constructor getConstructor()
           
 java.lang.Class getDeclaringClass()
           
 java.lang.Class[] getExceptionTypes()
           
static SerializableConstructor getInstance(java.lang.reflect.Constructor constructor)
           
 int getModifiers()
           
 java.lang.String getName()
           
 java.lang.Class[] getParameterTypes()
           
 int hashCode()
           
 boolean isAccessible()
           
 java.lang.Object newInstance(java.lang.Object[] args)
          Equivalent of Constructor.newInstance(Object[]).
 void setAccessible(boolean flag)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

syslog

protected static Syslog syslog

Message logger.

Each message (debug, log, warning, error, ...) are wrote to this message logger.

See Also:
Syslog
Constructor Detail

SerializableConstructor

protected SerializableConstructor(java.lang.reflect.Constructor constructor)
Creates a new SerializableConstructor instance.

Parameters:
constructor - the constructor to be cloned/serialized.
Method Detail

getInstance

public static SerializableConstructor getInstance(java.lang.reflect.Constructor constructor)

setAccessible

public void setAccessible(boolean flag)
Specified by:
setAccessible in interface AccessibleObjectOp

isAccessible

public boolean isAccessible()
Specified by:
isAccessible in interface AccessibleObjectOp

getDeclaringClass

public java.lang.Class getDeclaringClass()
Specified by:
getDeclaringClass in interface ConstructorOp

getName

public java.lang.String getName()
Specified by:
getName in interface ConstructorOp

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface ConstructorOp

getParameterTypes

public java.lang.Class[] getParameterTypes()
Specified by:
getParameterTypes in interface ConstructorOp

getExceptionTypes

public java.lang.Class[] getExceptionTypes()
Specified by:
getExceptionTypes in interface ConstructorOp

newInstance

public java.lang.Object newInstance(java.lang.Object[] args)
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException,
                                    java.lang.reflect.InvocationTargetException,
                                    java.lang.IllegalArgumentException
Description copied from interface: ConstructorOp

Equivalent of Constructor.newInstance(Object[]).

Specified by:
newInstance in interface ConstructorOp
Parameters:
args - an Object[] value
Returns:
an Object value
Throws:
java.lang.IllegalAccessException - if an error occurs
java.lang.IllegalArgumentException - if an error occurs
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
See Also:
Constructor.newInstance(Object[]).

hashCode

public int hashCode()

getConstructor

public java.lang.reflect.Constructor getConstructor()

toString

public java.lang.String toString()


Mandala help mailing list