Interface SingleComponentManager.SetImplementationObject<S>

Enclosing class:
SingleComponentManager<S>

protected static interface SingleComponentManager.SetImplementationObject<S>
The SetImplementationObject interface provides an API for component managers to setup the implementation object and potentially other parts as part of the SingleComponentManager.createImplementationObject(org.osgi.framework.Bundle, org.apache.felix.scr.impl.manager.SingleComponentManager.SetImplementationObject<S>, org.apache.felix.scr.impl.manager.ComponentContextImpl<S>) method processing.
  • Method Details

    • presetComponentContext

      void presetComponentContext(ComponentContextImpl<S> componentContext)
      Presets the implementation object. This method is called before the component's activator method is called and is intended to temporarily set the implementation object during the activator call.
    • resetImplementationObject

      void resetImplementationObject(S implementationObject)
      Resets the implementation object. This method is called after the activator method terminates with an error and is intended to revert any temporary settings done in the presetComponentContext(ComponentContextImpl) method.