Class TemplateBundleActivator

java.lang.Object
org.nuxeo.template.deckjs.TemplateBundleActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class TemplateBundleActivator extends Object implements org.osgi.framework.BundleActivator
The activator expand the sample documents in the data directory.
Author:
Tiry, Laurent Doguin
  • Field Details

  • Constructor Details

    • TemplateBundleActivator

      public TemplateBundleActivator()
  • Method Details

    • getTemplateResourcesRootPath

      protected static String getTemplateResourcesRootPath()
    • getResource

      public URL getResource(String path)
    • findEntries

      public Enumeration<?> findEntries(String path)
    • getContext

      public org.osgi.framework.BundleContext getContext()
    • start

      public void start(org.osgi.framework.BundleContext context)
      Specified by:
      start in interface org.osgi.framework.BundleActivator
    • stop

      public void stop(org.osgi.framework.BundleContext context)
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
    • initDataDirPath

      protected static void initDataDirPath()
    • cleanupDataDirPath

      protected static void cleanupDataDirPath()
    • getDataDirPath

      protected static Path getDataDirPath()
    • expandResources

      public void expandResources()
    • getResourceAsStream

      public static InputStream getResourceAsStream(String path) throws IOException
      Throws:
      IOException