org.jboss.joinpoint.plugins
Class BasicJoinpointFactory

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

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

A basic join point factory

Author:
Adrian Brock

Field Summary
protected  ClassInfo classInfo
          The class info
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
BasicJoinpointFactory(ClassInfo classInfo)
           
 
Method Summary
 ClassInfo getClassInfo()
          Get the class info for this join point factory
 ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo)
          Get a constructor join point
 ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo, Object 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
 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

BasicJoinpointFactory

public BasicJoinpointFactory(ClassInfo classInfo)
Method Detail

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

getConstructorJoinpoint

public ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo,
                                                    Object 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 - the metaData
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 © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.