Top Inners Fields Constructors Methods
liquibase.osgi

public Class Activator

extends Object
implements BundleActivator, BundleTrackerCustomizer<Activator.LiquibaseBundle>
Class Inheritance
All Implemented Interfaces
org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.framework.BundleActivator
Imports
java.util.Arrays, .Collections, .List, java.util.concurrent.CopyOnWriteArrayList, liquibase.osgi.Activator.LiquibaseBundle, org.osgi.framework.Bundle, .BundleActivator, .BundleContext, .BundleEvent, org.osgi.util.tracker.BundleTracker, .BundleTrackerCustomizer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private BundleTracker<Activator.LiquibaseBundle>
private static final String
private static final List<Activator.LiquibaseBundle>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Activator.LiquibaseBundle
addingBundle(Bundle
The Bundle being added to the BundleTracker .
bundle
,
BundleEvent
The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.
event
)

Implements org.osgi.util.tracker.BundleTrackerCustomizer.addingBundle.

A bundle is being added to the BundleTracker.

public static List<Activator.LiquibaseBundle>
public void
modifiedBundle(Bundle
The Bundle whose state has been modified.
bundle
,
BundleEvent
The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.
event
,
Activator.LiquibaseBundle
The tracked object for the specified bundle.
liquibaseBundle
)

Implements org.osgi.util.tracker.BundleTrackerCustomizer.modifiedBundle.

A bundle tracked by the BundleTracker has been modified.

public void
removedBundle(Bundle
The Bundle that has been removed.
bundle
,
BundleEvent
The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.
event
,
Activator.LiquibaseBundle
The tracked object for the specified bundle.
liquibaseBundle
)

Implements org.osgi.util.tracker.BundleTrackerCustomizer.removedBundle.

A bundle tracked by the BundleTracker has been removed.

public void
start(final BundleContext
The execution context of the bundle being started.
bc
)

Implements org.osgi.framework.BundleActivator.start.

Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle.

public void
stop(BundleContext
The execution context of the bundle being stopped.
context
)

Implements org.osgi.framework.BundleActivator.stop.

Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bundleTrackerback to summary
private BundleTracker<Activator.LiquibaseBundle> bundleTracker
LIQUIBASE_CUSTOM_CHANGE_WRAPPER_PACKAGESback to summary
private static final String LIQUIBASE_CUSTOM_CHANGE_WRAPPER_PACKAGES
liquibaseBundlesback to summary
private static final List<Activator.LiquibaseBundle> liquibaseBundles

Constructor Detail

Activatorback to summary
public Activator()

Method Detail

addingBundleback to summary
public Activator.LiquibaseBundle addingBundle(Bundle bundle, BundleEvent event)

Implements org.osgi.util.tracker.BundleTrackerCustomizer.addingBundle.

Doc from org.osgi.util.tracker.BundleTrackerCustomizer.addingBundle.

A bundle is being added to the BundleTracker.

This method is called before a bundle which matched the search parameters of the BundleTracker is added to the BundleTracker. This method should return the object to be tracked for the specified Bundle. The returned object is stored in the BundleTracker and is available from the getObject method.

Parameters
bundle:Bundle

The Bundle being added to the BundleTracker .

event:BundleEvent

The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.

Returns:Activator.LiquibaseBundle

The object to be tracked for the specified Bundle object or null if the specified Bundle object should not be tracked.

Annotations
@Override
getLiquibaseBundlesback to summary
public static List<Activator.LiquibaseBundle> getLiquibaseBundles()
modifiedBundleback to summary
public void modifiedBundle(Bundle bundle, BundleEvent event, Activator.LiquibaseBundle liquibaseBundle)

Implements org.osgi.util.tracker.BundleTrackerCustomizer.modifiedBundle.

Doc from org.osgi.util.tracker.BundleTrackerCustomizer.modifiedBundle.

A bundle tracked by the BundleTracker has been modified.

This method is called when a bundle being tracked by the BundleTracker has had its state modified.

Parameters
bundle:Bundle

The Bundle whose state has been modified.

event:BundleEvent

The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.

liquibaseBundle:Activator.LiquibaseBundle

The tracked object for the specified bundle.

Annotations
@Override
removedBundleback to summary
public void removedBundle(Bundle bundle, BundleEvent event, Activator.LiquibaseBundle liquibaseBundle)

Implements org.osgi.util.tracker.BundleTrackerCustomizer.removedBundle.

Doc from org.osgi.util.tracker.BundleTrackerCustomizer.removedBundle.

A bundle tracked by the BundleTracker has been removed.

This method is called after a bundle is no longer being tracked by the BundleTracker.

Parameters
bundle:Bundle

The Bundle that has been removed.

event:BundleEvent

The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.

liquibaseBundle:Activator.LiquibaseBundle

The tracked object for the specified bundle.

Annotations
@Override
startback to summary
public void start(final BundleContext bc) throws Exception

Implements org.osgi.framework.BundleActivator.start.

Doc from org.osgi.framework.BundleActivator.start.

Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle. This method can be used to register services or to allocate any resources that this bundle needs.

This method must complete and return to its caller in a timely manner.

Parameters
bc:BundleContext

The execution context of the bundle being started.

Annotations
@Override
Exceptions
Exception:
If this method throws an exception, this bundle is marked as stopped and the Framework will remove this bundle's listeners, unregister all services registered by this bundle, and release all services used by this bundle.
stopback to summary
public void stop(BundleContext context) throws Exception

Implements org.osgi.framework.BundleActivator.stop.

Doc from org.osgi.framework.BundleActivator.stop.

Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. In general, this method should undo the work that the BundleActivator.start method started. There should be no active threads that were started by this bundle when this bundle returns. A stopped bundle must not call any Framework objects.

This method must complete and return to its caller in a timely manner.

Parameters
context:BundleContext

The execution context of the bundle being stopped.

Annotations
@Override
Exceptions
Exception:
If this method throws an exception, the bundle is still marked as stopped, and the Framework will remove the bundle's listeners, unregister all services registered by the bundle, and release all services used by the bundle.
liquibase.osgi back to summary

public Class Activator.LiquibaseBundle

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final List<String>
private final Bundle

Constructor Summary

AccessConstructor and Description
public
LiquibaseBundle(Bundle bundle, String allowedPackages)

Method Summary

Modifier and TypeMethod and Description
public boolean
public List<String>
public Bundle
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowedPackagesback to summary
private final List<String> allowedPackages
bundleback to summary
private final Bundle bundle

Constructor Detail

LiquibaseBundleback to summary
public LiquibaseBundle(Bundle bundle, String allowedPackages)

Method Detail

allowedAllPackagesback to summary
public boolean allowedAllPackages()
getAllowedPackagesback to summary
public List<String> getAllowedPackages()
getBundleback to summary
public Bundle getBundle()
liquibase.osgi back to summary

public Class Activator.OSGIContainerChecker

extends ContainerChecker
Class Inheritance
Annotations
@Deprecated

Deprecated

use ContainerChecker

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from liquibase.osgi.ContainerChecker:
isOsgiPlatformosgiPlatform

Constructor Detail

OSGIContainerCheckerback to summary
public OSGIContainerChecker()