com.neeve.toa
Class DefaultServiceDefinitionLocator
java.lang.Object
com.neeve.toa.spi.AbstractServiceDefinitionLocator
com.neeve.toa.DefaultServiceDefinitionLocator
- All Implemented Interfaces:
- ServiceDefinitionLocator
public final class DefaultServiceDefinitionLocator
- extends AbstractServiceDefinitionLocator
Implements the default lookup strategy for services definition xml.
This ServiceDefinitionLocator looks for services in the following locations:
- file://${NVROOT}/conf/services/*.xml
- file://${NVROOT}/resources/${application.name}/services/*.xml
- classpath://services/*.xml
This locator will return any .xml file found in the above locations that xml that
validates against the service definition schema x-tsml.xsd.
|
Method Summary |
void |
locateServices(Set<URL> urls)
Locates service definition xml and adds the xml to provided
set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_STRICT_SERVICE_VALIDATION
public static final String PROP_STRICT_SERVICE_VALIDATION
- This property controls whether or not strict validation is done on service definition
files located by this locator. 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.
- See Also:
- Constant Field Values
PROP_STRICT_SERVICE_VALIDATION_DEFAULT
public static final boolean PROP_STRICT_SERVICE_VALIDATION_DEFAULT
- The default value for strict service definition location validation (false).
By default files that are not services are ignored and result in a trace log warning.
- See Also:
- Constant Field Values
DefaultServiceDefinitionLocator
public DefaultServiceDefinitionLocator()
locateServices
public final void locateServices(Set<URL> urls)
throws Exception
- Description copied from interface:
ServiceDefinitionLocator
- Locates service definition xml and adds the xml to provided
set.
- Parameters:
urls - The collection into which to add the service urls.
- Throws:
Exception
Copyright © 2016 Neeve Research, LLC. All Rights Reserved.