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 StringTAG_ALLOW_DEPRECATED_REFERENCESThe xml tag for indicating if deprecated methods/properties s/b allowed.static StringTAG_ALLOW_ENTITY_QUERIESThe xml tag for indicating if Gosu query expressions can reference entities.static StringTAG_CLASSstatic StringTAG_ENTRYstatic StringTAG_SRC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddLocationListener(ChangeListener l)List<TypeLoaderSpec>getAdditionalTypeLoaders()List<String>getClasspathEntries()StringgetCommonServiceInit()static voidinitDefaults()/** Initialize with defaults.static Registryinstance()Get the singleton instance.booleanisAllowDeprecatedReferences()booleanisAllowEntityQueires()static voidremoveLocationListener(ChangeListener l)voidsetAllowDeprecatedReferences(boolean bAllowDeprecatedReferences)voidsetAllowEntityQueires(boolean bAllowEntityQueires)voidsetCommonServiceInit(String commonServiceInit)static voidsetLocation(String kernelInitClass)static voidsetLocation(URL registryURL)Sets the location of the registry file.static voidsetLocation(URL registryURL, String strCommonServicesInitDefault)voidupdateClasspath(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)
-
-