[hibernate-dev] Discussion of services
Emmanuel Bernard
emmanuel at hibernate.org
Mon Oct 4 10:59:14 EDT 2010
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 <steve at hibernate.org>
> http://hibernate.org
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev
mailing list