onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject svn commit: r1454752 - in /incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core: DefaultStageableFactory.java LifeCycleStageModule.java StageableFactory.java
Date Sat, 09 Mar 2013 18:17:32 GMT
Author: randgalt
Date: Sat Mar  9 18:17:32 2013
New Revision: 1454752

URL: http://svn.apache.org/r1454752
Log:
Got rid of StageableFactory

Removed:
    incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/DefaultStageableFactory.java
    incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/StageableFactory.java
Modified:
    incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/LifeCycleStageModule.java

Modified: incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/LifeCycleStageModule.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/LifeCycleStageModule.java?rev=1454752&r1=1454751&r2=1454752&view=diff
==============================================================================
--- incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/LifeCycleStageModule.java
(original)
+++ incubator/onami/trunk/lifecycle/core/main/java/org/apache/onami/lifecycle/core/LifeCycleStageModule.java
Sat Mar  9 18:17:32 2013
@@ -42,8 +42,6 @@ public final class LifeCycleStageModule<
 
     private final Stager<A> stager;
 
-    private final StageableFactory stageableFactory;
-
     /**
      * Creates a new module which register methods annotated with input annotation on methods
in any type.
      *
@@ -65,7 +63,6 @@ public final class LifeCycleStageModule<
     {
         super( stager.getStage(), typeMatcher );
         this.stager = stager;
-        stageableFactory = new DefaultStageableFactory();
     }
 
     /**
@@ -77,7 +74,6 @@ public final class LifeCycleStageModule<
     {
         super( builder.stager.getStage(), builder.typeMatcher );
         this.stager = builder.stager;
-        this.stageableFactory = builder.stageableFactory;
     }
 
     /**
@@ -137,9 +133,7 @@ public final class LifeCycleStageModule<
 
                     public void afterInjection( I injectee )
                     {
-                        Stageable stageable =
-                            stageableFactory.newStageable( injectee, stageMethod, parentType,
encounter,
-                                                           annotationType );
+                        Stageable stageable = new StageableMethod( stageMethod, injectee
);
                         stager.register( stageable );
                     }
 
@@ -159,8 +153,6 @@ public final class LifeCycleStageModule<
 
         private Stager<A> stager;
 
-        private StageableFactory stageableFactory = new DefaultStageableFactory();
-
         Builder( Class<A> annotationClass )
         {
             stager = new DefaultStager<A>( annotationClass, DefaultStager.Order.FIRST_IN_FIRST_OUT
);
@@ -209,18 +201,6 @@ public final class LifeCycleStageModule<
             return this;
         }
 
-        /**
-         * Sets the StageableFactory
-         *
-         * @param stageableFactory the StageableFactory
-         * @return self
-         */
-        public Builder<A> withStageableMethodFactory( StageableFactory stageableFactory
)
-        {
-            this.stageableFactory = checkNotNull( stageableFactory, "Argument 'stageableFactory'
must be not null." );
-            return this;
-        }
-
     }
 
 }



Mime
View raw message