KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > aop > defaults > AbstractPointcutsFactory


1 /*****************************************************************************
2  * Copyright (c) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Idea by Rachel Davies, Original code by various *
9  *****************************************************************************/

10 package org.nanocontainer.aop.defaults;
11
12 import org.nanocontainer.aop.ComponentPointcut;
13 import org.nanocontainer.aop.PointcutsFactory;
14
15 /**
16  * Provides implementations of pointcut factory methods not supplied by the
17  * 'back-end' (nanning, dynop, etc.).
18  *
19  * @author Stephen Molitor
20  * @version $Revision: 3144 $
21  */

22 public abstract class AbstractPointcutsFactory implements PointcutsFactory {
23
24     public ComponentPointcut component(Object JavaDoc componentKey) {
25         return new KeyEqualsComponentPointcut(componentKey);
26     }
27
28     public ComponentPointcut componentName(String JavaDoc regex) {
29         return new NameMatchesComponentPointcut(regex);
30     }
31
32 }
Popular Tags