|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Component
A component is a piece of pluggable functionality that typically has dependencies on other
components.
A Component bundles Blocks, Actions and Settings.
Component instances can be obtained using ComponentRepository.
| Method Summary | |
|---|---|
void |
configure(Element element)
Configures the component, by XML. |
Map<String,Action> |
getActions()
A component may also define extra 'actions'. |
Block |
getBlock(String name)
Gets a specific block. |
Collection<Block> |
getBlocks()
An unmodifiable collection of all blocks associated with the component |
String |
getBundle()
The baseName of the resource bundle associated with i18n messages for this component. |
Block |
getDefaultBlock()
Gets the one block that is the 'default' block of this component |
Collection<Component> |
getDependencies()
All (satisfied) depedencies of this Component. |
LocalizedString |
getDescription()
The description can contain further information about the component, mainly to be displayed in pages about components generally. |
String |
getName()
Every component has a (universally) unique name |
Setting<?> |
getSetting(String name)
Retrieves a setting (a definition, not a value; for that, use Framework.getSettingValue(Setting, Parameters)) with a certain name. |
Collection<Setting<?>> |
getSettings()
An unmodifiable collection of all settings associated with this component |
Collection<VirtualComponent> |
getUnsatisfiedDependencies()
The unsatisfied dependencies, so this should return an empty collection. |
URI |
getUri()
An URI which may identify the configuration of this Component. |
float |
getVersion()
A component has a version number. |
void |
resolve(VirtualComponent unsatified,
Component satisfied)
Used during bootstrapping. |
| Method Detail |
|---|
String getName()
float getVersion()
Collection<Component> getDependencies()
getUnsatisfiedDependencies().
Collection<VirtualComponent> getUnsatisfiedDependencies()
resolve(VirtualComponent, Component) when a
dependency is satisfied after all.
void resolve(VirtualComponent unsatified,
Component satisfied)
getUnsatisfiedDependencies() to getDependencies().
unsatified - The VirtualComponent object that used to be unsatisfiedsatisfied - The object representing the same component, but now as an actual Component.LocalizedString getDescription()
URI getUri()
void configure(Element element)
element - A 'component' element from the 'components' XSD.Collection<Block> getBlocks()
Block getBlock(String name)
null is returned.
name - The name of the block. If this parameter is null, then getDefaultBlock() can
be returned.Block getDefaultBlock()
String getBundle()
ResourceBundle.getBundle(String, Locale). The framework should decorate
the request with this like fmt:bundle would do before rendinger a block.
Collection<Setting<?>> getSettings()
Setting<?> getSetting(String name)
Framework.getSettingValue(Setting, Parameters)) with a certain name. Or
null if no such setting in this component.
Map<String,Action> getActions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||