|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentManager
Interface for the componentmanager.
| Method Summary | |
|---|---|
void |
addUnlicensedComponent(java.lang.String componentID,
java.lang.String componentTypeID)
If a component requires a license and no valid license is available, the component is registerd as an unlicensed component. |
boolean |
checkComponentDefinition(ComponentDefinition componentDefinition)
Validate that a componentDefinition defines a valid component. |
boolean |
checkComponentTypeDefinition(ComponentDefinition componentDefinition)
Validate that a componentDefinition defines a valid componentType. |
boolean |
createPersistenceStructure(Component component)
Given the classes in the bundle create node type definitions and feed them to the underlying JCR persistence store. |
Component |
getComponent(java.lang.String typeId,
java.lang.String id)
Get a registered component by typeId and id. |
int |
getComponentCount(java.lang.String typeId)
Gets the number of registered components for a componentType. |
Component[] |
getComponents(java.lang.String typeId)
Get all registered components for a componentType. |
ComponentType |
getComponentType(java.lang.String typeId)
Get a registered componentType by typeId. |
ComponentType[] |
getComponentTypes()
Get all registered componenttypes. |
FrameworkConfig |
getFrameworkConfig()
Gets the frameworkConfig. |
ComponentBundle |
getOfflineComponentBundle(org.osgi.framework.Bundle bundle)
Returns the offline component bundle for the given bundle. |
java.util.Map<java.lang.String,java.lang.String> |
getUnlicensedComponents()
Returns all unlicensed components installed on the system. |
boolean |
installBundle(org.osgi.framework.Bundle bundle)
Deprecated. Use startComponent(Component) or startComponentBundle(ComponentBundle)
instead. |
boolean |
isLicensed(ComponentDefinition componentDefinition)
Returns if a valid license is installed for the given component definition. |
boolean |
isLicensed(java.lang.String componentID,
java.lang.String nameSpace)
Determine whether a license exists for the given componentID and namespace. |
boolean |
isPlatformBundle(org.osgi.framework.Bundle bundle)
Determine whether the given bundle is a platform bundle. |
boolean |
purgeBundle(org.osgi.framework.Bundle bundle)
Purges the specified bundle. |
void |
removeComponentNode(java.lang.String componentId)
Removes the nodes of a given component identified by its id from the JCR. |
void |
removeUnlicensedComponent(java.lang.String componentID)
Removes the component from the collection of unlicensed components. |
void |
startComponent(Component component)
Starts a component. |
void |
startComponentBundle(ComponentBundle componentBundle)
Starts a component bundle. |
boolean |
uninstallBundle(org.osgi.framework.Bundle bundle)
Uninstalls the specified bundle. |
boolean |
updateBundle(org.osgi.framework.Bundle bundle)
Deprecated. Use startComponent(Component) or startComponentBundle(ComponentBundle)
instead. |
| Method Detail |
|---|
FrameworkConfig getFrameworkConfig()
ComponentType getComponentType(java.lang.String typeId)
typeId - identifies a component type
ComponentType[] getComponentTypes()
Component getComponent(java.lang.String typeId,
java.lang.String id)
typeId - if of the the componentTypeid - of the component
Component[] getComponents(java.lang.String typeId)
typeId - id of the componentType
int getComponentCount(java.lang.String typeId)
typeId - component type id
boolean checkComponentTypeDefinition(ComponentDefinition componentDefinition)
componentDefinition - component definition to validate its component type for
boolean checkComponentDefinition(ComponentDefinition componentDefinition)
componentDefinition - component definition to validate its component for
boolean createPersistenceStructure(Component component)
component - Component containing all classes
void addUnlicensedComponent(java.lang.String componentID,
java.lang.String componentTypeID)
componentID - identifies the componentcomponentTypeID - identifies the component typevoid removeUnlicensedComponent(java.lang.String componentID)
componentID - identifies the componentjava.util.Map<java.lang.String,java.lang.String> getUnlicensedComponents()
void removeComponentNode(java.lang.String componentId)
componentId - Id of a component@Deprecated boolean installBundle(org.osgi.framework.Bundle bundle)
startComponent(Component) or startComponentBundle(ComponentBundle)
instead.
bundle - Bundle to install
true on success, false otherwise.@Deprecated boolean updateBundle(org.osgi.framework.Bundle bundle)
startComponent(Component) or startComponentBundle(ComponentBundle)
instead.
bundle - Bundle to update
true on success, false otherwise.boolean purgeBundle(org.osgi.framework.Bundle bundle)
bundle - Bundle to purge
true on success, false otherwise.boolean uninstallBundle(org.osgi.framework.Bundle bundle)
bundle - Bundle to uninstall
true on success, false otherwise.boolean isLicensed(ComponentDefinition componentDefinition)
componentDefinition - Component definition to check the license for
true if a valid license is installed for the component definition or the component
definition is not licensed, false otherwise
boolean isLicensed(java.lang.String componentID,
java.lang.String nameSpace)
componentID - Identifier of the component.nameSpace - Namespace of the component.
boolean isPlatformBundle(org.osgi.framework.Bundle bundle)
bundle - the bundle for which to check whether it is a platform bundle
ComponentBundle getOfflineComponentBundle(org.osgi.framework.Bundle bundle)
bundle - the bundle
void startComponentBundle(ComponentBundle componentBundle)
Called when a component bundle service is started. Note that the components the component bundle manages aren't handled.
componentBundle - The component bundle to start.ComponentBundle#start()}.void startComponent(Component component)
Involves the installing or updating of the component, invoking install/update call-backs on the
component, if applicable creates persistence structure for entity/wrapper classes, and starts the
component. Called when a component service is started (in ComponentBase.internalDoStart()
).
component - The component to start.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||