org.jboss.joinpoint.plugins
Class BasicConstructorJoinPoint

java.lang.Object
  extended by org.jboss.joinpoint.plugins.BasicConstructorJoinPoint
All Implemented Interfaces:
Cloneable, ConstructorJoinpoint, Joinpoint

public class BasicConstructorJoinPoint
extends Object
implements ConstructorJoinpoint

A constructor joinpoint

Author:
Adrian Brock

Field Summary
protected  Object[] arguments
          The arguments
protected  ConstructorInfo constructorInfo
          The constructor info
 
Constructor Summary
BasicConstructorJoinPoint(ConstructorInfo constructorInfo)
          Create a new constructor join point
 
Method Summary
 Object clone()
          Make a copy of the joinpoint
 Object dispatch()
          Invoke on the actual joinpoint
 Object[] getArguments()
          Get the arguments for the constructor
 ConstructorInfo getConstructorInfo()
          Get the constructor info for this join point
 void setArguments(Object[] args)
          Set the arguments for the constructor
 String toHumanReadableString()
          A human readable version of the join point
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constructorInfo

protected ConstructorInfo constructorInfo
The constructor info


arguments

protected Object[] arguments
The arguments

Constructor Detail

BasicConstructorJoinPoint

public BasicConstructorJoinPoint(ConstructorInfo constructorInfo)
Create a new constructor join point

Parameters:
constructorInfo - the constructor info
Method Detail

getConstructorInfo

public ConstructorInfo getConstructorInfo()
Description copied from interface: ConstructorJoinpoint
Get the constructor info for this join point

Specified by:
getConstructorInfo in interface ConstructorJoinpoint
Returns:
the constructor info

getArguments

public Object[] getArguments()
Description copied from interface: ConstructorJoinpoint
Get the arguments for the constructor

Specified by:
getArguments in interface ConstructorJoinpoint
Returns:
the arguments

setArguments

public void setArguments(Object[] args)
Description copied from interface: ConstructorJoinpoint
Set the arguments for the constructor

Specified by:
setArguments in interface ConstructorJoinpoint
Parameters:
args - the arguments

clone

public Object clone()
Description copied from interface: Joinpoint
Make a copy of the joinpoint

Specified by:
clone in interface Joinpoint
Overrides:
clone in class Object
Returns:
a copy of the join point

dispatch

public Object dispatch()
                throws Throwable
Description copied from interface: Joinpoint
Invoke on the actual joinpoint

Specified by:
dispatch in interface Joinpoint
Returns:
the result of the invocation
Throws:
Throwable - for any error

toHumanReadableString

public String toHumanReadableString()
Description copied from interface: Joinpoint
A human readable version of the join point

Specified by:
toHumanReadableString in interface Joinpoint
Returns:
a human readable description of the join point


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.