1 package org.seasar.cubby.customizer;
2
3 import org.seasar.cubby.aop.ActionMethodPointcutImpl;
4 import org.seasar.framework.aop.Pointcut;
5 import org.seasar.framework.util.StringUtil;
6
7
8
9
10
11
12 class PointcutFactory {
13
14
15
16
17
18
19
20
21 public static Pointcut createPointcut(final String pointcutStr) {
22 if (!StringUtil.isEmpty(pointcutStr)) {
23 String[] methodNames = StringUtil.split(pointcutStr, ", \n");
24 return new ActionMethodPointcutImpl(methodNames);
25 }
26 return null;
27 }
28
29
30
31
32
33
34
35
36
37 public static Pointcut createPointcut(final Class<?> clazz) {
38 return new ActionMethodPointcutImpl(clazz);
39 }
40
41 }