Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addingBundle(Bundle, BundleEvent) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginBundleTracker
- addListener(Class<? extends HostExtensionPoint>, PluginExtensionRegistryImpl.ExtensionRegistryListener) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl
-
Subscribes
listenerto add/remove events fortype, and immediately replays every currently-registered extension oftypeas a syntheticextensionAddedcall (outside the lock, like every other notification) - so a listener never has to race "subscribe" against "read the current snapshot" to build a consistent picture, regardless of the orderPluginExtensionRegistryImpl.addListener(java.lang.Class<? extends com.xebialabs.xlrelease.osgi.api.HostExtensionPoint>, com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl.ExtensionRegistryListener)and bundle installation happen to run in. - attach(BundleContext) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionServiceTracker
B
- build(Bundle, PluginManifest, GenericApplicationContext) - Static method in class com.xebialabs.xlrelease.osgi.impl.PluginContextFactory
- bundle() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginRuntime
C
- close() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginBundleTracker
- com.xebialabs.xlrelease.osgi.impl - package com.xebialabs.xlrelease.osgi.impl
- context() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginRuntime
- CONTEXT_HEADER - Static variable in class com.xebialabs.xlrelease.osgi.impl.PluginManifest
D
- detach() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionServiceTracker
E
- EventSubscriptionsImpl - Class in com.xebialabs.xlrelease.osgi.impl
-
A single instance is shared between the root host
ApplicationContext(declared inOsgiSpringConfiguration) and every plugin's curated parent context (PluginApiParentContextregisters the exact same object as a singleton there), mirroringPluginExtensionRegistryImpl's sharing pattern. - EventSubscriptionsImpl(XLReleaseEventBus) - Constructor for class com.xebialabs.xlrelease.osgi.impl.EventSubscriptionsImpl
- extensionAdded(HostExtensionPoint) - Method in interface com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl.ExtensionRegistryListener
- extensionRemoved(HostExtensionPoint) - Method in interface com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl.ExtensionRegistryListener
- extensions(Class<T>) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl
F
- from(Bundle) - Static method in class com.xebialabs.xlrelease.osgi.impl.PluginManifest
I
- InvalidPluginManifestException - Exception Class in com.xebialabs.xlrelease.osgi.impl
-
Thrown by
PluginManifest.from(Bundle)when a bundle declares itself a Spring plugin (it has anX-Plugin-Contextheader) but its manifest is malformed. - InvalidPluginManifestException(Bundle, String, String) - Constructor for exception class com.xebialabs.xlrelease.osgi.impl.InvalidPluginManifestException
- InvalidPluginManifestException(Bundle, String, String, Throwable) - Constructor for exception class com.xebialabs.xlrelease.osgi.impl.InvalidPluginManifestException
M
- manifest() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginRuntime
- modifiedBundle(Bundle, BundleEvent, PluginRuntime) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginBundleTracker
P
- partialRuntime() - Method in exception class com.xebialabs.xlrelease.osgi.impl.PluginContextBuildException
- PluginBundleTracker - Class in com.xebialabs.xlrelease.osgi.impl
-
Discovers Spring plugin bundles via the
PluginManifestcontract, builds their child context viaPluginContextFactory, and guarantees deterministic teardown onremovedBundle- including plainbundle.stop()with no uninstall, which fires synchronously on the calling thread with a fully usable bundle classloader for uninstall, stop, and framework shutdown alike. - PluginBundleTracker(BundleContext, GenericApplicationContext) - Constructor for class com.xebialabs.xlrelease.osgi.impl.PluginBundleTracker
- PluginClassLoaderCachePurger - Class in com.xebialabs.xlrelease.osgi.impl
-
Purges the enumerable set of JDK/Spring caches that would otherwise pin a departing plugin's classloader - a hand-rolled list, after rejecting
ClassLoaderLeakPreventor(stale since 2016, and its API assumes aServletContextEventrather than an arbitraryClassLoader). - PluginClassLoaderLeakSentinel - Class in com.xebialabs.xlrelease.osgi.impl
-
A production safety net, independent of the CI-only leak-gate test suite: after
teardown(com.xebialabs.xlrelease.osgi.impl.PluginRuntime)completes, watches whether a plugin's classloader actually becomes collectible within a bounded delay, and logs atERROR- with the plugin's symbolic name and install/teardown timestamps - only once it is sure. - PluginClassLoaderLeakSentinel() - Constructor for class com.xebialabs.xlrelease.osgi.impl.PluginClassLoaderLeakSentinel
- PluginContextBuildException - Exception Class in com.xebialabs.xlrelease.osgi.impl
-
Thrown by
PluginContextFactory.build(org.osgi.framework.Bundle, com.xebialabs.xlrelease.osgi.impl.PluginManifest, org.springframework.context.support.GenericApplicationContext)when construction fails after the childApplicationContextwas created - carries the partially-builtPluginRuntimeso the caller can route cleanup through the samePluginTeardownused for normal removal, rather thanPluginContextFactoryclosing it internally. - PluginContextBuildException(PluginRuntime, Throwable) - Constructor for exception class com.xebialabs.xlrelease.osgi.impl.PluginContextBuildException
- pluginContextClassName() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginManifest
- PluginContextFactory - Class in com.xebialabs.xlrelease.osgi.impl
-
Builds a plugin's child
AnnotationConfigApplicationContextfrom aPluginManifest+Bundle, parented to the curatedPluginApiParentContext. - PluginExtensionRegistryImpl - Class in com.xebialabs.xlrelease.osgi.impl
-
A single instance is shared between the root host
ApplicationContext(declared inOsgiSpringConfiguration) and every plugin's curated parent context (PluginApiParentContextregisters the exact same object as a singleton there) - not two copies, one shared reference, so a plugin-side registration is immediately visible to host-side queries. - PluginExtensionRegistryImpl() - Constructor for class com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl
- PluginExtensionRegistryImpl.ExtensionRegistryListener - Interface in com.xebialabs.xlrelease.osgi.impl
-
Push counterpart to
PluginExtensionRegistryImpl.extensions(Class): a host component that wants to maintain externally-visible derived state (e.g. - PluginExtensionServiceTracker - Class in com.xebialabs.xlrelease.osgi.impl
-
OSGi-service feeder for
PluginExtensionRegistryImpl: a bundle that contributes a Declarative Services component (rather than a Spring plugin context, seePluginContextFactory) implementing one ofHostExtensionPointCatalog's interfaces is discovered here and registered into the same registry, under the sameBundle-SymbolicNamekey, as any Spring-plugin-context extension. - PluginExtensionServiceTracker(PluginExtensionRegistryImpl) - Constructor for class com.xebialabs.xlrelease.osgi.impl.PluginExtensionServiceTracker
- PluginManifest - Class in com.xebialabs.xlrelease.osgi.impl
-
The manifest-header contract a bundle must satisfy to be recognized as a "Spring plugin" by the host:
- PluginRuntime - Class in com.xebialabs.xlrelease.osgi.impl
-
Everything the host needs to reference a running plugin instance: the OSGi bundle it came from, its parsed manifest, and its child Spring context.
- PluginRuntime(Bundle, PluginManifest, ConfigurableApplicationContext) - Constructor for class com.xebialabs.xlrelease.osgi.impl.PluginRuntime
- PluginTeardown - Class in com.xebialabs.xlrelease.osgi.impl
-
The single, strictly-ordered, fully idempotent teardown procedure used by every plugin removal path - this is the load-bearing safety mechanism of the entire OSGi plugin platform.
- PluginTeardown(PluginExtensionRegistryImpl, EventSubscriptionsImpl, PluginClassLoaderLeakSentinel) - Constructor for class com.xebialabs.xlrelease.osgi.impl.PluginTeardown
- prefix() - Method in class com.xebialabs.xlrelease.osgi.impl.PluginManifest
- PREFIX_HEADER - Static variable in class com.xebialabs.xlrelease.osgi.impl.PluginManifest
- purge(ClassLoader) - Static method in class com.xebialabs.xlrelease.osgi.impl.PluginClassLoaderCachePurger
R
- register(String, HostExtensionPoint) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl
-
Fans
beanout to everyHostExtensionPointsubtype it actually implements - a bean may implement more than one extension-point interface. - removedBundle(Bundle, BundleEvent, PluginRuntime) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginBundleTracker
S
- subscribe(Class<?>, Consumer<Object>) - Method in class com.xebialabs.xlrelease.osgi.impl.EventSubscriptionsImpl
T
- takeTrackingFailure(Bundle) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginBundleTracker
-
Outcome of tracking the current revision of
bundle, consumed by a checked install. - teardown(PluginRuntime) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginTeardown
U
- unregister(String) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl
-
Removes every entry registered under
bundleSymbolicName, atomically. - unregister(String, HostExtensionPoint) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginExtensionRegistryImpl
-
Removes just
beanfrombundleSymbolicName's entries, pruning now-empty type/bundle map entries.
W
- watch(PluginRuntime) - Method in class com.xebialabs.xlrelease.osgi.impl.PluginClassLoaderLeakSentinel
-
Starts watching
runtime's classloader for collection.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form