Skip to content

Commit 90ba732

Browse files
committed
Renamed @urlpattern to @PathPattern
1 parent f5e5a6d commit 90ba732

15 files changed

Lines changed: 31 additions & 31 deletions

File tree

annotations/src/main/java/org/ocpsoft/prettyfaces/annotation/URLPattern.java renamed to annotations/src/main/java/org/ocpsoft/prettyfaces/annotation/PathPattern.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@Documented
1212
@Target(ElementType.TYPE)
1313
@Retention(RetentionPolicy.RUNTIME)
14-
public @interface URLPattern
14+
public @interface PathPattern
1515
{
1616
String value();
1717
}

annotations/src/main/java/org/ocpsoft/prettyfaces/annotation/handlers/URLPatternHandler.java renamed to annotations/src/main/java/org/ocpsoft/prettyfaces/annotation/handlers/PathPatternHandler.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
import java.lang.reflect.AnnotatedElement;
44

5-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
5+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
66
import org.ocpsoft.rewrite.annotation.api.ClassContext;
77
import org.ocpsoft.rewrite.annotation.spi.AnnotationHandler;
88
import org.ocpsoft.rewrite.servlet.config.Path;
99

10-
public class URLPatternHandler implements AnnotationHandler<URLPattern>
10+
public class PathPatternHandler implements AnnotationHandler<PathPattern>
1111
{
1212

1313
@Override
14-
public Class<URLPattern> handles()
14+
public Class<PathPattern> handles()
1515
{
16-
return URLPattern.class;
16+
return PathPattern.class;
1717
}
1818

1919
@Override
@@ -23,7 +23,7 @@ public int priority()
2323
}
2424

2525
@Override
26-
public void process(ClassContext context, AnnotatedElement element, URLPattern annotation)
26+
public void process(ClassContext context, AnnotatedElement element, PathPattern annotation)
2727
{
2828
context.getRuleBuilder().when(Path.matches(annotation.value()));
2929
}

‎annotations/src/main/resources/META-INF/services/org.ocpsoft.rewrite.annotation.spi.AnnotationHandler‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
org.ocpsoft.prettyfaces.annotation.handlers.ForwardToHandler
22
org.ocpsoft.prettyfaces.annotation.handlers.JSFValidatorHandler
33
org.ocpsoft.prettyfaces.annotation.handlers.ParameterBindingHandler
4-
org.ocpsoft.prettyfaces.annotation.handlers.URLPatternHandler
4+
org.ocpsoft.prettyfaces.annotation.handlers.PathPatternHandler
55
org.ocpsoft.prettyfaces.annotation.handlers.MappingIdHandler
66
org.ocpsoft.prettyfaces.annotation.handlers.PriorityHandler
77
org.ocpsoft.prettyfaces.annotation.handlers.RequestActionHandler

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/BasicMappingBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
77
import org.ocpsoft.prettyfaces.annotation.ParameterBinding;
88
import org.ocpsoft.prettyfaces.annotation.RequestAction;
9-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
9+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
1010

1111
@ManagedBean
1212
@RequestScoped
13-
@URLPattern("/basic/{value}")
13+
@PathPattern("/basic/{value}")
1414
@ForwardTo("/faces/basic.xhtml")
1515
public class BasicMappingBean
1616
{

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/action/ActionPhasesBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
1313
import org.ocpsoft.prettyfaces.annotation.Phase;
1414
import org.ocpsoft.prettyfaces.annotation.RequestAction;
15-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
15+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
1616

1717
@ManagedBean
1818
@RequestScoped
19-
@URLPattern("/action")
19+
@PathPattern("/action")
2020
@ForwardTo("/faces/action-phases.xhtml")
2121
public class ActionPhasesBean
2222
{

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/action/ActionPostbackBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
77
import org.ocpsoft.prettyfaces.annotation.RequestAction;
8-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
8+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
99

1010
@ManagedBean
1111
@RequestScoped
12-
@URLPattern("/action")
12+
@PathPattern("/action")
1313
@ForwardTo("/faces/action-postback.xhtml")
1414
public class ActionPostbackBean
1515
{

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/convert/JsfConverterBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
77
import org.ocpsoft.prettyfaces.annotation.JSFConverter;
88
import org.ocpsoft.prettyfaces.annotation.ParameterBinding;
9-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
9+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
1010

1111
@ManagedBean
1212
@RequestScoped
13-
@URLPattern("/convert/{value}")
13+
@PathPattern("/convert/{value}")
1414
@ForwardTo("/faces/convert.xhtml")
1515
public class JsfConverterBean
1616
{

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/queryparam/QueryParameterBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
77
import org.ocpsoft.prettyfaces.annotation.QueryParameterBinding;
8-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
8+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
99

1010
@ManagedBean
1111
@RequestScoped
12-
@URLPattern("/page")
12+
@PathPattern("/page")
1313
@ForwardTo("/faces/query-param-basic.xhtml")
1414
public class QueryParameterBean
1515
{

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/queryparam/QueryParameterConversionBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
77
import org.ocpsoft.prettyfaces.annotation.JSFConverter;
88
import org.ocpsoft.prettyfaces.annotation.QueryParameterBinding;
9-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
9+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
1010

1111
@ManagedBean
1212
@RequestScoped
13-
@URLPattern("/page")
13+
@PathPattern("/page")
1414
@ForwardTo("/faces/query-param-conversion.xhtml")
1515
public class QueryParameterConversionBean
1616
{

‎annotations/src/test/java/org/ocpsoft/prettyfaces/annotation/basic/queryparam/QueryParameterValidationBean.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import org.ocpsoft.prettyfaces.annotation.ForwardTo;
77
import org.ocpsoft.prettyfaces.annotation.JSFValidator;
88
import org.ocpsoft.prettyfaces.annotation.QueryParameterBinding;
9-
import org.ocpsoft.prettyfaces.annotation.URLPattern;
9+
import org.ocpsoft.prettyfaces.annotation.PathPattern;
1010

1111
@ManagedBean
1212
@RequestScoped
13-
@URLPattern("/page")
13+
@PathPattern("/page")
1414
@ForwardTo("/faces/query-param-validation.xhtml")
1515
public class QueryParameterValidationBean
1616
{

0 commit comments

Comments
 (0)