Interface ReloadService

  • All Superinterfaces:
    TimestampedService
    All Known Implementing Classes:
    ReloadComponent

    public interface ReloadService
    extends TimestampedService
    Service tracking reload related events or commands when installing a package.

    WARNING: This interface is used by reflection in org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker.

    Author:
    Bogdan Stefanescu
    • Method Detail

      • reloadProperties

        void reloadProperties()
                       throws IOException
        Reloads runtime framework properties
        Throws:
        IOException
      • reloadSeamComponents

        void reloadSeamComponents()
        Sends a runtime event with id RELOAD_SEAM_EVENT_ID
        Since:
        5.5
      • flush

        void flush()
        Sends a runtime event with id FLUSH_EVENT_ID so that listeners can be notified that a flush is needed (after a reload for instance).

        Also calls flushJaasCache() by default, but not other flush methods as they could alter the running application behaviour.

        Since:
        5.5
        See Also:
        flushJaasCache()
      • flushJaasCache

        void flushJaasCache()
        Sends an event that can trigger reset of JaasCache.
      • flushSeamComponents

        void flushSeamComponents()
        Sends a runtime event with id FLUSH_SEAM_EVENT_ID.
        Since:
        5.6
      • deployBundle

        @Deprecated(since="9.3")
        default void deployBundle​(File file,
                                  boolean reloadResources)
                           throws org.osgi.framework.BundleException
        Deprecated.
        since 9.3 use reloadBundles(ReloadContext) instead. Kept for backward compatibility.
        Deploys bundle to the runtime, gives possibility to control resources reloading.
        Throws:
        org.osgi.framework.BundleException
        Since:
        5.5
        See Also:
        deployBundles(List, boolean)
      • deployBundles

        @Deprecated(since="9.3")
        void deployBundles​(List<File> files,
                           boolean reloadResources)
                    throws org.osgi.framework.BundleException
        Deprecated.
        since 9.3 use reloadBundles(ReloadContext) instead. Kept for backward compatibility.
        Deploys bundles to the runtime, gives possibility to control resources reloading.
        Throws:
        org.osgi.framework.BundleException
        Since:
        9.3
      • undeployBundle

        @Deprecated(since="9.3")
        default void undeployBundle​(String bundleName,
                                    boolean reloadResources)
                             throws org.osgi.framework.BundleException
        Deprecated.
        since 9.3 use reloadBundles(ReloadContext) instead. Kept for backward compatibility.
        Undeploys bundle from the runtime, gives possibility to control resources reloading.
        Throws:
        org.osgi.framework.BundleException
        Since:
        9.3
        See Also:
        undeployBundles(List, boolean)
      • undeployBundles

        @Deprecated(since="9.3")
        void undeployBundles​(List<String> bundleNames,
                             boolean reloadResources)
                      throws org.osgi.framework.BundleException
        Deprecated.
        since 9.3 use reloadBundles(ReloadContext) instead. Kept for backward compatibility.
        Undeploys bundles from the runtime, gives possibility to control resources reloading.
        Throws:
        org.osgi.framework.BundleException
        Since:
        9.3
      • reloadBundles

        ReloadResult reloadBundles​(ReloadContext context)
                            throws org.osgi.framework.BundleException
        Called by ReloadServiceInvoker#hotReloadBundles.
        Returns:
        the result of hot reload operation
        Throws:
        org.osgi.framework.BundleException
        Since:
        9.3
      • installWebResources

        @Deprecated
        void installWebResources​(File file)
                          throws IOException
        Deprecated.
        since 5.6: use runDeploymentPreprocessor() method instead, now re-deploys all jars so that the nuxeo.war holds the same content than it would at startup. This method is called by reflection by ReloadServiceInvoker#hotDeployBundles. Keep it as compatibility code until NXP-9642 is done.
        Copies the bundle web resources into the nuxeo WAR directory.
        Throws:
        IOException
        Since:
        5.5
      • getOSGIBundleName

        String getOSGIBundleName​(File file)
        Returns the OSGI bundle name if given file can be identified as an OSGI bundle, or null. The OSGI bundle can be a jar or an exploded jar on file system.
        Since:
        5.6