net.sf.jasperreports.extensions
public final class ExtensionsEnvironment extends java.lang.Object
ExtensionsRegistry
instances.getExtensionsRegistry()
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Object |
NULL_CACHE_KEY |
static java.lang.String |
PROPERTY_EXTENSIONS_REGISTRY_CLASS
A property that provides the default
ExtensionsRegistry
implementation class. |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getExtensionsCacheKey()
Returns an object that can be used as cache key for extension-related
caches.
|
static ExtensionsRegistry |
getExtensionsRegistry()
Returns the extensions registry to be used in the current context.
|
static ExtensionsRegistry |
getSystemExtensionsRegistry()
Returns the system default extensions registry object.
|
static ExtensionsRegistry |
getThreadExtensionsRegistry()
Returns the thread extensions registry, if any.
|
static void |
resetThreadExtensionsRegistry()
Resets (to null) the thread extensions registry.
|
static void |
setSystemExtensionsRegistry(ExtensionsRegistry extensionsRegistry)
Sets the system default extensions registry.
|
static void |
setThreadExtensionsRegistry(ExtensionsRegistry extensionsRegistry)
Sets the thread extensions registry.
|
protected static final java.lang.Object NULL_CACHE_KEY
public static final java.lang.String PROPERTY_EXTENSIONS_REGISTRY_CLASS
ExtensionsRegistry
implementation class.
This property is only read at initialization time, therefore changing the property value at a later time will have no effect.
public static ExtensionsRegistry getSystemExtensionsRegistry()
This is either the one instantiated based on PROPERTY_EXTENSIONS_REGISTRY_CLASS
,
or the one set by setSystemExtensionsRegistry(ExtensionsRegistry)
.
public static void setSystemExtensionsRegistry(ExtensionsRegistry extensionsRegistry)
extensionsRegistry
- the extensions registrypublic static ExtensionsRegistry getThreadExtensionsRegistry()
public static void setThreadExtensionsRegistry(ExtensionsRegistry extensionsRegistry)
extensionsRegistry
- getExtensionsRegistry()
public static void resetThreadExtensionsRegistry()
public static ExtensionsRegistry getExtensionsRegistry()
The method returns the thread extensions registry (as returned by
getThreadExtensionsRegistry()
) if it exists, and the system
registry (as returned by getSystemExtensionsRegistry()
) otherwise.
public static java.lang.Object getExtensionsCacheKey()
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com