org.jboss.osgi.deployment.interceptor
Interface LifecycleInterceptorService

All Known Implementing Classes:
AbstractLifecycleInterceptorService

public interface LifecycleInterceptorService

A service that invokes lifecycle interceptors. This service tracks LifecycleInterceptor services and orders them to an interceptor chain according to their input/output requirements and relative order.

Since:
15-Oct-2009
Author:
thomas.diesler@jboss.com

Method Summary
 void handleStateChange(int state, org.osgi.framework.Bundle bundle)
          Invoke the registered set of interceptors for the given bundle state change.
 void start(org.osgi.framework.BundleContext bundleContext)
          Start tracking LifecycleInterceptor services
 void stop()
          Start tracking LifecycleInterceptor services
 

Method Detail

start

void start(org.osgi.framework.BundleContext bundleContext)
Start tracking LifecycleInterceptor services


stop

void stop()
Start tracking LifecycleInterceptor services


handleStateChange

void handleStateChange(int state,
                       org.osgi.framework.Bundle bundle)
Invoke the registered set of interceptors for the given bundle state change.

Parameters:
state - The future state of the bundle
bundle - The bundle that changes state
Throws:
LifecycleInterceptorException - if the invocation of an interceptor fails


Copyright © 2012 JBoss by Red Hat. All Rights Reserved.