org.slim3.container
Class MethodHandlerImpl

java.lang.Object
  extended by org.slim3.container.MethodHandlerImpl
All Implemented Interfaces:
MethodFilter, MethodHandler

public class MethodHandlerImpl
extends Object
implements MethodHandler, MethodFilter

An implementation class for MethodHandler.

Author:
higa

Field Summary
protected  Map<Method,Interceptor[]> interceptorMap
          The map for interceptors.
 
Constructor Summary
MethodHandlerImpl(Map<Method,Interceptor[]> interceptorMap)
          Constructor.
 
Method Summary
 Object invoke(Object self, Method thisMethod, Method proceed, Object[] args)
           
 boolean isHandled(Method m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interceptorMap

protected Map<Method,Interceptor[]> interceptorMap
The map for interceptors.

Constructor Detail

MethodHandlerImpl

public MethodHandlerImpl(Map<Method,Interceptor[]> interceptorMap)
Constructor.

Parameters:
interceptorMap - The map for interceptors
Method Detail

invoke

public Object invoke(Object self,
                     Method thisMethod,
                     Method proceed,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface MethodHandler
Throws:
Throwable

isHandled

public boolean isHandled(Method m)
Specified by:
isHandled in interface MethodFilter


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.