org.nuxeo.runtime.reload
Class ReloadComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.reload.ReloadComponent
- All Implemented Interfaces:
- Adaptable, Component, Extensible, ReloadService
public class ReloadComponent
- extends DefaultComponent
- implements ReloadService
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RELOAD_TOPIC
public static java.lang.String RELOAD_TOPIC
ReloadComponent
public ReloadComponent()
getBundleContext
public static org.osgi.framework.BundleContext getBundleContext()
getBundle
public static org.osgi.framework.Bundle getBundle()
activate
public void activate(ComponentContext context)
throws java.lang.Exception
- Description copied from interface:
Component
- Activates the component.
This method is called by the runtime when a component is activated.
- Specified by:
activate
in interface Component
- Overrides:
activate
in class DefaultComponent
- Parameters:
context
- the runtime context
- Throws:
java.lang.Exception
- if an error occurs during activation
deactivate
public void deactivate(ComponentContext context)
throws java.lang.Exception
- Description copied from interface:
Component
- Deactivates the component.
This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interface Component
- Overrides:
deactivate
in class DefaultComponent
- Parameters:
context
- the runtime context
- Throws:
java.lang.Exception
- if an error occurs during activation
flushJassCache
public void flushJassCache()
throws java.lang.Exception
- Specified by:
flushJassCache
in interface ReloadService
- Throws:
java.lang.Exception
reloadRepository
public void reloadRepository()
throws java.lang.Exception
- Specified by:
reloadRepository
in interface ReloadService
- Throws:
java.lang.Exception
deployBundle
public void deployBundle(java.io.File file,
boolean reloadResourceClassPath)
throws java.lang.Exception
- Throws:
java.lang.Exception
deployBundle
public void deployBundle(java.io.File file)
throws java.lang.Exception
- Specified by:
deployBundle
in interface ReloadService
- Throws:
java.lang.Exception
reloadProperties
public void reloadProperties()
throws java.lang.Exception
- Specified by:
reloadProperties
in interface ReloadService
- Throws:
java.lang.Exception
reloadResourceClassPath
public static void reloadResourceClassPath(java.util.Collection<java.lang.String> files)
throws java.lang.Exception
- Rebuild the framework resource class loader and add to it the given file
paths.
The already added paths are removed from the class loader.
- Throws:
java.lang.Exception
processFragment
public static void processFragment(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAppDir
public static java.io.File getAppDir()
getWarDir
public static java.io.File getWarDir()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.