public class DeploymentScanner extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DeploymentScanner.TransitiveInterfacesScanner |
static class |
DeploymentScanner.WarUrlType
Vfs.UrlType for WAR files. |
| Modifier and Type | Method and Description |
|---|---|
static DeploymentScanner |
getContextInstance(Context context)
Gets an instance of the scanner based on the information already stored in the provided
Context. |
static DeploymentScanner |
getDefaultInstance()
Gets the static default instance of the scanner.
|
static DeploymentScanner |
getInstance(String... packages)
Gets an instance of the scanner that is limited to the given packages.
|
static <T> List<T> |
instantiate(Set<Class<T>> classes)
Creates instances of the given classes using default constructor.
|
Set<Class<? extends MicroserviceProvider>> |
lookupMicroserviceProviders()
Searches for all available Microservice providers.
|
Set<String> |
lookupResources(String pattern)
Searches for all resources matching the given pattern.
|
Set |
lookupSubtypes(Class clazz)
Searches for all subtypes of the given class.
|
public static DeploymentScanner getDefaultInstance()
public static DeploymentScanner getInstance(String... packages)
packages - Packages to limit scanning to.public static DeploymentScanner getContextInstance(Context context)
Context.context - A Context carrying the information needed to create the scanner.public Set<Class<? extends MicroserviceProvider>> lookupMicroserviceProviders()
public Set lookupSubtypes(Class clazz)
clazz - A class to search subtypes of.public Set<String> lookupResources(String pattern)
pattern - The pattern to match.public static <T> List<T> instantiate(Set<Class<T>> classes) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
T - Common type of the classes.classes - Classes to create instances of.NoSuchMethodException - When there was no default constructor.IllegalAccessException - When the default constructor is not visible.InvocationTargetException - When it was not possible to invoke the constructor.InstantiationException - When it was not possible to create an instance.Copyright © 2015–2016 px3. All rights reserved.