All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nanocontainer.aop.defaults.AbstractPointcutsFactory 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.defaults;

import org.nanocontainer.aop.ComponentPointcut;
import org.nanocontainer.aop.PointcutsFactory;

/**
 * Provides implementations of pointcut factory methods not supplied by the
 * 'back-end' (nanning, dynop, etc.).
 *
 * @author Stephen Molitor
 * @version $Revision: 3144 $
 */
public abstract class AbstractPointcutsFactory implements PointcutsFactory {

    public ComponentPointcut component(Object componentKey) {
        return new KeyEqualsComponentPointcut(componentKey);
    }

    public ComponentPointcut componentName(String regex) {
        return new NameMatchesComponentPointcut(regex);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy