Commit fcad3257e20be3191a2db1f603b5a1902cb104b1

Authored by Vanderson Silva
1 parent dc333641

ajustes

1 /persistence/target/ 1 /persistence/target/
2 /core/target/ 2 /core/target/
3 /ws/target/ 3 /ws/target/
4 -/security/target/  
5 \ No newline at end of file 4 \ No newline at end of file
  5 +/security/target/
  6 +/.project
  7 +/.settings/
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion> 4 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.demoiselle.jee</groupId> 5 <groupId>org.demoiselle.jee</groupId>
6 - <artifactId>core</artifactId> 6 + <artifactId>demoiselle-core</artifactId>
7 <version>3.0.0-SNAPSHOT</version> 7 <version>3.0.0-SNAPSHOT</version>
8 <packaging>jar</packaging> 8 <packaging>jar</packaging>
9 <properties> 9 <properties>
core/src/main/java/org/demoiselle/jee/core/internal/producer/ResourceBundleProducer.java
@@ -7,14 +7,16 @@ package org.demoiselle.jee.core.internal.producer; @@ -7,14 +7,16 @@ package org.demoiselle.jee.core.internal.producer;
7 7
8 import java.io.Serializable; 8 import java.io.Serializable;
9 import java.util.Locale; 9 import java.util.Locale;
10 -import org.demoiselle.jee.core.util.ResourceBundle; 10 +
11 import javax.enterprise.context.Dependent; 11 import javax.enterprise.context.Dependent;
12 import javax.enterprise.inject.Default; 12 import javax.enterprise.inject.Default;
13 import javax.enterprise.inject.Produces; 13 import javax.enterprise.inject.Produces;
14 import javax.enterprise.inject.spi.CDI; 14 import javax.enterprise.inject.spi.CDI;
15 import javax.enterprise.inject.spi.InjectionPoint; 15 import javax.enterprise.inject.spi.InjectionPoint;
  16 +
16 import org.demoiselle.jee.core.annotation.Name; 17 import org.demoiselle.jee.core.annotation.Name;
17 -import org.demoiselle.util.CDIUtils; 18 +import org.demoiselle.jee.core.util.CDIUtils;
  19 +import org.demoiselle.jee.core.util.ResourceBundle;
18 20
19 /** 21 /**
20 * 22 *
@@ -53,7 +55,8 @@ public class ResourceBundleProducer implements Serializable { @@ -53,7 +55,8 @@ public class ResourceBundleProducer implements Serializable {
53 return create(baseName); 55 return create(baseName);
54 } 56 }
55 57
56 - public static ResourceBundle create(String baseName) { 58 + @SuppressWarnings("serial")
  59 + public static ResourceBundle create(String baseName) {
57 ResourceBundle bundle; 60 ResourceBundle bundle;
58 61
59 try { 62 try {
core/src/main/java/org/demoiselle/jee/core/util/CDIUtils.java
1 -package org.demoiselle.util; 1 +package org.demoiselle.jee.core.util;
2 2
3 -import javax.enterprise.inject.spi.InjectionPoint;  
4 import java.lang.annotation.Annotation; 3 import java.lang.annotation.Annotation;
5 -import java.util.Arrays;  
6 import java.util.Collection; 4 import java.util.Collection;
7 5
  6 +import javax.enterprise.inject.spi.InjectionPoint;
  7 +
8 /** 8 /**
9 * Utility class to peform useful operations on CDI discovered beans. 9 * Utility class to peform useful operations on CDI discovered beans.
10 * 10 *
@@ -22,7 +22,6 @@ public final class CDIUtils { @@ -22,7 +22,6 @@ public final class CDIUtils {
22 * @param allAnnotations List of all annotations where to look for. 22 * @param allAnnotations List of all annotations where to look for.
23 * @return <code>true</code> if the annotation is present on the list 23 * @return <code>true</code> if the annotation is present on the list
24 */ 24 */
25 - @SuppressWarnings("WeakerAccess")  
26 public static boolean hasAnnotation(Class<? extends Annotation> annotationType, Annotation... allAnnotations) { 25 public static boolean hasAnnotation(Class<? extends Annotation> annotationType, Annotation... allAnnotations) {
27 for (Annotation currentAnnotation : allAnnotations) { 26 for (Annotation currentAnnotation : allAnnotations) {
28 if (currentAnnotation.annotationType().isAssignableFrom(annotationType)) { 27 if (currentAnnotation.annotationType().isAssignableFrom(annotationType)) {
@@ -39,7 +38,6 @@ public final class CDIUtils { @@ -39,7 +38,6 @@ public final class CDIUtils {
39 * @see #hasAnnotation(Class, Annotation...) 38 * @see #hasAnnotation(Class, Annotation...)
40 * @return <code>true</code> if the annotation is present on the list 39 * @return <code>true</code> if the annotation is present on the list
41 */ 40 */
42 - @SuppressWarnings("WeakerAccess")  
43 public static boolean hasAnnotation(Class<? extends Annotation> annotationType, 41 public static boolean hasAnnotation(Class<? extends Annotation> annotationType,
44 Collection<Annotation> allAnnotations) { 42 Collection<Annotation> allAnnotations) {
45 return hasAnnotation(annotationType, allAnnotations.toArray(annotationArrayType)); 43 return hasAnnotation(annotationType, allAnnotations.toArray(annotationArrayType));
@@ -53,7 +51,6 @@ public final class CDIUtils { @@ -53,7 +51,6 @@ public final class CDIUtils {
53 * @see #hasAnnotation(Class, Annotation...) 51 * @see #hasAnnotation(Class, Annotation...)
54 * @return <code>true</code> if the annotation is present on the list 52 * @return <code>true</code> if the annotation is present on the list
55 */ 53 */
56 - @SuppressWarnings("WeakerAccess")  
57 public static boolean hasAnnotation(Class<? extends Annotation> annotationType, Class<?> baseType) { 54 public static boolean hasAnnotation(Class<? extends Annotation> annotationType, Class<?> baseType) {
58 return hasAnnotation(annotationType, baseType.getAnnotations()); 55 return hasAnnotation(annotationType, baseType.getAnnotations());
59 } 56 }
@@ -67,7 +64,7 @@ public final class CDIUtils { @@ -67,7 +64,7 @@ public final class CDIUtils {
67 * @param <T> Type of the specific annotation returned 64 * @param <T> Type of the specific annotation returned
68 * @return The annotation instance found, or <code>null</code> if there is no such annotation present. 65 * @return The annotation instance found, or <code>null</code> if there is no such annotation present.
69 */ 66 */
70 - @SuppressWarnings({ "WeakerAccess", "unchecked" }) 67 + @SuppressWarnings("unchecked")
71 public static <T extends Annotation> T getAnnotation(Class<T> annotationType, Annotation... allAnnotations) { 68 public static <T extends Annotation> T getAnnotation(Class<T> annotationType, Annotation... allAnnotations) {
72 for (Annotation currentAnnotation : allAnnotations) { 69 for (Annotation currentAnnotation : allAnnotations) {
73 if (currentAnnotation.annotationType().isAssignableFrom(annotationType)) { 70 if (currentAnnotation.annotationType().isAssignableFrom(annotationType)) {
@@ -85,7 +82,6 @@ public final class CDIUtils { @@ -85,7 +82,6 @@ public final class CDIUtils {
85 * @see #getAnnotation(Class, Annotation...) 82 * @see #getAnnotation(Class, Annotation...)
86 * @return The annotation instance found, or <code>null</code> if there is no such annotation present. 83 * @return The annotation instance found, or <code>null</code> if there is no such annotation present.
87 */ 84 */
88 - @SuppressWarnings({ "WeakerAccess" })  
89 public static <T extends Annotation> T getAnnotation(Class<T> annotationType, 85 public static <T extends Annotation> T getAnnotation(Class<T> annotationType,
90 Collection<Annotation> allAnnotations) { 86 Collection<Annotation> allAnnotations) {
91 return getAnnotation(annotationType, allAnnotations.toArray(annotationArrayType)); 87 return getAnnotation(annotationType, allAnnotations.toArray(annotationArrayType));
@@ -99,7 +95,6 @@ public final class CDIUtils { @@ -99,7 +95,6 @@ public final class CDIUtils {
99 * @param ip Injection point of a bean type. 95 * @param ip Injection point of a bean type.
100 * @return <code>true</code> if the annotation is present on the list 96 * @return <code>true</code> if the annotation is present on the list
101 */ 97 */
102 - @SuppressWarnings("WeakerAccess")  
103 public static boolean hasQualifier(Class<? extends Annotation> qualifierAnnotationType, InjectionPoint ip) { 98 public static boolean hasQualifier(Class<? extends Annotation> qualifierAnnotationType, InjectionPoint ip) {
104 return hasAnnotation(qualifierAnnotationType, ip.getQualifiers()); 99 return hasAnnotation(qualifierAnnotationType, ip.getQualifiers());
105 } 100 }
@@ -113,7 +108,6 @@ public final class CDIUtils { @@ -113,7 +108,6 @@ public final class CDIUtils {
113 * @param <T> Type of the specific annotation returned 108 * @param <T> Type of the specific annotation returned
114 * @return The annotation instance found, or <code>null</code> if there is no such annotation present. 109 * @return The annotation instance found, or <code>null</code> if there is no such annotation present.
115 */ 110 */
116 - @SuppressWarnings("WeakerAccess")  
117 public static <T extends Annotation> T getQualifier(Class<T> qualifierAnnotationType, InjectionPoint ip) { 111 public static <T extends Annotation> T getQualifier(Class<T> qualifierAnnotationType, InjectionPoint ip) {
118 return getAnnotation(qualifierAnnotationType, ip.getQualifiers()); 112 return getAnnotation(qualifierAnnotationType, ip.getQualifiers());
119 } 113 }
core/src/main/java/org/demoiselle/jee/core/util/Exceptions.java
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 * ou escreva para a Fundação do Software Livre (FSF) Inc., 34 * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. 35 * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 */ 36 */
37 -package org.demoiselle.util; 37 +package org.demoiselle.jee.core.util;
38 38
39 /** 39 /**
40 *Class that offer tow methods that can help with manipulation of throwable exceptions. 40 *Class that offer tow methods that can help with manipulation of throwable exceptions.
core/src/main/java/org/demoiselle/jee/core/util/Reflections.java
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 * ou escreva para a Fundação do Software Livre (FSF) Inc., 34 * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. 35 * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 */ 36 */
37 -package org.demoiselle.util; 37 +package org.demoiselle.jee.core.util;
38 38
39 import java.io.InputStream; 39 import java.io.InputStream;
40 import java.lang.reflect.*; 40 import java.lang.reflect.*;
core/src/main/java/org/demoiselle/jee/core/util/Strings.java
@@ -36,8 +36,6 @@ @@ -36,8 +36,6 @@
36 */ 36 */
37 package org.demoiselle.jee.core.util; 37 package org.demoiselle.jee.core.util;
38 38
39 -import org.demoiselle.jee.core.annotation.Ignore;  
40 -  
41 import java.io.BufferedReader; 39 import java.io.BufferedReader;
42 import java.io.IOException; 40 import java.io.IOException;
43 import java.io.InputStream; 41 import java.io.InputStream;
@@ -46,7 +44,8 @@ import java.lang.reflect.Field; @@ -46,7 +44,8 @@ import java.lang.reflect.Field;
46 import java.util.Arrays; 44 import java.util.Arrays;
47 import java.util.regex.Matcher; 45 import java.util.regex.Matcher;
48 import java.util.regex.Pattern; 46 import java.util.regex.Pattern;
49 -import org.demoiselle.util.Reflections; 47 +
  48 +import org.demoiselle.jee.core.annotation.Ignore;
50 49
51 /** 50 /**
52 * Contain a set of methods that implements a set of functionalities that 51 * Contain a set of methods that implements a set of functionalities that
persistence/pom.xml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <dependencies> 13 <dependencies>
14 <dependency> 14 <dependency>
15 <groupId>${project.groupId}</groupId> 15 <groupId>${project.groupId}</groupId>
16 - <artifactId>core</artifactId> 16 + <artifactId>demoiselle-core</artifactId>
17 <version>${project.version}</version> 17 <version>${project.version}</version>
18 </dependency> 18 </dependency>
19 <dependency> 19 <dependency>
security/pom.xml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion> 3 <modelVersion>4.0.0</modelVersion>
4 <groupId>org.demoiselle.jee</groupId> 4 <groupId>org.demoiselle.jee</groupId>
5 - <artifactId>security</artifactId> 5 + <artifactId>demoiselle-security</artifactId>
6 <version>3.0.0-SNAPSHOT</version> 6 <version>3.0.0-SNAPSHOT</version>
7 <packaging>jar</packaging> 7 <packaging>jar</packaging>
8 <properties> 8 <properties>
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 14
15 <dependency> 15 <dependency>
16 <groupId>${project.groupId}</groupId> 16 <groupId>${project.groupId}</groupId>
17 - <artifactId>core</artifactId> 17 + <artifactId>demoiselle-core</artifactId>
18 <version>${project.version}</version> 18 <version>${project.version}</version>
19 </dependency> 19 </dependency>
20 20