Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ghettojedi.aop.aspect
Class Delegator  view Delegator download Delegator.java

java.lang.Object
  extended bycom.ghettojedi.aop.aspect.Delegator

public class Delegator
extends java.lang.Object


Field Summary
private  java.util.Map classesToInterceptorStacks
           
private static Delegator INSTANCE
           
private  java.util.Map interceptorTypesToInterceptors
           
 
Constructor Summary
private Delegator()
           
 
Method Summary
 void addInterceptor(java.lang.Class type, java.lang.Class interceptorType)
           
 java.lang.Object doInvoke(java.lang.Object target, java.lang.String name, java.lang.Class[] parameterTypes, java.lang.Object[] arguments)
           
static Delegator get()
           
static java.lang.String getHiddenMethodName(java.lang.String methodName)
           
private  Interceptor getInterceptor(java.lang.Class interceptorType)
           
private  java.util.List getInterceptorStack(java.lang.Class type)
           
 void removeInterceptor(java.lang.Class type, java.lang.Class interceptorType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static Delegator INSTANCE

interceptorTypesToInterceptors

private java.util.Map interceptorTypesToInterceptors

classesToInterceptorStacks

private java.util.Map classesToInterceptorStacks
Constructor Detail

Delegator

private Delegator()
Method Detail

get

public static Delegator get()

getHiddenMethodName

public static java.lang.String getHiddenMethodName(java.lang.String methodName)

doInvoke

public java.lang.Object doInvoke(java.lang.Object target,
                                 java.lang.String name,
                                 java.lang.Class[] parameterTypes,
                                 java.lang.Object[] arguments)
                          throws java.lang.Throwable

addInterceptor

public void addInterceptor(java.lang.Class type,
                           java.lang.Class interceptorType)

removeInterceptor

public void removeInterceptor(java.lang.Class type,
                              java.lang.Class interceptorType)

getInterceptorStack

private java.util.List getInterceptorStack(java.lang.Class type)

getInterceptor

private Interceptor getInterceptor(java.lang.Class interceptorType)