|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.component.ComponentsEnvironment
public final class ComponentsEnvironment
A class that provides access to component bundles
.
Component bundles are registered as JasperReports extensions of type
ComponentsBundle
via the central extension framework (see
ExtensionsEnvironment
).
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,ComponentsBundle> |
findBundles()
|
protected static java.util.Map<java.lang.String,ComponentsBundle> |
findComponentBundles()
Deprecated. Replaced by findBundles() . |
ComponentsBundle |
getBundle(java.lang.String namespace)
Returns a component bundle that corresponds to a namespace. |
java.util.Collection<ComponentsBundle> |
getBundles()
Returns the set of all component bundles present in the registry. |
protected java.util.Map<java.lang.String,ComponentsBundle> |
getCachedBundles()
|
protected static java.util.Map<java.lang.String,ComponentsBundle> |
getCachedComponentBundles()
Deprecated. Replaced by getCachedBundles() . |
static java.util.Collection<ComponentsBundle> |
getComponentBundles()
Deprecated. Replaced by getBundles() . |
static ComponentManager |
getComponentManager(ComponentKey componentKey)
Deprecated. Replaced by getManager(ComponentKey) . |
static ComponentsBundle |
getComponentsBundle(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ComponentsEnvironment getInstance(JasperReportsContext jasperReportsContext)
public java.util.Collection<ComponentsBundle> getBundles()
protected java.util.Map<java.lang.String,ComponentsBundle> getCachedBundles()
protected java.util.Map<java.lang.String,ComponentsBundle> findBundles()
public ComponentsBundle getBundle(java.lang.String namespace)
namespace
- a component bundle namespace
JRRuntimeException
- if no bundle corresponding to the namespace
is found in the registrypublic ComponentManager getManager(ComponentKey componentKey)
componentKey
- the component type key
JRRuntimeException
- if the registry does not contain the specified
component typepublic static java.util.Collection<ComponentsBundle> getComponentBundles()
getBundles()
.
protected static java.util.Map<java.lang.String,ComponentsBundle> getCachedComponentBundles()
getCachedBundles()
.
protected static java.util.Map<java.lang.String,ComponentsBundle> findComponentBundles()
findBundles()
.
public static ComponentsBundle getComponentsBundle(java.lang.String namespace)
getBundle(String)
.
public static ComponentManager getComponentManager(ComponentKey componentKey)
getManager(ComponentKey)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |