Package gw.config
Class Registry
- java.lang.Object
-
- gw.config.Registry
-
public class Registry extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
TAG_ALLOW_DEPRECATED_REFERENCES
The xml tag for indicating if deprecated methods/properties s/b allowed.static String
TAG_ALLOW_ENTITY_QUERIES
The xml tag for indicating if Gosu query expressions can reference entities.static String
TAG_CLASS
static String
TAG_ENTRY
static String
TAG_SRC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addLocationListener(ChangeListener l)
List<TypeLoaderSpec>
getAdditionalTypeLoaders()
List<String>
getClasspathEntries()
String
getCommonServiceInit()
static void
initDefaults()
/** Initialize with defaults.static Registry
instance()
Get the singleton instance.boolean
isAllowDeprecatedReferences()
boolean
isAllowEntityQueires()
static void
removeLocationListener(ChangeListener l)
void
setAllowDeprecatedReferences(boolean bAllowDeprecatedReferences)
void
setAllowEntityQueires(boolean bAllowEntityQueires)
void
setCommonServiceInit(String commonServiceInit)
static void
setLocation(String kernelInitClass)
static void
setLocation(URL registryURL)
Sets the location of the registry file.static void
setLocation(URL registryURL, String strCommonServicesInitDefault)
void
updateClasspath(List<String> classpath)
-
-
-
Field Detail
-
TAG_ALLOW_DEPRECATED_REFERENCES
public static final String TAG_ALLOW_DEPRECATED_REFERENCES
The xml tag for indicating if deprecated methods/properties s/b allowed.- See Also:
- Constant Field Values
-
TAG_ALLOW_ENTITY_QUERIES
public static final String TAG_ALLOW_ENTITY_QUERIES
The xml tag for indicating if Gosu query expressions can reference entities.- See Also:
- Constant Field Values
-
TAG_CLASS
public static final String TAG_CLASS
- See Also:
- Constant Field Values
-
TAG_SRC
public static final String TAG_SRC
- See Also:
- Constant Field Values
-
TAG_ENTRY
public static final String TAG_ENTRY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Registry
public Registry(String kernelInitClass)
-
-
Method Detail
-
initDefaults
public static void initDefaults()
/** Initialize with defaults. Guidewire applications should NEVER call this.
-
setLocation
public static void setLocation(String kernelInitClass)
-
setLocation
public static void setLocation(URL registryURL)
Sets the location of the registry file. Initializes singleton registry.- Parameters:
registryURL
-
-
addLocationListener
public static void addLocationListener(ChangeListener l)
-
removeLocationListener
public static void removeLocationListener(ChangeListener l)
-
instance
public static Registry instance()
Get the singleton instance.- Returns:
- The one and only Registry.
-
getCommonServiceInit
public String getCommonServiceInit()
- Returns:
-
setCommonServiceInit
public void setCommonServiceInit(String commonServiceInit)
- Parameters:
commonServiceInit
-
-
getAdditionalTypeLoaders
public List<TypeLoaderSpec> getAdditionalTypeLoaders()
-
isAllowDeprecatedReferences
public boolean isAllowDeprecatedReferences()
- Returns:
-
setAllowDeprecatedReferences
public void setAllowDeprecatedReferences(boolean bAllowDeprecatedReferences)
-
isAllowEntityQueires
public boolean isAllowEntityQueires()
- Returns:
-
setAllowEntityQueires
public void setAllowEntityQueires(boolean bAllowEntityQueires)
-
-