org.jboss.joinpoint.plugins.reflect
Class ReflectJoinpointFactory

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.joinpoint.plugins.reflect.ReflectJoinpointFactory
All Implemented Interfaces:
Cloneable, JoinpointFactory, org.jboss.util.JBossInterface

public class ReflectJoinpointFactory
extends org.jboss.util.JBossObject
implements JoinpointFactory

A join point factory based on reflection

Author:
Adrian Brock

Field Summary
protected  ClassInfo classInfo
          The class info
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
ReflectJoinpointFactory(ClassInfo classInfo)
           
 
Method Summary
 ClassInfo getClassInfo()
          Get the class info for this join point factory
 ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo)
          Get a constructor join point
 FieldGetJoinpoint getFieldGetJoinpoint(FieldInfo fieldInfo)
          Get a field get join point
 FieldSetJoinpoint getFieldSetJoinpoint(FieldInfo fieldInfo)
          Get a field set join point
 MethodJoinpoint getMethodJoinpoint(MethodInfo methodInfo)
          Get a method join point
static void handleErrors(String context, Class[] parameters, Object[] arguments, Throwable t)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

classInfo

protected ClassInfo classInfo
The class info

Constructor Detail

ReflectJoinpointFactory

public ReflectJoinpointFactory(ClassInfo classInfo)
Method Detail

handleErrors

public static void handleErrors(String context,
                                Class[] parameters,
                                Object[] arguments,
                                Throwable t)
                         throws Throwable
Throws:
Throwable

getClassInfo

public ClassInfo getClassInfo()
Description copied from interface: JoinpointFactory
Get the class info for this join point factory

Specified by:
getClassInfo in interface JoinpointFactory
Returns:
the class info

getConstructorJoinpoint

public ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo)
                                             throws JoinpointException
Description copied from interface: JoinpointFactory
Get a constructor join point

Specified by:
getConstructorJoinpoint in interface JoinpointFactory
Parameters:
constructorInfo - the constructor info
Returns:
the constructor join point
Throws:
JoinpointException - when no such constructor

getFieldGetJoinpoint

public FieldGetJoinpoint getFieldGetJoinpoint(FieldInfo fieldInfo)
                                       throws JoinpointException
Description copied from interface: JoinpointFactory
Get a field get join point

Specified by:
getFieldGetJoinpoint in interface JoinpointFactory
Parameters:
fieldInfo - the field info
Returns:
the field get join point
Throws:
JoinpointException - when no such field

getFieldSetJoinpoint

public FieldSetJoinpoint getFieldSetJoinpoint(FieldInfo fieldInfo)
                                       throws JoinpointException
Description copied from interface: JoinpointFactory
Get a field set join point

Specified by:
getFieldSetJoinpoint in interface JoinpointFactory
Parameters:
fieldInfo - the field info
Returns:
the field set join point
Throws:
JoinpointException - when no such field

getMethodJoinpoint

public MethodJoinpoint getMethodJoinpoint(MethodInfo methodInfo)
                                   throws JoinpointException
Description copied from interface: JoinpointFactory
Get a method join point

Specified by:
getMethodJoinpoint in interface JoinpointFactory
Parameters:
methodInfo - the method info
Returns:
the method join point
Throws:
JoinpointException - when no such method

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.util.JBossObject


Copyright © 2004 JBoss Inc. All Rights Reserved.