Class DefaultComponentsBundle
- java.lang.Object
-
- net.sf.jasperreports.engine.component.DefaultComponentsBundle
-
- All Implemented Interfaces:
ComponentsBundle
public class DefaultComponentsBundle extends Object implements ComponentsBundle
The defaultcomponents bundle
implementation.A components bundle consists of a map of
component managers
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description DefaultComponentsBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ComponentManager>
getComponentManager(Class<? extends Component> componentType)
Returns the manager for a component.Map<Class<? extends Component>,ComponentManager>
getComponentManagers()
Returns the internal map of component managers, indexed by component name.Set<Class<? extends Component>>
getComponentTypes()
Returns a set that contains the types of components included in this bundle.void
setComponentManagers(Map<Class<? extends Component>,ComponentManager> componentManagers)
Sets the map of component managers.
-
-
-
Method Detail
-
getComponentTypes
public Set<Class<? extends Component>> getComponentTypes()
Description copied from interface:ComponentsBundle
Returns a set that contains the types of components included in this bundle.- Specified by:
getComponentTypes
in interfaceComponentsBundle
- Returns:
- the set of component types in this bundle
-
getComponentManager
public Optional<ComponentManager> getComponentManager(Class<? extends Component> componentType)
Description copied from interface:ComponentsBundle
Returns the manager for a component.- Specified by:
getComponentManager
in interfaceComponentsBundle
- Parameters:
componentType
- the component type- Returns:
- the manager for the corresponding component type
-
getComponentManagers
public Map<Class<? extends Component>,ComponentManager> getComponentManagers()
Returns the internal map of component managers, indexed by component name.- Returns:
- the map of component managers
- See Also:
setComponentManagers(Map)
-
setComponentManagers
public void setComponentManagers(Map<Class<? extends Component>,ComponentManager> componentManagers)
Sets the map of component managers.The map needs to use component names as keys, and
ComponentManager
instances as values.- Parameters:
componentManagers
- the map of component managers
-
-