org.apache.sling.installer.api
Interface OsgiInstaller


public interface OsgiInstaller

OSGi Service that installs/updates/removes installable data InstallableResource in the OSGi framework. The client can register a number of such resources, and the installer decides based on the resource weights, bundle version numbers, etc. which ones are actually installed. An InstallableResource can be a bundle, a configuration, and later we might support deployment packages as well.


Method Summary
 void registerResources(String urlScheme, InstallableResource[] resources)
          Provide the installer with the complete list of installable resources for a given client.
 void updateResources(String urlScheme, InstallableResource[] resources, String[] ids)
          Inform the installer that resources are available for installation and/or other resources are no longer available.
 

Method Detail

registerResources

void registerResources(String urlScheme,
                       InstallableResource[] resources)
Provide the installer with the complete list of installable resources for a given client. Client must call this at startup and/or when the installer service becomes available. The installer stores the list of previously registered/added resources, compares with the new list and removes resources that have disappeared. Invalid resources are ignored.

Parameters:
urlScheme - identifies the client.
resources - the list of available resources

updateResources

void updateResources(String urlScheme,
                     InstallableResource[] resources,
                     String[] ids)
Inform the installer that resources are available for installation and/or other resources are no longer available. This method is called if - installed resources have been modified - new resources are available - installed resources should be uninstalled Invalid resources are ignored.

Parameters:
urlScheme - identifies the client.
resource - An array of updated/new resources - might be null
ids - An array of identifiers for removed resources - might be null


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.