Not commenting on the idea of an Hibernate specific registry, here are a few comments on the design:
Map should be Map<String, Object> or whatever types will end up being used. public Class serviceRole() default InjectService.class; should probably be public Class<?> serviceRole() default Void.class; Void.class is kind of a defacto default in the annotation land for Class<?> @InjectService Why not JSR-303's @Inject with a qualifier if you really need some additional metadata? On 3 oct. 2010, at 00:39, Steve Ebersole wrote: > https://sourceforge.net/apps/mediawiki/hibernate/index.php?title=Category:Services > > -- > Steve Ebersole <st...@hibernate.org> > http://hibernate.org > _______________________________________________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev