Permalink
Browse files

Renamed enterprise package to jee

  • Loading branch information...
unknown
unknown committed Aug 21, 2010
1 parent 7245e7a commit 979fa83f3435afa23be08b1ee2ea22d11a75bee2
@@ -1,56 +1,56 @@
-/**
- *
- */
-package org.jpatterns.jee;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import org.jpatterns.core.DesignPattern;
-import org.jpatterns.core.Type;
-import org.jpatterns.gof.FacadePattern;
-import org.jpatterns.gof.AdapterPattern.Adapter;
-
-/**
- * <b>Intent [Core J2EE Patterns, pg 249]:</b> use a BusinessDelegate to reduce
- * coupling between presentation-tier clients and business services. The
- * BusinessDelegate hides the underlying implementation details of the business
- * service [...].
- * <p/>
- * <img src="http://www.jpatterns.org/uml/ee/BusinessDelegateStructure.gif"/>
- * <p/>
- *
- * @author Marco Tedone
- * @since 2010-08-21
- */
-@Retention(RetentionPolicy.RUNTIME)
-@Target( { ElementType.TYPE })
-@Documented
-@DesignPattern(type = Type.ENTERPRISE, related = { Adapter.class,
- FacadePattern.class })
-public @interface BusinessDelegatePattern {
-
- String comment() default "";
-
- @Retention(RetentionPolicy.RUNTIME)
- @Target( { ElementType.TYPE, ElementType.FIELD, ElementType.LOCAL_VARIABLE,
- ElementType.PARAMETER })
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface BusinessDelegate {
- String comment() default "";
- }
-
- @Retention(RetentionPolicy.RUNTIME)
- @Target( { ElementType.TYPE, ElementType.FIELD, ElementType.LOCAL_VARIABLE,
- ElementType.PARAMETER })
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface BusinessService {
- String comment() default "";
- }
-
-}
+/**
+ *
+ */
+package org.jpatterns.jee;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import org.jpatterns.core.DesignPattern;
+import org.jpatterns.core.Type;
+import org.jpatterns.gof.FacadePattern;
+import org.jpatterns.gof.AdapterPattern.Adapter;
+
+/**
+ * <b>Intent [Core J2EE Patterns, pg 249]:</b> use a BusinessDelegate to reduce
+ * coupling between presentation-tier clients and business services. The
+ * BusinessDelegate hides the underlying implementation details of the business
+ * service [...].
+ * <p/>
+ * <img src="http://www.jpatterns.org/uml/ee/BusinessDelegateStructure.gif"/>
+ * <p/>
+ *
+ * @author Marco Tedone
+ * @since 2010-08-21
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.TYPE })
+@Documented
+@DesignPattern(type = Type.ENTERPRISE, related = { Adapter.class,
+ FacadePattern.class })
+public @interface BusinessDelegatePattern {
+
+ String comment() default "";
+
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target( { ElementType.TYPE, ElementType.FIELD, ElementType.LOCAL_VARIABLE,
+ ElementType.PARAMETER })
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface BusinessDelegate {
+ String comment() default "";
+ }
+
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target( { ElementType.TYPE, ElementType.FIELD, ElementType.LOCAL_VARIABLE,
+ ElementType.PARAMETER })
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface BusinessService {
+ String comment() default "";
+ }
+
+}
@@ -1,78 +1,78 @@
-/**
- *
- */
-package org.jpatterns.jee;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import org.jpatterns.core.DesignPattern;
-import org.jpatterns.core.Type;
-
-/**
- * <b>Intent [Core J2EE Patterns, pg 391]:</b> Abstract and encapsulate all
- * access to the data source. The DAO manages the connection with the data
- * source to obtain and store data
- * <p/>
- * <img src="http://www.jpatterns.org/uml/ee/DaoStructure.gif"/>
- * <p/>
- *
- * @author Marco Tedone
- * @since 2010-08-19
- */
-@Retention(value = RetentionPolicy.RUNTIME)
-@Target(value = ElementType.TYPE)
-@Documented
-@DesignPattern(type = Type.ENTERPRISE)
-public @interface DaoPattern {
-
- String comment() default "";
-
- @Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = { ElementType.TYPE, ElementType.FIELD,
- ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface BusinessObject {
- String comment() default "";
- }
-
- @Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = { ElementType.TYPE, ElementType.FIELD,
- ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface Dao {
- String comment() default "";
- }
-
- @Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = { ElementType.TYPE, ElementType.FIELD,
- ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface DataSource {
- String comment() default "";
-
- // Giving users the possibility to specify which datasource they are using
- // might be useful for maintainance. The information is optional anyway
- DataSourceType dataSourceType() default DataSourceType.NOT_DOCUMENTED;
- }
-
- @Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = { ElementType.TYPE, ElementType.FIELD,
- ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface ValueObject {
- String comment() default "";
- }
-
- public enum DataSourceType {
- HIBERNATE, SPRING, ORACLE, DB2, MYSQL, SQLSERVER, SYBASE, BERKELEY, NOT_DOCUMENTED
- }
-
-}
+/**
+ *
+ */
+package org.jpatterns.jee;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import org.jpatterns.core.DesignPattern;
+import org.jpatterns.core.Type;
+
+/**
+ * <b>Intent [Core J2EE Patterns, pg 391]:</b> Abstract and encapsulate all
+ * access to the data source. The DAO manages the connection with the data
+ * source to obtain and store data
+ * <p/>
+ * <img src="http://www.jpatterns.org/uml/ee/DaoStructure.gif"/>
+ * <p/>
+ *
+ * @author Marco Tedone
+ * @since 2010-08-19
+ */
+@Retention(value = RetentionPolicy.RUNTIME)
+@Target(value = ElementType.TYPE)
+@Documented
+@DesignPattern(type = Type.ENTERPRISE)
+public @interface DaoPattern {
+
+ String comment() default "";
+
+ @Retention(value = RetentionPolicy.RUNTIME)
+ @Target(value = { ElementType.TYPE, ElementType.FIELD,
+ ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface BusinessObject {
+ String comment() default "";
+ }
+
+ @Retention(value = RetentionPolicy.RUNTIME)
+ @Target(value = { ElementType.TYPE, ElementType.FIELD,
+ ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface Dao {
+ String comment() default "";
+ }
+
+ @Retention(value = RetentionPolicy.RUNTIME)
+ @Target(value = { ElementType.TYPE, ElementType.FIELD,
+ ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface DataSource {
+ String comment() default "";
+
+ // Giving users the possibility to specify which datasource they are using
+ // might be useful for maintainance. The information is optional anyway
+ DataSourceType dataSourceType() default DataSourceType.NOT_DOCUMENTED;
+ }
+
+ @Retention(value = RetentionPolicy.RUNTIME)
+ @Target(value = { ElementType.TYPE, ElementType.FIELD,
+ ElementType.LOCAL_VARIABLE, ElementType.PARAMETER })
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface ValueObject {
+ String comment() default "";
+ }
+
+ public enum DataSourceType {
+ HIBERNATE, SPRING, ORACLE, DB2, MYSQL, SQLSERVER, SYBASE, BERKELEY, NOT_DOCUMENTED
+ }
+
+}
@@ -1,62 +1,62 @@
-package org.jpatterns.jee;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import org.jpatterns.core.DesignPattern;
-import org.jpatterns.core.Type;
-
-/**
- * <b> Intent: The Model View Controller (MVC) pattern divides an application in
- * three components: The View, the Controller and the Model.</b>
- * <ul>
- * <li><b>The View</b> presents data to clients</li>
- * <li><b>The Controller</b> handles client's requests, uses the Model to get
- * things done and dispatches to the appropriate view a response to the request
- * (this response might contain objects from the Model)</li>
- * <li><b>The Model</b> wraps the logic and the domain model of the application,
- * offering both services and objects to the view</li>.
- * </ul>
- * <p/>
- * <img src="http://www.jpatterns.org/uml/ee/MVCStructure.gif"/>
- * <p/>
- *
- * @author Marco Tedone
- * @since 2010-08-21
- */
-@Retention(RetentionPolicy.RUNTIME)
-@Target( { ElementType.TYPE })
-@Documented
-@DesignPattern(type = Type.ENTERPRISE, related = { BusinessDelegatePattern.class })
-public @interface ModelViewController {
-
- String comment() default "";
-
- @Retention(RetentionPolicy.RUNTIME)
- @Target(ElementType.TYPE)
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface View {
- String comment() default "";
- }
-
- @Retention(RetentionPolicy.RUNTIME)
- @Target(ElementType.TYPE)
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface Controller {
- String comment() default "";
- }
-
- @Retention(RetentionPolicy.RUNTIME)
- @Target(ElementType.TYPE)
- @Documented
- @DesignPattern(type = Type.ENTERPRISE)
- public @interface Model {
- String comment() default "";
- }
-
-}
+package org.jpatterns.jee;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import org.jpatterns.core.DesignPattern;
+import org.jpatterns.core.Type;
+
+/**
+ * <b> Intent: The Model View Controller (MVC) pattern divides an application in
+ * three components: The View, the Controller and the Model.</b>
+ * <ul>
+ * <li><b>The View</b> presents data to clients</li>
+ * <li><b>The Controller</b> handles client's requests, uses the Model to get
+ * things done and dispatches to the appropriate view a response to the request
+ * (this response might contain objects from the Model)</li>
+ * <li><b>The Model</b> wraps the logic and the domain model of the application,
+ * offering both services and objects to the view</li>.
+ * </ul>
+ * <p/>
+ * <img src="http://www.jpatterns.org/uml/ee/MVCStructure.gif"/>
+ * <p/>
+ *
+ * @author Marco Tedone
+ * @since 2010-08-21
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.TYPE })
+@Documented
+@DesignPattern(type = Type.ENTERPRISE, related = { BusinessDelegatePattern.class })
+public @interface ModelViewController {
+
+ String comment() default "";
+
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target(ElementType.TYPE)
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface View {
+ String comment() default "";
+ }
+
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target(ElementType.TYPE)
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface Controller {
+ String comment() default "";
+ }
+
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target(ElementType.TYPE)
+ @Documented
+ @DesignPattern(type = Type.ENTERPRISE)
+ public @interface Model {
+ String comment() default "";
+ }
+
+}
Oops, something went wrong.

0 comments on commit 979fa83

Please sign in to comment.