public class Scanner extends Object
Modifier and Type | Field and Description |
---|---|
protected org.osgi.framework.Bundle |
bundle |
protected Map<String,Collection<Class<?>>> |
collectors |
protected String |
packageBase |
static String |
PATH_ANNO |
static String |
PROVIDER_ANNO |
Constructor and Description |
---|
Scanner(org.osgi.framework.Bundle bundle,
String packageBase) |
Scanner(org.osgi.framework.Bundle bundle,
String packageBase,
String... annotations) |
Modifier and Type | Method and Description |
---|---|
void |
addCollector(String annotation) |
void |
addCollector(String annotation,
Collection<Class<?>> collector) |
Set<Class<?>> |
getClasses() |
Set<Class<?>> |
getClasses(String anno) |
Collection<Class<?>> |
getCollector(String annotation) |
Map<String,Collection<Class<?>>> |
getCollectors() |
void |
scan() |
public static final String PATH_ANNO
public static final String PROVIDER_ANNO
protected org.osgi.framework.Bundle bundle
protected String packageBase
protected Map<String,Collection<Class<?>>> collectors
public void addCollector(String annotation)
public void addCollector(String annotation, Collection<Class<?>> collector)
public Collection<Class<?>> getCollector(String annotation)
public Map<String,Collection<Class<?>>> getCollectors()
public void scan() throws ReflectiveOperationException, IOException
public Set<Class<?>> getClasses()
public Set<Class<?>> getClasses(String anno)
Copyright © 2016 Nuxeo SA. All rights reserved.