org.jboss.aop.metadata
Class MethodMetaData

java.lang.Object
  extended by org.jboss.aop.metadata.MethodMetaData
All Implemented Interfaces:
MetaDataResolver

public class MethodMetaData
extends Object
implements MetaDataResolver

Version:
$Revision: 70500 $
Author:
Bill Burke

Field Summary
 
Fields inherited from interface org.jboss.aop.metadata.MetaDataResolver
EMPTY_TAG
 
Constructor Summary
MethodMetaData()
           
 
Method Summary
 void addMethodMetaData(javassist.CtMethod method, Object tag, Object attr, Object value)
           
 void addMethodMetaData(javassist.CtMethod method, Object tag, Object attr, Object value, PayloadKey type)
           
 void addMethodMetaData(Method method, Object tag, Object attr, Object value)
           
 void addMethodMetaData(Method method, Object tag, Object attr, Object value, boolean exactMatch)
           
 void addMethodMetaData(Method method, Object tag, Object attr, Object value, PayloadKey type)
           
 void addMethodMetaData(Method method, Object tag, Object attr, Object value, PayloadKey type, boolean exactMatch)
           
 void clear()
           
 SimpleMetaData getAllMetaData(Invocation invocation)
          Gets all metadata that belongs with the context of invocation
 SimpleMetaData getMethodMetaData(Method method)
           
 Object getMethodMetaData(Method method, Object tag, Object attr)
           
 SimpleMetaData getMethodMetaData(String method)
          This requires a method signature derived from java.lang.reflect.Method.toString()
 Iterator<String> getMethods()
           
 boolean hasGroup(javassist.CtMethod method, String tag)
           
 boolean hasTag(Method method, String tag)
           
 boolean hasTag(String group)
           
 Object resolve(Invocation invocation, Object tag, Object attr)
           
 void tagMethod(javassist.CtMethod method, Object tag)
           
 void tagMethod(Method method, Object tag)
           
 boolean tagWasMatchedInexactly(Method method, Object tag, Object attr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMetaData

public MethodMetaData()
Method Detail

hasTag

public boolean hasTag(String group)

tagMethod

public void tagMethod(Method method,
                      Object tag)

addMethodMetaData

public void addMethodMetaData(Method method,
                              Object tag,
                              Object attr,
                              Object value)

addMethodMetaData

public void addMethodMetaData(Method method,
                              Object tag,
                              Object attr,
                              Object value,
                              boolean exactMatch)

addMethodMetaData

public void addMethodMetaData(Method method,
                              Object tag,
                              Object attr,
                              Object value,
                              PayloadKey type)

addMethodMetaData

public void addMethodMetaData(Method method,
                              Object tag,
                              Object attr,
                              Object value,
                              PayloadKey type,
                              boolean exactMatch)

tagWasMatchedInexactly

public boolean tagWasMatchedInexactly(Method method,
                                      Object tag,
                                      Object attr)

hasTag

public boolean hasTag(Method method,
                      String tag)

getMethods

public Iterator<String> getMethods()

getMethodMetaData

public SimpleMetaData getMethodMetaData(String method)
This requires a method signature derived from java.lang.reflect.Method.toString()

Parameters:
method -
Returns:

getMethodMetaData

public SimpleMetaData getMethodMetaData(Method method)

getMethodMetaData

public Object getMethodMetaData(Method method,
                                Object tag,
                                Object attr)

clear

public void clear()

resolve

public Object resolve(Invocation invocation,
                      Object tag,
                      Object attr)
Specified by:
resolve in interface MetaDataResolver

getAllMetaData

public SimpleMetaData getAllMetaData(Invocation invocation)
Description copied from interface: MetaDataResolver
Gets all metadata that belongs with the context of invocation

Specified by:
getAllMetaData in interface MetaDataResolver
Returns:
the metadata contained in the context of invocation

tagMethod

public void tagMethod(javassist.CtMethod method,
                      Object tag)

addMethodMetaData

public void addMethodMetaData(javassist.CtMethod method,
                              Object tag,
                              Object attr,
                              Object value)

addMethodMetaData

public void addMethodMetaData(javassist.CtMethod method,
                              Object tag,
                              Object attr,
                              Object value,
                              PayloadKey type)

hasGroup

public boolean hasGroup(javassist.CtMethod method,
                        String tag)


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