jboss / jboss-nosql

3 stars 0 forks source link

javax.inject.Named matching should also check type that is injected into and only match NoSQL classes #22

Open scottmarlow opened 7 years ago

scottmarlow commented 7 years ago

For example, if the Cassandra profile name is "x": @Inject @Named("x") private Cluster cluster; // should match @Inject @Named("x") private String firstname; // should not match as not a NoSQL class

scottmarlow commented 7 years ago

for checking the type, we should use the Jandex equivalent of Class.isAssignableFrom(Class<?> cls) to see if the target type is a NoSQL class