Class SystemServiceLoaderInitializer

java.lang.Object
com.atlassian.confluence.impl.osgi.SystemServiceLoaderInitializer

public class SystemServiceLoaderInitializer extends Object
Walks through known ServiceLoader interfaces, and ensures that the implementations available from the system bundle are loaded before any other OSGi bundles might load.

This should prevent a whole kind of failure where plugins attempt to load classes outside of their classpath, or where they might initialize some loader (and fail!) before core attempts to.

Since:
7.0.1
  • Constructor Details

    • SystemServiceLoaderInitializer

      public SystemServiceLoaderInitializer()
  • Method Details

    • loadKnownServiceLoaders

      @PostConstruct public void loadKnownServiceLoaders()