wt.services.applicationcontext.implementation
Class ServiceProperties
java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
wt.services.applicationcontext.implementation.ServiceProperties
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- public class ServiceProperties
- extends Properties
Service configuration properties.
These properties are loaded from files identified by the properties
wt.services.applicationcontext.<ApplicationContextServiceProvider>.defaultPropertyFiles
and wt.services.applicationcontext.<ApplicationContextServiceProvider>.customPropertyFiles
found in the standard Windchill properties file. <ApplicationContextServiceProvider>
is the simple name of the concrete ApplicationContextServiceProvider class that
is using ServiceProperties.
defaultPropertyFiles should not be changed by customizers. Instead use the
customPropertyFiles to specify any new or overriding properties in a seperate file(s).
Files are specified in a comma seperated list (no spaces) and loaded in the order
in which they are specified. If two or more properties have the same key the last
one to be loaded will "override" the previous ones.
To see if any properties have been overriden run the main rountine of this class.
- See Also:
WTProperties
,
WTServiceProviderFromProperties
,
Serialized Form
Nested classes inherited from class java.util.Hashtable |
|
Fields inherited from class java.util.Hashtable |
|
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values |
VERBOSE
private static boolean VERBOSE
DEFAULT_FILE
public static final String DEFAULT_FILE
- See Also:
- Constant Field Values
ServiceProperties
public ServiceProperties()
getServiceProperties
public static ServiceProperties getServiceProperties(String svc_provider)
throws WTException
- Get service properties entries from multiple files for a given ApplicationContextServiceProvider
- Throws:
WTException
put
public Object put(Object key,
Object value)
- Override Hashtable.put in order to detect when a duplicate property
is about to override an existing one. A warning message is logged
to System.out if the property wt.services.applicationcontext.verbose=true.
main
public static void main(String[] args)