wt.services.applicationcontext.implementation
Class ServiceProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bywt.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 Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
static String DEFAULT_FILE
           
private static boolean VERBOSE
           
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
ServiceProperties()
           
 
Method Summary
static ServiceProperties getServiceProperties(String svc_provider)
          Get service properties entries from multiple files for a given ApplicationContextServiceProvider
static void main(String[] args)
           
 Object put(Object key, Object value)
          Override Hashtable.put in order to detect when a duplicate property is about to override an existing one.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE

DEFAULT_FILE

public static final String DEFAULT_FILE
See Also:
Constant Field Values
Constructor Detail

ServiceProperties

public ServiceProperties()
Method Detail

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)