Ah, I had tried void and voic.class. Did not know about Void.class. Good to
know. I will change that
On Monday, October 04, 2010 09:59:14 am Emmanuel Bernard wrote:
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(a)hibernate.org>
http://hibernate.org