Class PluginRuntime

java.lang.Object
com.xebialabs.xlrelease.osgi.spring.PluginRuntime

public final class PluginRuntime extends Object
Everything the host needs to reference a running plugin instance: the OSGi bundle it came from, its parsed manifest, and its child Spring context. Built by PluginContextFactory.

Deliberately minimal - this is the holder PluginBundleTracker tracks one per active bundle (BundleTracker<PluginRuntime>); it is expected to grow as tracker-level bookkeeping needs arise, not to be replaced.

  • Constructor Details

    • PluginRuntime

      public PluginRuntime(org.osgi.framework.Bundle bundle, PluginManifest manifest, org.springframework.context.ConfigurableApplicationContext context)
  • Method Details

    • bundle

      public org.osgi.framework.Bundle bundle()
    • manifest

      public PluginManifest manifest()
    • context

      public org.springframework.context.ConfigurableApplicationContext context()