Package org.nuxeo.runtime.tomcat.dev
Class ReloadServiceInvoker
- java.lang.Object
 - 
- org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker
 
 
- 
public class ReloadServiceInvoker extends Object
Invokes the ReloadService by reflection as this module does not have access to the runtime context.- Since:
 - 5.5
 - Author:
 - matic
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected MethoddeployBundlesprotected ObjectdevReloadBridgeprotected Methodflushprotected MethodflushSeamprotected MethodgetOSGIBundleNameprotected MethodinstallWebResourcesDeprecated.since 5.6, userunDeploymentPreprocessorinstead, also see org.nuxeo.runtime.reload.ReloadServiceprotected Methodreloadprotected MethodreloadBundlesprotected MethodreloadSeamprotected ObjectreloadServiceprotected MethodrunDeploymentPreprocessorMethod to run the deployment preprocessor, previously handled by the deployBundle methodprotected MethodundeployBundles 
- 
Constructor Summary
Constructors Constructor Description ReloadServiceInvoker(ClassLoader cl) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddeployBundles(List<File> files)Deprecated.since 9.3, usereloadBundles(List, List)instead.protected voidflush()protected voidflushSeam()protected StringgetOSGIBundleName(File file)voidhotDeployBundles(DevBundle[] bundles)Deprecated.since 9.3, usehotReloadBundles(DevBundle[], DevBundle[])instead, keep it for backward compatibilityDevBundle[]hotReloadBundles(DevBundle[] devBundlesToUndeploy, DevBundle[] devBundlesToDeploy)voidhotUndeployBundles(DevBundle[] bundles)Deprecated.since 9.3, usehotReloadBundles(DevBundle[], DevBundle[])instead, keep it for backward compatibilityprotected voidinstallWebResources(File file)Deprecated.since 5.6, userunDeploymentPreprocessor()instead, also see org.nuxeo.runtime.reload.ReloadServiceprotected voidreload()protected Map<String,String>reloadBundles(List<String> bundlesToUndeploy, List<File> bundlesToDeploy)protected voidreloadSeam()protected voidrunDeploymentPreprocessor()protected voidundeployBundles(List<String> bundleNames)Deprecated.since 9.3, usereloadBundles(List, List)instead. 
 - 
 
- 
- 
Field Detail
- 
reloadService
protected Object reloadService
 
- 
deployBundles
protected Method deployBundles
 
- 
undeployBundles
protected Method undeployBundles
 
- 
runDeploymentPreprocessor
protected Method runDeploymentPreprocessor
Method to run the deployment preprocessor, previously handled by the deployBundle method- Since:
 - 5.6
 
 
- 
installWebResources
@Deprecated protected Method installWebResources
Deprecated.since 5.6, userunDeploymentPreprocessorinstead, also see org.nuxeo.runtime.reload.ReloadServiceMethod to install local web resources, as the deployment preprocessor won't see dev bundles as defined by Nuxeo IDE.- Since:
 - 5.6
 
 
- 
flush
protected Method flush
 
- 
reload
protected Method reload
 
- 
flushSeam
protected Method flushSeam
 
- 
reloadSeam
protected Method reloadSeam
 
- 
devReloadBridge
protected Object devReloadBridge
- Since:
 - 9.3
 
 
- 
reloadBundles
protected Method reloadBundles
- Since:
 - 9.3
 
 
- 
getOSGIBundleName
protected Method getOSGIBundleName
- Since:
 - 9.3
 
 
 - 
 
- 
Constructor Detail
- 
ReloadServiceInvoker
public ReloadServiceInvoker(ClassLoader cl) throws ReflectiveOperationException
- Throws:
 ReflectiveOperationException
 
 - 
 
- 
Method Detail
- 
hotDeployBundles
@Deprecated public void hotDeployBundles(DevBundle[] bundles) throws ReflectiveOperationException
Deprecated.since 9.3, usehotReloadBundles(DevBundle[], DevBundle[])instead, keep it for backward compatibility- Throws:
 ReflectiveOperationException
 
- 
hotUndeployBundles
@Deprecated public void hotUndeployBundles(DevBundle[] bundles) throws ReflectiveOperationException
Deprecated.since 9.3, usehotReloadBundles(DevBundle[], DevBundle[])instead, keep it for backward compatibility- Throws:
 ReflectiveOperationException
 
- 
hotReloadBundles
public DevBundle[] hotReloadBundles(DevBundle[] devBundlesToUndeploy, DevBundle[] devBundlesToDeploy) throws ReflectiveOperationException
- Returns:
 - the deployed dev bundles
 - Throws:
 ReflectiveOperationException- Since:
 - 9.3
 
 
- 
deployBundles
@Deprecated protected void deployBundles(List<File> files) throws ReflectiveOperationException
Deprecated.since 9.3, usereloadBundles(List, List)instead. Kept for backward compatibility.- Throws:
 ReflectiveOperationException
 
- 
undeployBundles
@Deprecated protected void undeployBundles(List<String> bundleNames) throws ReflectiveOperationException
Deprecated.since 9.3, usereloadBundles(List, List)instead. Kept for backward compatibility.- Throws:
 ReflectiveOperationException
 
- 
flush
protected void flush() throws ReflectiveOperationException- Throws:
 ReflectiveOperationException
 
- 
flushSeam
protected void flushSeam() throws ReflectiveOperationException- Throws:
 ReflectiveOperationException
 
- 
reload
protected void reload() throws ReflectiveOperationException- Throws:
 ReflectiveOperationException
 
- 
reloadSeam
protected void reloadSeam() throws ReflectiveOperationException- Throws:
 ReflectiveOperationException
 
- 
runDeploymentPreprocessor
protected void runDeploymentPreprocessor() throws ReflectiveOperationException- Throws:
 ReflectiveOperationException
 
- 
getOSGIBundleName
protected String getOSGIBundleName(File file) throws ReflectiveOperationException
- Throws:
 ReflectiveOperationException- Since:
 - 9.3
 
 
- 
installWebResources
@Deprecated protected void installWebResources(File file) throws ReflectiveOperationException
Deprecated.since 5.6, userunDeploymentPreprocessor()instead, also see org.nuxeo.runtime.reload.ReloadService- Throws:
 ReflectiveOperationException
 
- 
reloadBundles
protected Map<String,String> reloadBundles(List<String> bundlesToUndeploy, List<File> bundlesToDeploy) throws ReflectiveOperationException
- Throws:
 ReflectiveOperationException- Since:
 - 9.3
 
 
 - 
 
 -