Class ReflectionResourceDiscoveryService
- java.lang.Object
-
- org.soulwing.prospecto.jaxrs.runtime.discovery.ReflectionResourceDiscoveryService
-
- All Implemented Interfaces:
ResourceDiscoveryService
public class ReflectionResourceDiscoveryService extends Object implements ResourceDiscoveryService
A concreteResourceDiscoveryService.- Author:
- Carl Harris
-
-
Constructor Summary
Constructors Constructor Description ReflectionResourceDiscoveryService()Constructs a new instance that will use the default type introspector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ResourceDescriptor>discoverResources(String applicationPath, ReflectionService reflectionService)Discovers JAX-RS resources, adding appropriate descriptors to the given configurable resolver.
-
-
-
Method Detail
-
discoverResources
public Collection<ResourceDescriptor> discoverResources(String applicationPath, ReflectionService reflectionService) throws ResourceConfigurationException
Description copied from interface:ResourceDiscoveryServiceDiscovers JAX-RS resources, adding appropriate descriptors to the given configurable resolver.- Specified by:
discoverResourcesin interfaceResourceDiscoveryService- Parameters:
applicationPath- the context-qualified path to the JAX-RS applicationreflectionService- reflection service to use for discovery- Returns:
- resource descriptors
- Throws:
ResourceConfigurationException- if a configuration error is discovered
-
-