01: /*****************************************************************************
02: * Copyright (c) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Idea by Rachel Davies, Original code by various *
09: *****************************************************************************/package org.nanocontainer.aop.defaults;
10:
11: import org.nanocontainer.aop.ComponentPointcut;
12: import org.nanocontainer.aop.PointcutsFactory;
13:
14: /**
15: * Provides implementations of pointcut factory methods not supplied by the
16: * 'back-end' (nanning, dynop, etc.).
17: *
18: * @author Stephen Molitor
19: * @version $Revision: 3144 $
20: */
21: public abstract class AbstractPointcutsFactory implements
22: PointcutsFactory {
23:
24: public ComponentPointcut component(Object componentKey) {
25: return new KeyEqualsComponentPointcut(componentKey);
26: }
27:
28: public ComponentPointcut componentName(String regex) {
29: return new NameMatchesComponentPointcut(regex);
30: }
31:
32: }
|