Package org.apache.felix.dm
Interface ResourceHandler
- All Known Subinterfaces:
ResourceDependency
public interface ResourceHandler
Service interface for anybody wanting to be notified of changes to resources.
- Author:
- Felix Project Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the property that's used to describe the filter condition for a resource.static final StringThe host part of the URL.static final StringThe path part of the URL.static final StringThe port part of the URL.static final StringThe protocol part of the URL.static final StringExact URL that this handler is looking for. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidadded(URL resource, Dictionary<?, ?> resourceProperties) Invoked whenever a new resource is added.voidDeprecated.Please usechanged(URL, Dictionary)instead.voidchanged(URL resource, Dictionary<?, ?> resourceProperties) Invoked whenever an existing resource changes.voidDeprecated.Please useremoved(URL, Dictionary)instead.voidremoved(URL resource, Dictionary<?, ?> resourceProperties) Invoked whenever an existing resource is removed.
-
Field Details
-
FILTER
Name of the property that's used to describe the filter condition for a resource.- See Also:
-
URL
Exact URL that this handler is looking for. Can be used instead of a filter to be very explicit about the resource you're looking for.- See Also:
-
HOST
The host part of the URL.- See Also:
-
PATH
The path part of the URL.- See Also:
-
PROTOCOL
The protocol part of the URL.- See Also:
-
PORT
The port part of the URL.- See Also:
-
-
Method Details
-
added
Deprecated.Please useadded(URL, Dictionary)instead. When both are specified, the new method takes precedence and the deprecated one is not invoked. -
added
Invoked whenever a new resource is added. -
changed
Deprecated.Please usechanged(URL, Dictionary)instead. When both are specified, the new method takes precedence and the deprecated one is not invoked. -
changed
Invoked whenever an existing resource changes. -
removed
Deprecated.Please useremoved(URL, Dictionary)instead. When both are specified, the new method takes precedence and the deprecated one is not invoked. -
removed
Invoked whenever an existing resource is removed.
-
added(URL, Dictionary)instead.