Added:
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/scope/DependentScope.java
Deleted:
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/scope/SimpleScope.java
=======================================
--- /dev/null
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/scope/DependentScope.java
Thu Apr 7 09:11:00 2011
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2010 mathieuancelin.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * under the License.
+ */
+
+package cx.ath.mancel01.dependencyshot.scope;
+
+import cx.ath.mancel01.dependencyshot.api.InjectionPoint;
+import cx.ath.mancel01.dependencyshot.injection.InjectorImpl;
+import cx.ath.mancel01.dependencyshot.spi.CustomScopeHandler;
+import java.lang.annotation.Annotation;
+
+/**
+ *
+ * @author Mathieu ANCELIN
+ */
+public class DependentScope extends CustomScopeHandler {
+
+ @Override
+ public Class<? extends Annotation> getScope() {
+ return Dependent.class;
+ }
+
+ @Override
+ public <T> T getScopedInstance(Class<T> interf, Class<? extends T>
clazz,
+ InjectionPoint p, InjectorImpl injector) {
+ return injector.createInstance(clazz);
+ }
+
+ @Override
+ public void reset() {
+
+ }
+
+ @Override
+ public boolean isDynamic() {
+ return false;
+ }
+
+ @Override
+ public boolean isBeanValid(Class from, Class to) {
+ return true;
+ }
+
+}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/scope/SimpleScope.java
Tue Feb 22 13:21:54 2011
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2010 mathieuancelin.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * under the License.
- */
-
-package cx.ath.mancel01.dependencyshot.scope;
-
-import cx.ath.mancel01.dependencyshot.api.InjectionPoint;
-import cx.ath.mancel01.dependencyshot.injection.InjectorImpl;
-import cx.ath.mancel01.dependencyshot.spi.CustomScopeHandler;
-import java.lang.annotation.Annotation;
-
-/**
- *
- * @author Mathieu ANCELIN
- */
-public class SimpleScope extends CustomScopeHandler {
-
- @Override
- public Class<? extends Annotation> getScope() {
- return Dependent.class;
- }
-
- @Override
- public <T> T getScopedInstance(Class<T> interf, Class<? extends T>
clazz,
- InjectionPoint p, InjectorImpl injector) {
- return injector.createInstance(clazz);
- }
-
- @Override
- public void reset() {
-
- }
-
- @Override
- public boolean isDynamic() {
- return false;
- }
-
- @Override
- public boolean isBeanValid(Class from, Class to) {
- return true;
- }
-
-}