Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.aop.joinpoint
Class ConstructorInvocation

    java.lang.Object
      org.jboss.aop.joinpoint.InvocationBase
          org.jboss.aop.joinpoint.ConstructorInvocation

All Implemented Interfaces:
  Invocation, Serializable

Direct Known Subclasses:
  ConstructionInvocationWrapper, ConstructorInvocationWrapper

public class ConstructorInvocation
extends InvocationBase

This is a helper wrapper class for an Invocation object. It is used to add or get values or metadata that pertains to an AOP Constructor interception.

Version:
  $Revision: 1.23 $
Author:
  Bill Burke
See Also:
  Serialized Form

Field Summary
`protected Object[]` | `arguments`
`protected Constructor` | `constructor`

Fields inherited from class org.jboss.aop.joinpoint.InvocationBase
`advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject`

Constructor Summary
`ConstructorInvocation(ConstructorInfo info, Interceptor[] interceptors)`
`ConstructorInvocation(Interceptor[] interceptors)`

Method Summary
`Invocation` | `copy()` Copies complete state of Invocation object.
`Object[]` | `getArguments()`
`Constructor` | `getConstructor()`
`Object` | `getMetaData(Object group, Object attr)` This method resolves metadata based on the context of the invocation.
`Invocation` | `getWrapper(Interceptor[] newchain)` Get a wrapper invocation object that can insert a new chain of interceptors at runtime to the invocation flow.
`Object` | `invokeNext()` Invoke on the next interceptor in the chain.
`Object` | `resolveAnnotation(Class annotation)` This method resolves an annotation based on the context of the invocation.
`void` | `setArguments(Object[] arguments)`
`void` | `setConstructor(Constructor constructor)`

Methods inherited from class org.jboss.aop.joinpoint.InvocationBase
`addResponseAttachment, getAdvisor, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObject`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### arguments

    protected Object[] arguments

### constructor

    protected transient Constructor constructor

Constructor Detail

### ConstructorInvocation

    public ConstructorInvocation(Interceptor[] interceptors)

### ConstructorInvocation

    public ConstructorInvocation(ConstructorInfo info,
                                 Interceptor[] interceptors)

Method Detail

### invokeNext

    public Object invokeNext()
                      throws Throwable

  Invoke on the next interceptor in the chain. If this is already the end of the chain, reflection will call the constructor, field, or method you are invoking on.

  Specified by:
    `invokeNext` in interface `Invocation`
  Overrides:
    `invokeNext` in class `InvocationBase`
  Throws:
    `Throwable`

### resolveAnnotation

    public Object resolveAnnotation(Class annotation)

  This method resolves an annotation based on the context of the invocation.

  Specified by:
    `resolveAnnotation` in interface `Invocation`
  Overrides:
    `resolveAnnotation` in class `InvocationBase`

### getMetaData

    public Object getMetaData(Object group,
                              Object attr)

  This method resolves metadata based on the context of the invocation. It iterates through its list of MetaDataResolvers to find out the value of the metadata desired. This list usually is ThreadMetaData, InstanceAdvisor.getMetaData ClassAdvisor.getMethodMetaData (or field, or constructor) ClassAdvisor.getDefaultMetaData

  Specified by:
    `getMetaData` in interface `Invocation`
  Overrides:
    `getMetaData` in class `InvocationBase`

### getWrapper

    public Invocation getWrapper(Interceptor[] newchain)

  Get a wrapper invocation object that can insert a new chain of interceptors at runtime to the invocation flow. CFlow makes use of this. When the wrapper object finishes its invocation chain it delegates back to the wrapped invocation.

  Parameters:
    `newchain` -
  Returns:

### copy

    public Invocation copy()

  Copies complete state of Invocation object.

  Returns:

### getArguments

    public Object[] getArguments()

### setArguments

    public void setArguments(Object[] arguments)

### getConstructor

    public Constructor getConstructor()

### setConstructor

    public void setConstructor(Constructor constructor)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 JBoss Inc. All Rights Reserved.