org.apache.sling.installer.api
Interface ResourceChangeListener


public interface ResourceChangeListener

OSGi Service listening for changes of resources. These resources are not changed through the installer but through any other means like a bundle being installed directly through the framework or a configuration directly changed through the configuration admin.

Since:
3.1

Method Summary
 void resourceAddedOrUpdated(java.lang.String resourceType, java.lang.String entityId, java.io.InputStream is, java.util.Dictionary<java.lang.String,java.lang.Object> dict, java.util.Map<java.lang.String,java.lang.Object> attributes)
          Inform the installer about an added or updated resource
 void resourceRemoved(java.lang.String resourceType, java.lang.String entityId)
          Inform the installer about a removed resource
 

Method Detail

resourceAddedOrUpdated

void resourceAddedOrUpdated(java.lang.String resourceType,
                            java.lang.String entityId,
                            java.io.InputStream is,
                            java.util.Dictionary<java.lang.String,java.lang.Object> dict,
                            java.util.Map<java.lang.String,java.lang.Object> attributes)
Inform the installer about an added or updated resource

Parameters:
resourceType - The resource type
entityId - The entity id (symbolic name etc.)
is - Input stream or
dict - Dictionary

resourceRemoved

void resourceRemoved(java.lang.String resourceType,
                     java.lang.String entityId)
Inform the installer about a removed resource

Parameters:
resourceType - The resource type
entityId - The entity id (symbolic name etc.)


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