com.neeve.toa
Class DefaultServiceDefinitionLocator

java.lang.Object
  extended by com.neeve.toa.spi.AbstractServiceDefinitionLocator
      extended by 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:

This locator will return any .xml file found in the above locations that xml that validates against the service definition schema x-tsml.xsd.


Field Summary
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).
 
Fields inherited from class com.neeve.toa.spi.AbstractServiceDefinitionLocator
tracer
 
Constructor Summary
DefaultServiceDefinitionLocator()
           
 
Method Summary
 void locateServices(Set<URL> urls)
          Locates service definition xml and adds the xml to provided set.
 
Methods inherited from class com.neeve.toa.spi.AbstractServiceDefinitionLocator
isServiceDefinitionFile, validateServiceDefinitionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Property name: "nv.toa.strictservicelocatorvalidation"
Default value: false

See Also:
PROP_STRICT_SERVICE_VALIDATION_DEFAULT, 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
Constructor Detail

DefaultServiceDefinitionLocator

public DefaultServiceDefinitionLocator()
Method Detail

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.