Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

Commit fb00783

Browse files
committed
Updated imports regarding new annotation packages
1 parent 19bf459 commit fb00783

File tree

63 files changed

+105
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+105
-107
lines changed

core/src/main/java/org/mvcspec/ozark/MvcContextImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import javax.inject.Inject;
2525
import javax.inject.Named;
2626
import javax.mvc.MvcContext;
27-
import javax.mvc.MvcUriBuilder;
27+
import javax.mvc.uri.MvcUriBuilder;
2828
import javax.mvc.security.Csrf;
2929
import javax.mvc.security.Encoders;
3030
import javax.servlet.ServletContext;

core/src/main/java/org/mvcspec/ozark/binding/validate/ValidationInterceptorBinding.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
package org.mvcspec.ozark.binding.validate;
1717

1818
import javax.interceptor.InterceptorBinding;
19+
import javax.mvc.Controller;
1920
import java.lang.annotation.*;
2021

2122
import static java.lang.annotation.ElementType.METHOD;
2223
import static java.lang.annotation.ElementType.TYPE;
2324

2425
/**
25-
* Triggers validation of parameters in {@link javax.mvc.annotation.Controller} methods.
26+
* Triggers validation of parameters in {@link Controller} methods.
2627
* This annotation is added by the CDI extension to all controller methods.
2728
*
2829
* @author Dmytro Maidaniuk

core/src/main/java/org/mvcspec/ozark/cdi/OzarkCdiExtension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
import javax.enterprise.event.Observes;
4747
import javax.enterprise.inject.spi.*;
4848
import javax.interceptor.Interceptor;
49-
import javax.mvc.annotation.Controller;
50-
import javax.mvc.annotation.RedirectScoped;
49+
import javax.mvc.Controller;
50+
import javax.mvc.RedirectScoped;
5151
import javax.mvc.event.MvcEvent;
5252
import java.lang.reflect.Type;
5353
import java.util.HashSet;
@@ -158,7 +158,7 @@ public void afterBeanDiscovery(@Observes final AfterBeanDiscovery event, BeanMan
158158
}
159159

160160
/**
161-
* Search for {@link javax.mvc.annotation.Controller} annotation and patch AnnotatedType.
161+
* Search for {@link Controller} annotation and patch AnnotatedType.
162162
* Note: PLATFORM_AFTER is required so we execute AFTER the Hibernate Validator Extension
163163
*/
164164
public <T> void processAnnotatedType(

core/src/main/java/org/mvcspec/ozark/cdi/RedirectScopeContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import javax.enterprise.context.spi.Contextual;
2121
import javax.enterprise.context.spi.CreationalContext;
2222
import javax.enterprise.inject.spi.CDI;
23-
import javax.mvc.annotation.RedirectScoped;
23+
import javax.mvc.RedirectScoped;
2424
import java.io.Serializable;
2525
import java.lang.annotation.Annotation;
2626

core/src/main/java/org/mvcspec/ozark/cdi/types/AnnotatedTypeProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import javax.enterprise.inject.spi.AnnotatedMethod;
2121
import javax.enterprise.inject.spi.AnnotatedType;
22-
import javax.mvc.annotation.Controller;
22+
import javax.mvc.Controller;
2323
import javax.ws.rs.*;
2424
import java.lang.annotation.Annotation;
2525
import java.util.Collections;

core/src/main/java/org/mvcspec/ozark/core/ViewRequestFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import javax.annotation.Priority;
2222
import javax.enterprise.event.Event;
2323
import javax.inject.Inject;
24-
import javax.mvc.annotation.Controller;
24+
import javax.mvc.Controller;
2525
import javax.mvc.event.BeforeControllerEvent;
2626
import javax.ws.rs.Priorities;
2727
import javax.ws.rs.container.ContainerRequestContext;
@@ -35,7 +35,7 @@
3535
* <p>A JAX-RS request filter that fires a {@link javax.mvc.event.BeforeControllerEvent}
3636
* after the controller has been matched but before it is called.</p>
3737
*
38-
* <p>Given that this filter is annotated with {@link javax.mvc.annotation.Controller},
38+
* <p>Given that this filter is annotated with {@link Controller},
3939
* it will be called before a controller is called. Priority is set to
4040
* {@link javax.ws.rs.Priorities#ENTITY_CODER} which means it will be executed
4141
* right before user-defined request filters.</p>

core/src/main/java/org/mvcspec/ozark/core/ViewResponseFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import javax.enterprise.event.Event;
2323
import javax.inject.Inject;
2424
import org.mvcspec.ozark.engine.Viewable;
25-
import javax.mvc.annotation.Controller;
26-
import javax.mvc.annotation.View;
25+
import javax.mvc.Controller;
26+
import javax.mvc.View;
2727
import javax.mvc.event.AfterControllerEvent;
2828
import javax.mvc.event.ControllerRedirectEvent;
2929
import javax.mvc.event.MvcEvent;
@@ -68,7 +68,7 @@
6868
* {@code text/html}. If the method does not return void (has an entity), the computation
6969
* of the Content-Type is done by JAX-RS and is available via {@code responseContext}.</p>
7070
*
71-
* <p>Given that this filter is annotated with {@link javax.mvc.annotation.Controller}, it
71+
* <p>Given that this filter is annotated with {@link Controller}, it
7272
* will be called after every controller method returns. Priority is set to
7373
* {@link javax.ws.rs.Priorities#ENTITY_CODER} which means it will be executed
7474
* after user-defined response filters (response filters are sorted in reverse order).</p>

core/src/main/java/org/mvcspec/ozark/engine/Viewable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.mvcspec.ozark.engine;
1717

18+
import javax.mvc.Controller;
1819
import javax.mvc.Models;
1920
import javax.mvc.engine.ViewEngine;
2021

@@ -25,7 +26,7 @@
2526
*
2627
* @author Santiago Pericas-Geertsen
2728
* @see javax.mvc.Models
28-
* @see javax.mvc.annotation.Controller
29+
* @see Controller
2930
* @see javax.mvc.engine.ViewEngine
3031
* @since 1.0
3132
*/

core/src/main/java/org/mvcspec/ozark/security/CsrfProtectFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import org.mvcspec.ozark.OzarkConfig;
1919

2020
import javax.annotation.Priority;
21-
import javax.enterprise.inject.Instance;
2221
import javax.inject.Inject;
23-
import javax.mvc.annotation.Controller;
22+
import javax.mvc.Controller;
2423
import javax.mvc.security.Csrf;
24+
import javax.mvc.security.CsrfValid;
2525
import javax.ws.rs.Priorities;
2626
import javax.ws.rs.container.ContainerRequestContext;
2727
import javax.ws.rs.container.ContainerResponseContext;
@@ -38,7 +38,7 @@
3838
* <p>CSRF can be enabled by setting the property {@link javax.mvc.security.Csrf#CSRF_PROTECTION}
3939
* to {@link javax.mvc.security.Csrf.CsrfOptions#IMPLICIT}, to by setting it to
4040
* {@link javax.mvc.security.Csrf.CsrfOptions#EXPLICIT} and annotating the desired
41-
* controllers with {@link javax.mvc.annotation.CsrfValid}. Note that validation only
41+
* controllers with {@link CsrfValid}. Note that validation only
4242
* applies to controllers also annotated by {@link javax.ws.rs.POST}.</p>
4343
*
4444
* @author Santiago Pericas-Geertsen

core/src/main/java/org/mvcspec/ozark/security/CsrfValidateInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
import javax.annotation.Priority;
2222
import javax.inject.Inject;
23-
import javax.mvc.annotation.Controller;
24-
import javax.mvc.annotation.CsrfValid;
23+
import javax.mvc.Controller;
24+
import javax.mvc.security.CsrfValid;
2525
import javax.mvc.security.CsrfValidationException;
2626
import javax.ws.rs.POST;
2727
import javax.ws.rs.Priorities;

0 commit comments

Comments
 (0)