ResourceContextListener#notify(ResourceContextEvent) method.
A Resource Context Event has a type among the four following ones:
RESOURCE_CONTEXT_CREATED – A new Resource Context instance has
been created.RESOURCE_CONTEXT_REMOVED – A Resource Context instance has been
deleted.BUNDLE_ADDED – A bundle has been added in the scope of a
Resource Context instance.BUNDLE_REMOVED – A bundle has been removed from the scope of a
Resource Context instance.| Modifier and Type | Field and Description |
|---|---|
| public static final int | BUNDLE_ADDED
A bundle has been added to e
The |
| public static final int | BUNDLE_REMOVED
A bundle has been removed from a
|
| private final long | bundleId
bundle. |
| private final ResourceContext | context
context. |
| public static final int | RESOURCE_CONTEXT_CREATED
A new |
| public static final int | RESOURCE_CONTEXT_REMOVED
A
The |
| private final int | type
event type. |
| Access | Constructor and Description |
|---|---|
| public | ResourceContextEvent(final int
event type pType, final ResourceContext context pResourceContext)Create a new ResourceContextEvent. |
| public | ResourceContextEvent(final int
event type pType, final ResourceContext context pResourceContext, final long bundle pBundleId)Create a new ResourceContextEvent. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. var0)Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | Returns: the bundle id or -1 (invalid value).Retrieves the identifier of the bundle being added to or removed from the Resource Context. |
| public ResourceContext | |
| public int | |
| public int | |
| public String |
| BUNDLE_ADDED | back to summary |
|---|---|
| public static final int BUNDLE_ADDED A bundle has been added to e
The | |
| BUNDLE_REMOVED | back to summary |
|---|---|
| public static final int BUNDLE_REMOVED A bundle has been removed from a
| |
| bundleId | back to summary |
|---|---|
| private final long bundleId bundle. | |
| context | back to summary |
|---|---|
| private final ResourceContext context context. | |
| RESOURCE_CONTEXT_CREATED | back to summary |
|---|---|
| public static final int RESOURCE_CONTEXT_CREATED A new
The
| |
| RESOURCE_CONTEXT_REMOVED | back to summary |
|---|---|
| public static final int RESOURCE_CONTEXT_REMOVED A
The | |
| type | back to summary |
|---|---|
| private final int type event type. | |
| ResourceContextEvent | back to summary |
|---|---|
| public ResourceContextEvent(final int pType, final ResourceContext pResourceContext) Create a new ResourceContextEvent. This constructor should be used when
the type of the event is either
| |
| ResourceContextEvent | back to summary |
|---|---|
| public ResourceContextEvent(final int pType, final ResourceContext pResourceContext, final long pBundleId) Create a new ResourceContextEvent. This constructor should be used when
the type of the event is either
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object var0) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBundleId | back to summary |
|---|---|
| public long getBundleId() Retrieves the identifier of the bundle being added to or removed from the Resource Context.
This method returns a valid value only when
| |
| getContext | back to summary |
|---|---|
| public ResourceContext getContext() Retrieves the Resource Context associated to this event
| |
| getType | back to summary |
|---|---|
| public int getType() Retrieves the type of this Resource Context Event.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |