| org.java.plugin.registry.PluginRegistry
All known Subclasses: org.java.plugin.tools.mocks.MockPluginRegistry, org.java.plugin.registry.xml.PluginRegistryImpl,
Inner Class :interface RegistryChangeListener | |
Inner Class :interface RegistryChangeData | |
checkIntegrity | IntegrityCheckReport checkIntegrity(PathResolver pathResolver)(Code) | | Performs integrity check of all registered plug-ins and generates result
as a collection of standard report items.
Parameters: pathResolver - optional path resolver integrity check report |
checkIntegrity | IntegrityCheckReport checkIntegrity(PathResolver pathResolver, boolean includeRegistrationReport)(Code) | | Performs integrity check of all registered plug-ins and generates result
as a collection of standard report items.
Parameters: pathResolver - optional path resolver Parameters: includeRegistrationReport - if true , the plug-ins registration report willbe included into resulting report integrity check report |
configure | void configure(ExtendedProperties config)(Code) | | Configures this registry instance. Usually this method is called from
ObjectFactory object factory implementation.
Parameters: config - registry configuration data |
extractId | String extractId(String uniqueId)(Code) | | Extracts plug-in element ID from some unique identifier.
Parameters: uniqueId - unique ID element ID |
extractPluginId | String extractPluginId(String uniqueId)(Code) | | Extracts plug-in ID from some unique identifier.
Parameters: uniqueId - unique ID plug-in ID |
extractVersion | Version extractVersion(String uniqueId)(Code) | | Extracts plug-in version identifier from some unique identifier (plug-in
or plug-in fragment).
Parameters: uniqueId - unique ID plug-in version identifier |
getDependingPlugins | Collection<PluginDescriptor> getDependingPlugins(PluginDescriptor descr)(Code) | | Utility method that recursively collects all plug-ins that depends on the
given plug-in.
Parameters: descr - descriptor of plug-in to collect dependencies for collection of PluginDescriptor plug-in descriptors thatdepend on given plug-in |
getPluginDescriptor | PluginDescriptor getPluginDescriptor(String pluginId)(Code) | | Returns descriptor of plug-in with given ID.
If plug-in descriptor with given ID can't be found or such plug-in exists
but is damaged this method have to throw an
IllegalArgumentException . In other words, this method shouldn't
return null .
Parameters: pluginId - plug-id ID plug-in descriptor |
isExtensionPointAvailable | boolean isExtensionPointAvailable(String pluginId, String pointId)(Code) | | Checks if extension point exists and is in valid state. If this method
returns true , the method
PluginRegistry.getExtensionPoint(String,String) should always return valid
extension point.
Parameters: pluginId - plug-in ID Parameters: pointId - extension point ID true if extension point exists and valid |
isPluginDescriptorAvailable | boolean isPluginDescriptorAvailable(String pluginId)(Code) | | Checks if plug-in exists and is in valid state. If this method returns
true , the method
PluginRegistry.getPluginDescriptor(String) should always return valid plug-in descriptor.
Parameters: pluginId - plug-in ID true if plug-in exists and valid |
makeUniqueId | String makeUniqueId(String pluginId, String elementId)(Code) | | Constructs unique identifier for some plug-in element from it's ID.
Parameters: pluginId - plug-in ID Parameters: elementId - element ID unique ID |
makeUniqueId | String makeUniqueId(String pluginId, Version version)(Code) | | Constructs unique identifier for plug-in with given ID.
Parameters: pluginId - plug-in ID Parameters: version - plug-in version identifier unique plug-in ID |
register | Map<String, Identity> register(URL[] manifests) throws ManifestProcessingException(Code) | | Registers plug-ins and plug-in fragments in this registry. Note that this
method not makes plug-ins available for activation by any
PluginManager instance as it is not aware of any manager. Using
this method just makes plug-in meta-data available for reading from this
registry.
If more than one version of the same plug-in or plug-in fragment given,
the only latest version should be registered. If some plug-in or plug-in
fragment already registered it should be ignored by this method. Client
application have to un-register such plug-ins first before registering
their newest versions.
Parameters: manifests - array of manifest locations map where keys are URL's and values are registered plug-ins orplug-in fragments, URL's for unprocessed manifests are notincluded throws: ManifestProcessingException - if manifest processing error has occurred (optional behavior) See Also: PluginManager.publishPlugins(PluginManager.PluginLocation[]) |
registerListener | void registerListener(RegistryChangeListener listener)(Code) | | Registers plug-in registry change event listener. If given listener has
been registered before, this method should throw an
IllegalArgumentException .
Parameters: listener - new registry change event listener |
unregister | Collection<String> unregister(String[] ids)(Code) | | Unregisters plug-ins and plug-in fragments with given ID's (including
depending plug-ins and plug-in fragments).
Parameters: ids - ID's of plug-ins and plug-in fragments to be unregistered collection of UID's of actually unregistered plug-ins and plug-infragments |
unregisterListener | void unregisterListener(RegistryChangeListener listener)(Code) | | Unregisters registry change event listener. If given listener hasn't been
registered before, this method should throw an
IllegalArgumentException .
Parameters: listener - registered listener |
|
|