[dependency-shot] r395 committed - Refactoring methods name

0 views
Skip to first unread message

depende...@googlecode.com

unread,
Mar 20, 2011, 12:53:17 PM3/20/11
to depende...@googlegroups.com
Revision: 395
Author: mathieu.ancelin
Date: Sun Mar 20 09:48:53 2011
Log: Refactoring methods name
http://code.google.com/p/dependency-shot/source/detail?r=395

Modified:

/trunk/dependency-shot-api/src/main/java/cx/ath/mancel01/dependencyshot/api/DSInjector.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/injection/InjectorImpl.java

/trunk/dependency-shot-utils/src/main/java/cx/ath/mancel01/dependencyshot/utils/PropertiesProvider.java

/trunk/dependency-shot-utils/src/main/java/cx/ath/mancel01/dependencyshot/utils/WebPropertiesProvider.java

/trunk/dependency-shot-web/src/main/java/cx/ath/mancel01/dependecyshot/web/providers/WebPropertiesProvider.java

=======================================
---
/trunk/dependency-shot-api/src/main/java/cx/ath/mancel01/dependencyshot/api/DSInjector.java
Sun Mar 20 09:48:06 2011
+++
/trunk/dependency-shot-api/src/main/java/cx/ath/mancel01/dependencyshot/api/DSInjector.java
Sun Mar 20 09:48:53 2011
@@ -70,14 +70,14 @@
/**
* @return the actual stage of the injector.
*/
- Stage getStage();
+ Stage stage();

/**
* @return if circular dependencies are allowed by the injector
*/
- boolean areCircularDependenciesAllowed();
-
- boolean isLazyStaticInjectionAllowed();
+ boolean circularDependenciesAllowed();
+
+ boolean lazyStaticInjectionAllowed();

void fire(Object event);

=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binder.java
Thu Mar 17 12:21:53 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/graph/Binder.java
Sun Mar 20 09:48:53 2011
@@ -124,8 +124,8 @@
addBindingToBinder(
new Binding(this.annotation, this.named,
this.from, this.to, this.provider, this.stage));
- if (binderInjector.getStage() != null) {
- if (binderInjector.getStage().equals(this.stage)) {
+ if (binderInjector.stage() != null) {
+ if (binderInjector.stage().equals(this.stage)) {
addBindingToBinder(
new Binding(this.annotation, this.named,
this.from, this.to, this.provider, this.stage));
@@ -165,8 +165,8 @@
* @return the actual binder.
*/
public final <T> FluentBinder<T> bind(Class<T> from) {
- if (binderInjector.getStage() != null) {
- if (binderInjector.getStage().equals(this.stage)) {
+ if (binderInjector.stage() != null) {
+ if (binderInjector.stage().equals(this.stage)) {
addBindingToBinder(
new Binding<T>(this.annotation, this.named,
this.from, this.to, this.provider, this.stage));
=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorImpl.java
Sun Mar 20 09:48:06 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorImpl.java
Sun Mar 20 09:48:53 2011
@@ -618,7 +618,7 @@
* @return the stage of the injector.
*/
@Override
- public final Stage getStage() {
+ public final Stage stage() {
return stage;
}

@@ -629,7 +629,7 @@
}

@Override
- public boolean areCircularDependenciesAllowed() {
+ public boolean circularDependenciesAllowed() {
return allowCircularDependencies;
}

@@ -640,7 +640,7 @@
}

@Override
- public boolean isLazyStaticInjectionAllowed() {
+ public boolean lazyStaticInjectionAllowed() {
return allowLazyStaticInjection;
}

=======================================
---
/trunk/dependency-shot-utils/src/main/java/cx/ath/mancel01/dependencyshot/utils/PropertiesProvider.java
Thu Aug 5 05:28:49 2010
+++
/trunk/dependency-shot-utils/src/main/java/cx/ath/mancel01/dependencyshot/utils/PropertiesProvider.java
Sun Mar 20 09:48:53 2011
@@ -42,7 +42,7 @@
private PropertiesProvider() { }

public PropertiesProvider(DSInjector injector) {
- this.stage = injector.getStage();
+ this.stage = injector.stage();
}

@Override
=======================================
---
/trunk/dependency-shot-utils/src/main/java/cx/ath/mancel01/dependencyshot/utils/WebPropertiesProvider.java
Thu Aug 5 05:28:49 2010
+++
/trunk/dependency-shot-utils/src/main/java/cx/ath/mancel01/dependencyshot/utils/WebPropertiesProvider.java
Sun Mar 20 09:48:53 2011
@@ -42,7 +42,7 @@
private WebPropertiesProvider() { }

public WebPropertiesProvider(DSInjector injector) {
- this.stage = injector.getStage();
+ this.stage = injector.stage();
}

@Override
=======================================
---
/trunk/dependency-shot-web/src/main/java/cx/ath/mancel01/dependecyshot/web/providers/WebPropertiesProvider.java
Thu Jun 17 12:50:45 2010
+++
/trunk/dependency-shot-web/src/main/java/cx/ath/mancel01/dependecyshot/web/providers/WebPropertiesProvider.java
Sun Mar 20 09:48:53 2011
@@ -42,7 +42,7 @@
private WebPropertiesProvider() { }

public WebPropertiesProvider(DSInjector injector) {
- this.stage = injector.getStage();
+ this.stage = injector.stage();
}

@Override

Reply all
Reply to author
Forward
0 new messages