public class ServiceLoaderAnalyzer
extends java.lang.Object
This analyzer requires that the resources of the workset have been resolved!
Constructor and Description |
---|
ServiceLoaderAnalyzer(org.pfsw.tools.cda.base.model.Workset workset) |
Modifier and Type | Method and Description |
---|---|
protected void |
attachServiceProviders(DependencyClassNode classNode,
java.util.List<org.pfsw.tools.cda.base.model.ResourceInformation> serviceResources) |
java.util.List<org.pfsw.tools.cda.base.model.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<org.pfsw.tools.cda.base.model.ClassInformation> |
findCorrespondingInterfaces(java.util.List<org.pfsw.tools.cda.base.model.ResourceInformation> serviceResources) |
java.util.List<org.pfsw.tools.cda.base.model.ClassInformation> |
findDeclaredServiceInterfaces(org.pfsw.tools.cda.base.model.filter.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<org.pfsw.tools.cda.base.model.ResourceInformation> |
findServiceDeclarationResources(org.pfsw.tools.cda.base.model.filter.ResourceInformationFilter resInfoFilter) |
java.util.List<DependencyClassNode> |
findServiceProviders(org.pfsw.tools.cda.base.model.filter.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 org.pfsw.tools.cda.base.model.Workset |
getWorkset() |
protected java.util.List<java.lang.String> |
readServiceImplementorNames(org.pfsw.tools.cda.base.model.ResourceInformation resourceInfo) |
public ServiceLoaderAnalyzer(org.pfsw.tools.cda.base.model.Workset workset)
public java.util.List<org.pfsw.tools.cda.base.model.ClassInformation> findAllDeclaredServiceInterfaces()
ClassInformation
objects.public java.util.List<org.pfsw.tools.cda.base.model.ClassInformation> findDeclaredServiceInterfaces(org.pfsw.tools.cda.base.model.filter.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(org.pfsw.tools.cda.base.model.filter.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<org.pfsw.tools.cda.base.model.ResourceInformation> serviceResources)
protected java.util.List<java.lang.String> readServiceImplementorNames(org.pfsw.tools.cda.base.model.ResourceInformation resourceInfo)
protected java.util.List<org.pfsw.tools.cda.base.model.ResourceInformation> findServiceDeclarationResources(org.pfsw.tools.cda.base.model.filter.ResourceInformationFilter resInfoFilter)
protected java.util.List<org.pfsw.tools.cda.base.model.ClassInformation> findCorrespondingInterfaces(java.util.List<org.pfsw.tools.cda.base.model.ResourceInformation> serviceResources)
protected org.pfsw.tools.cda.base.model.Workset getWorkset()