public class ReloadComponent extends DefaultComponent implements ReloadService
Modifier and Type | Field and Description |
---|---|
static String |
FLUSH_EVENT_ID |
static String |
RELOAD_EVENT_ID |
static String |
RELOAD_TOPIC |
Constructor and Description |
---|
ReloadComponent() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
addJar(File file)
Add a JAR to the application classloader - experimental.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
String |
deployBundle(File file) |
String |
deployBundle(File file,
boolean reloadResourceClasspath) |
void |
flush()
Sends a flush event so that listeners can be notified that a reload has
been done.
|
void |
flushJaasCache() |
static File |
getAppDir() |
static org.osgi.framework.Bundle |
getBundle() |
static org.osgi.framework.BundleContext |
getBundleContext() |
static File |
getWarDir() |
void |
installWebResources(File file)
Copy web resources in nuxeo WAR
|
void |
reload() |
void |
reloadProperties() |
void |
reloadRepository() |
static void |
reloadResourceClassPath(Collection<String> files)
Rebuild the framework resource class loader and add to it the given file
paths.
|
void |
reloadSeamComponents() |
void |
removeJar(File file)
Remove a JAR from the application classloader - experimental.
|
void |
undeployBundle(String name) |
applicationStarted, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
public static final String RELOAD_TOPIC
public static final String FLUSH_EVENT_ID
public static final String RELOAD_EVENT_ID
public static org.osgi.framework.BundleContext getBundleContext()
public static org.osgi.framework.Bundle getBundle()
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void flushJaasCache() throws Exception
flushJaasCache
in interface ReloadService
Exception
public void reloadRepository() throws Exception
reloadRepository
in interface ReloadService
Exception
public void flush() throws Exception
ReloadService
flush
in interface ReloadService
Exception
public void reload() throws Exception
reload
in interface ReloadService
Exception
public void addJar(File file) throws Exception
addJar
in interface ReloadService
Exception
public void removeJar(File file) throws Exception
removeJar
in interface ReloadService
Exception
public String deployBundle(File file, boolean reloadResourceClasspath) throws Exception
deployBundle
in interface ReloadService
Exception
public String deployBundle(File file) throws Exception
deployBundle
in interface ReloadService
Exception
public void undeployBundle(String name) throws Exception
undeployBundle
in interface ReloadService
Exception
public void reloadProperties() throws Exception
reloadProperties
in interface ReloadService
Exception
public static void reloadResourceClassPath(Collection<String> files) throws Exception
The already added paths are removed from the class loader.
Exception
public void installWebResources(File file) throws Exception
ReloadService
installWebResources
in interface ReloadService
Exception
public static File getAppDir()
public static File getWarDir()
public void reloadSeamComponents() throws Exception
reloadSeamComponents
in interface ReloadService
Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.