Last active
February 18, 2016 12:49
-
-
Save jneira/0f685a58b6e156eddd3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Si en spring tambien se cambiaron (o añadieron) la configuracion mediante convencion (que tiene sus propios problemas) | |
o con anotaciones o mezclando todo por que la genta acabo harta de xmls y demas. | |
No se como es en .net pero si yo tengo un objetos del tipo | |
*/ | |
class Bean<T> { | |
T getValue() { | |
// ... | |
} | |
} | |
class Bean2 { | |
public Bean2(Bean<Integer> bean1) { | |
print(bean1.getValue()+1) | |
} | |
} | |
/* | |
No se si usando IoC para la inyeccion me chequea en tiempo de compilacion que le esta pasando un Bean<Integer> | |
o me dara un error en ejecucion si le paso un Bean<String> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment