Package org.nuxeo.template.deckjs
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 Summary
Fields Modifier and Type Field Description protected static TemplateBundleActivator
instance
protected static Log
log
-
Constructor Summary
Constructors Constructor Description TemplateBundleActivator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
cleanupDataDirPath()
void
expandResources()
Enumeration<?>
findEntries(String path)
org.osgi.framework.BundleContext
getContext()
protected static Path
getDataDirPath()
URL
getResource(String path)
static InputStream
getResourceAsStream(String path)
protected static String
getTemplateResourcesRootPath()
protected static void
initDataDirPath()
void
start(org.osgi.framework.BundleContext context)
void
stop(org.osgi.framework.BundleContext context)
-
-
-
Field Detail
-
instance
protected static TemplateBundleActivator instance
-
log
protected static final Log log
-
-
Method Detail
-
getTemplateResourcesRootPath
protected static String getTemplateResourcesRootPath()
-
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 interfaceorg.osgi.framework.BundleActivator
-
stop
public void stop(org.osgi.framework.BundleContext context)
- Specified by:
stop
in interfaceorg.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
-
-