public final class ComponentsEnvironment extends Object
component bundles.
Component bundles are registered as JasperReports extensions of type
ComponentsBundle via the central extension framework (see
ExtensionsEnvironment).
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,ComponentsBundle> |
findBundles() |
protected static Map<String,ComponentsBundle> |
findComponentBundles()
Deprecated.
Replaced by
findBundles(). |
ComponentsBundle |
getBundle(String namespace)
Returns a component bundle that corresponds to a namespace.
|
Collection<ComponentsBundle> |
getBundles()
Returns the set of all component bundles present in the registry.
|
protected Map<String,ComponentsBundle> |
getCachedBundles() |
protected static Map<String,ComponentsBundle> |
getCachedComponentBundles()
Deprecated.
Replaced by
getCachedBundles(). |
static Collection<ComponentsBundle> |
getComponentBundles()
Deprecated.
Replaced by
getBundles(). |
static ComponentManager |
getComponentManager(ComponentKey componentKey)
Deprecated.
Replaced by
getManager(ComponentKey). |
static ComponentsBundle |
getComponentsBundle(String namespace)
Deprecated.
Replaced by
getBundle(String). |
static ComponentsEnvironment |
getInstance(JasperReportsContext jasperReportsContext) |
ComponentManager |
getManager(ComponentKey componentKey)
Returns a component manager that corresponds to a particular component
type key.
|
public static ComponentsEnvironment getInstance(JasperReportsContext jasperReportsContext)
public Collection<ComponentsBundle> getBundles()
protected Map<String,ComponentsBundle> getCachedBundles()
protected Map<String,ComponentsBundle> findBundles()
public ComponentsBundle getBundle(String namespace)
namespace - a component bundle namespaceJRRuntimeException - if no bundle corresponding to the namespace
is found in the registrypublic ComponentManager getManager(ComponentKey componentKey)
componentKey - the component type keyJRRuntimeException - if the registry does not contain the specified
component typepublic static Collection<ComponentsBundle> getComponentBundles()
getBundles().protected static Map<String,ComponentsBundle> getCachedComponentBundles()
getCachedBundles().protected static Map<String,ComponentsBundle> findComponentBundles()
findBundles().public static ComponentsBundle getComponentsBundle(String namespace)
getBundle(String).public static ComponentManager getComponentManager(ComponentKey componentKey)
getManager(ComponentKey).Copyright © 2014. All rights reserved.