public final class DefaultServiceDefinitionLocator extends AbstractServiceDefinitionLocator
This ServiceDefinitionLocator looks for services in the following locations:
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_SCAN_FOR_CLASSPATH_SERVICES
This property controls whether or not the default service definition locator will scan the classpath for services.
|
static boolean |
PROP_SCAN_FOR_CLASSPATH_SERVICES_DEFAULT
The default value for strict service definition location validation (false).
|
static String |
PROP_STRICT_SERVICE_VALIDATION
This property controls whether or not strict validation is done on service definition
files located by this locator.
|
static boolean |
PROP_STRICT_SERVICE_VALIDATION_DEFAULT
The default value for strict service definition location validation (false).
|
tracer| Constructor and Description |
|---|
DefaultServiceDefinitionLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
locateServices(Set<URL> urls)
Locates valid Hornet services.
|
isServiceDefinitionFile, validateServiceDefinitionFilepublic static final String PROP_STRICT_SERVICE_VALIDATION
When validation is not strict, files found at the locations
for this locator are ignored with a warning, when set to true, an exception
will be thrown if a file is encountered that is not a valid service definition.
Property name: "nv.toa.strictservicelocatorvalidation"
Default value: false
public static final boolean PROP_STRICT_SERVICE_VALIDATION_DEFAULT
public static final String PROP_SCAN_FOR_CLASSPATH_SERVICES
This property can be used to disable classpath scanning for services.
Property name: "nv.toa.scanforclasspathservices"
Default value: true
public static final boolean PROP_SCAN_FOR_CLASSPATH_SERVICES_DEFAULT
public final void locateServices(Set<URL> urls) throws Exception
This ServiceDefinitionLocator looks for services in the following locations:
urls - The collection into which to add valid service definition urls.ExceptionCopyright © 2016 Neeve Research, LLC. All Rights Reserved.