org.jboss.joinpoint.plugins.reflect
Class ReflectJoinpointFactory

java.lang.Object
  extended byorg.jboss.joinpoint.plugins.reflect.ReflectJoinpointFactory
All Implemented Interfaces:
JoinpointFactory

public class ReflectJoinpointFactory
extends Object
implements JoinpointFactory

A join point factory based on reflection

Author:
Adrian Brock

Field Summary
protected  ClassInfo classInfo
          The class info
 
Constructor Summary
ReflectJoinpointFactory(ClassInfo classInfo)
           
 
Method Summary
 ClassInfo getClassInfo()
          Get the class info for this join point factory
 ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo, Map metadata)
          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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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,
                                                    Map metadata)
                                             throws JoinpointException
Description copied from interface: JoinpointFactory
Get a constructor join point

Specified by:
getConstructorJoinpoint in interface JoinpointFactory
Parameters:
constructorInfo - the constructor info
metadata - - TODO undocumentated rubbish
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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.