{
// ejb/123j
for (Class<?> parentClass = type.getJavaClass().getSuperclass();
parentClass != null;
parentClass = parentClass.getSuperclass()) {
DataSourceDefinitions dbs
= parentClass.getAnnotation(DataSourceDefinitions.class);
if (dbs != null) {
for (DataSourceDefinition db : dbs.value()) {
introspectClass(getClass().getName(), db);
}
}
DataSourceDefinition db
= parentClass.getAnnotation(DataSourceDefinition.class);
if (db != null)
introspectClass(getClass().getName(), db);
}
DataSourceDefinitions dbs = type.getAnnotation(DataSourceDefinitions.class);
if (dbs != null) {
for (DataSourceDefinition db : dbs.value()) {
introspectClass(getClass().getName(), db);
}
}
DataSourceDefinition db = type.getAnnotation(DataSourceDefinition.class);