Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) OSGi Alliance (2008, 2010). All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.osgi.service.blueprint.container;

Event property names used in Event Admin events published by a Blueprint Container.

Each type of event is sent to a different topic:

org/osgi/service/blueprint/container/<event-type>

where <event-type> can have the values CREATING, CREATED, DESTROYING, DESTROYED, FAILURE, GRACE_PERIOD, or WAITING.

Such events have the following properties:

  • type
  • event
  • timestamp
  • bundle
  • bundle.symbolicName
  • bundle.id
  • bundle.version
  • extender.bundle.symbolicName
  • extender.bundle.id
  • extender.bundle.version
  • dependencies
  • cause

Version:
$Id: dc8b6c7bbad6fd3f3e0df92551002c274040bcbc $
Immutable:
 
 public class EventConstants {
 	private EventConstants() {
 		// non-instantiable class
 	}

The type of the event that has been issued. This property is of type Integer and can take one of the values defined in BlueprintEvent.
 
 	public static final String TYPE = "type";

The BlueprintEvent object that caused this event. This property is of type BlueprintEvent.
 
 	public static final String EVENT = "event";

The time the event was created. This property is of type Long.
 
 	public static final String TIMESTAMP = "timestamp";

The Blueprint bundle associated with this event. This property is of type Bundle.
 
 	public static final String BUNDLE = "bundle";

The bundle id of the Blueprint bundle associated with this event. This property is of type Long.
 
 	public static final String BUNDLE_ID = "bundle.id";

The bundle symbolic name of the Blueprint bundle associated with this event. This property is of type String.
 
 	public static final String BUNDLE_SYMBOLICNAME = "bundle.symbolicName";

The bundle version of the Blueprint bundle associated with this event. This property is of type Version.
	public static final String BUNDLE_VERSION = "bundle.version";

The Blueprint extender bundle that is generating this event. This property is of type Bundle.
	public static final String EXTENDER_BUNDLE = "extender.bundle";

The bundle id of the Blueprint extender bundle that is generating this event. This property is of type Long.
	public static final String EXTENDER_BUNDLE_ID = "extender.bundle.id";

The bundle symbolic of the Blueprint extender bundle that is generating this event. This property is of type String.
	public static final String EXTENDER_BUNDLE_SYMBOLICNAME = "extender.bundle.symbolicName";

The bundle version of the Blueprint extender bundle that is generating this event. This property is of type Version.
	public static final String EXTENDER_BUNDLE_VERSION = "extender.bundle.version";

The filters identifying the missing dependencies that caused this event for a FAILURE, GRACE_PERIOD, or WAITING event. This property type is an array of String.
	public static final String DEPENDENCIES = "dependencies";

The cause for a FAILURE event. This property is of type Throwable.
	public static final String CAUSE = "cause";

Topic prefix for all events issued by the Blueprint Container
	public static final String TOPIC_BLUEPRINT_EVENTS = "org/osgi/service/blueprint/container";

Topic for Blueprint Container CREATING events
	public static final String TOPIC_CREATING = 
"/CREATING";

Topic for Blueprint Container CREATED events
	public static final String TOPIC_CREATED = 
"/CREATED";

Topic for Blueprint Container DESTROYING events
"/DESTROYING";

Topic for Blueprint Container DESTROYED events
	public static final String TOPIC_DESTROYED = 
"/DESTROYED";

Topic for Blueprint Container FAILURE events
	public static final String TOPIC_FAILURE = 
"/FAILURE";

Topic for Blueprint Container GRACE_PERIOD events
"/GRACE_PERIOD";

Topic for Blueprint Container WAITING events
	public static final String TOPIC_WAITING = 
"/WAITING";
New to GrepCode? Check out our FAQ X