org.nanocontainer.aop.dynaop..svn.text-base.DynaopMethodPointcut.svn-base Maven / Gradle / Ivy
/*****************************************************************************
* Copyright (c) PicoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* style license a copy of which has been included with this distribution in *
* the LICENSE.txt file. *
* *
* Idea by Rachel Davies, Original code by various *
*****************************************************************************/
package org.nanocontainer.aop.dynaop;
import org.nanocontainer.aop.MethodPointcut;
import java.lang.reflect.Method;
/**
* Adapts a dynaop.MethodPointcut
to the
* org.nanocontainer.aop.MethodPointcut
interface.
*
* @author Stephen Molitor
* @version $Revision$
*/
class DynaopMethodPointcut implements dynaop.MethodPointcut, MethodPointcut {
private final dynaop.MethodPointcut delegate;
/**
* Creates a new DynaopMethodPointcut
that will delegate to
* the given dynaop.MethodPointcut
.
*
* @param delegate the dynaop.MethodPointcut
to delegate to.
*/
DynaopMethodPointcut(dynaop.MethodPointcut delegate) {
this.delegate = delegate;
}
/**
* Returns true if the delegate dynaop.MethodPointcut
passed
* to the constructor picks method
.
*
* @param method the method to match against.
* @return true if this pointcut picks method
, else false.
*/
public boolean picks(Method method) {
return delegate.picks(method);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy