Modified:
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/DependencyShot.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/event/AutoEvent.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/event/EventImpl.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binder.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binding.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorImpl.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/CircularConstructorHandler.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/ConstructorHandler.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/FieldsHandler.java
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/spi/DSServiceLoader.java
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/DependencyShot.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/DependencyShot.java
Thu Mar 17 12:21:53 2011
@@ -140,7 +140,7 @@
}
ExceptionManager.makeException("Can't find a specific
configuration handler for : "
+ confHandler.getSimpleName()).throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
/**
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/event/AutoEvent.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/event/AutoEvent.java
Thu Mar 17 12:21:53 2011
@@ -54,7 +54,7 @@
ExceptionManager
.makeException("You should inject the event in order
to call fire on it.")
.throwManaged();
- throw new RuntimeException();
+ throw new RuntimeException(); // should never happen
}
manager.fireEvent(this);
}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/event/EventImpl.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/event/EventImpl.java
Thu Mar 17 12:21:53 2011
@@ -38,7 +38,7 @@
ExceptionManager
.makeException("You should inject the event in order
to call fire on it.")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
manager.fireEvent(event);
}
@@ -49,7 +49,7 @@
ExceptionManager
.makeException("You should inject the event in order
to call fire on it.")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
manager.fireAsyncEvent(event);
}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binder.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binder.java
Thu Mar 17 12:21:53 2011
@@ -113,7 +113,7 @@
ExceptionManager
.makeException(IllegalArgumentException.class, binding
+ " overwrites " + old)
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binding.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binding.java
Thu Mar 17 12:21:53 2011
@@ -134,7 +134,7 @@
ExceptionManager
.makeException(DSIllegalStateException.class, "A
binding must contains a 'from' class.")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
if (params.containsKey(DslConstants.TO)) {
this.to = (Class<? extends T>) params.get(DslConstants.TO);
@@ -266,7 +266,7 @@
"The scope " +
scopedInstanceStore.getClass().getSimpleName()
+ " is invalid. Can't perform injection.")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
} else {
result = (T) injector.createInstance(to);
@@ -288,7 +288,7 @@
+ to
+ ". Can't inject object with null value. For
that use @Nullable annotation.")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}
if (!nullable) {
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorImpl.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorImpl.java
Thu Mar 17 12:21:53 2011
@@ -160,7 +160,7 @@
ExceptionManager
.makeException("No bindings loaded")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}
}
@@ -329,7 +329,7 @@
.makeException(IllegalStateException.class,
"No binding for " + c + " and " + annotation)
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
//throw new IllegalStateException("No binding for " + c + " and "
+ annotation);
}
@@ -427,7 +427,7 @@
ExceptionManager
.makeException("Can't proxy circular
dependencies without interface.")
.throwManaged();
- throw new RuntimeException(); // should never
append
+ throw new RuntimeException(); // should never
happen
}
try {
Object result = (T) instanciatedClasses.get(c);
@@ -452,7 +452,7 @@
.makeException(DSCyclicDependencyDetectedException.class,
"Circular dependency detected on " +
c.getName())
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}
}
@@ -511,7 +511,7 @@
ExceptionManager
.makeException("Could not inject static members for "
+ c, e)
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
eventManager.fireAsyncEvent(stop);
}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/CircularConstructorHandler.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/CircularConstructorHandler.java
Thu Mar 17 12:21:53 2011
@@ -93,6 +93,6 @@
ExceptionManager
.makeException("Could not find @Inject constructor for " +
c)
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/ConstructorHandler.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/ConstructorHandler.java
Thu Mar 17 12:21:53 2011
@@ -94,6 +94,6 @@
ExceptionManager
.makeException("Could not find @Inject constructor for " +
c)
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/FieldsHandler.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/handlers/FieldsHandler.java
Thu Mar 17 12:21:53 2011
@@ -66,7 +66,7 @@
ExceptionManager
.makeException("Cannot inject final field")
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
Class<?> type = field.getType();
Type genericType = field.getGenericType();
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/spi/DSServiceLoader.java
Thu Mar 17 12:21:25 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/spi/DSServiceLoader.java
Thu Mar 17 12:21:53 2011
@@ -56,7 +56,7 @@
ExceptionManager
.makeException("Error while loading services : ", ex)
.throwManaged();
- throw new RuntimeException(); // should never append
+ throw new RuntimeException(); // should never happen
}
}