public class ServiceLoaderAnalyzer
extends java.lang.Object
This analyzer requires that the resources of the workset have been resolved!
Constructor and Description |
---|
ServiceLoaderAnalyzer(Workset workset) |
Modifier and Type | Method and Description |
---|---|
protected void |
attachServiceProviders(DependencyClassNode classNode,
java.util.List<ResourceInformation> serviceResources) |
java.util.List<ClassInformation> |
findAllDeclaredServiceInterfaces()
Looks for all service declarations under "META-INF/services" in the
whole workset and returns the corresponding
ClassInformation objects. |
java.util.List<DependencyClassNode> |
findAllServiceProviders()
Looks for all service declarations under "META-INF/services" in the
whole workset and returns the corresponding
ClassInformation objects
in form of a DependencyClassNode , each containing the declared
implementation class nodes as dependants. |
protected java.util.List<ClassInformation> |
findCorrespondingInterfaces(java.util.List<ResourceInformation> serviceResources) |
java.util.List<ClassInformation> |
findDeclaredServiceInterfaces(ResourceInformationFilter resInfoFilter)
Looks for all service declarations under "META-INF/services" in the
whole workset that match the given resInfoFilter and returns the
corresponding
ClassInformation objects. |
protected java.util.List<ResourceInformation> |
findServiceDeclarationResources(ResourceInformationFilter resInfoFilter) |
java.util.List<DependencyClassNode> |
findServiceProviders(ResourceInformationFilter resInfoFilter)
Looks for all service declaration files under "META-INF/services" in the
whole workset that match the given resInfoFilter and returns the
corresponding
DependencyClassNode objects,
each containing the declared implementation class nodes as dependants. |
protected Workset |
getWorkset() |
protected java.util.List<java.lang.String> |
readServiceImplementorNames(ResourceInformation resourceInfo) |
public ServiceLoaderAnalyzer(Workset workset)
public java.util.List<ClassInformation> findAllDeclaredServiceInterfaces()
ClassInformation
objects.public java.util.List<ClassInformation> findDeclaredServiceInterfaces(ResourceInformationFilter resInfoFilter)
ClassInformation
objects.resInfoFilter
- A filter that defines which service declaration files must be taken into account (must not be null).public java.util.List<DependencyClassNode> findAllServiceProviders()
ClassInformation
objects
in form of a DependencyClassNode
, each containing the declared
implementation class nodes as dependants.public java.util.List<DependencyClassNode> findServiceProviders(ResourceInformationFilter resInfoFilter)
DependencyClassNode
objects,
each containing the declared implementation class nodes as dependants.resInfoFilter
- A filter that defines which service declaration files must be taken into account (must not be null).protected void attachServiceProviders(DependencyClassNode classNode, java.util.List<ResourceInformation> serviceResources)
protected java.util.List<java.lang.String> readServiceImplementorNames(ResourceInformation resourceInfo)
protected java.util.List<ResourceInformation> findServiceDeclarationResources(ResourceInformationFilter resInfoFilter)
protected java.util.List<ClassInformation> findCorrespondingInterfaces(java.util.List<ResourceInformation> serviceResources)
protected Workset getWorkset()