Class PluginContextBuildException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.xebialabs.xlrelease.osgi.spring.PluginContextBuildException
All Implemented Interfaces:
Serializable

public final class PluginContextBuildException extends RuntimeException
Thrown by PluginContextFactory.build(org.osgi.framework.Bundle, com.xebialabs.xlrelease.osgi.spring.PluginManifest, org.springframework.context.support.GenericApplicationContext) when construction fails after the child ApplicationContext was created - carries the partially-built PluginRuntime so the caller can route cleanup through the same PluginTeardown used for normal removal, rather than PluginContextFactory closing it internally. Every teardown step tolerates a partially-built runtime (e.g. no extensions registered yet if refresh() itself failed), so there is nothing bundle-installation-specific for the caller to know.
See Also:
  • Constructor Details

    • PluginContextBuildException

      public PluginContextBuildException(PluginRuntime partialRuntime, Throwable cause)
  • Method Details