|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.runtime.reload.ReloadComponent
public class ReloadComponent
Field Summary | |
---|---|
static String |
FLUSH_EVENT_ID
|
static String |
RELOAD_EVENT_ID
|
static String |
RELOAD_TOPIC
|
Constructor Summary | |
---|---|
ReloadComponent()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
applicationStarted, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RELOAD_TOPIC
public static final String FLUSH_EVENT_ID
public static final String RELOAD_EVENT_ID
Constructor Detail |
---|
public ReloadComponent()
Method Detail |
---|
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 context
Exception
- 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 context
Exception
- 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
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |