[hibernate-dev] AS7 use of the "hibernate.ejb.resource_scanner" property to override the default org.hibernate.ejb.packaging.Scanner...
Emmanuel Bernard
emmanuel at hibernate.org
Mon Mar 28 09:06:13 EDT 2011
On 28 mars 2011, at 14:32, Scott Marlow wrote:
> In the Scanner implementation, I had to resort to loading classes to
> satisfy the current Scanner implementation. Perhaps in the next revison
> to the Scanner interface, we might add a method that doesn't return a
> Set of Class's but instead just returns the names:
>
> public Set<String<?>> getClassByNamesInJar(URL jartoScan, Set<Class<?
> extends Annotation>> annotationsToLookFor)
>
> Maybe we could do the same for getPackagesInJar (return a set of package
> names instead of Packages).
HEM needs the classes, not the string names at this stage.
More information about the hibernate-dev
mailing list