Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.reload
Class ReloadComponent

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.runtime.reload.ReloadComponent
All Implemented Interfaces:
Adaptable, Component, Extensible, ReloadService

public class ReloadComponent
extends DefaultComponent
implements ReloadService

Author:
Bogdan Stefanescu

Field Summary
static java.lang.String RELOAD_TOPIC
           
 
Constructor Summary
ReloadComponent()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 void deployBundle(java.io.File file)
           
 void deployBundle(java.io.File file, boolean reloadResourceClassPath)
           
 void flushJassCache()
           
static java.io.File getAppDir()
           
static org.osgi.framework.Bundle getBundle()
           
static org.osgi.framework.BundleContext getBundleContext()
           
static java.io.File getWarDir()
           
static void processFragment(java.io.File file)
           
 void reloadProperties()
           
 void reloadRepository()
           
static void reloadResourceClassPath(java.util.Collection<java.lang.String> files)
          Rebuild the framework resource class loader and add to it the given file paths.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELOAD_TOPIC

public static java.lang.String RELOAD_TOPIC
Constructor Detail

ReloadComponent

public ReloadComponent()
Method Detail

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()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.