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 Method
deployBundles
protected Object
devReloadBridge
protected Method
flush
protected Method
flushSeam
protected Method
getOSGIBundleName
protected Method
installWebResources
Deprecated.since 5.6, userunDeploymentPreprocessor
instead, also see org.nuxeo.runtime.reload.ReloadServiceprotected Method
reload
protected Method
reloadBundles
protected Method
reloadSeam
protected Object
reloadService
protected Method
runDeploymentPreprocessor
Method to run the deployment preprocessor, previously handled by the deployBundle methodprotected Method
undeployBundles
-
Constructor Summary
Constructors Constructor Description ReloadServiceInvoker(ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
deployBundles(List<File> files)
Deprecated.since 9.3, usereloadBundles(List, List)
instead.protected void
flush()
protected void
flushSeam()
protected String
getOSGIBundleName(File file)
void
hotDeployBundles(DevBundle[] bundles)
Deprecated.since 9.3, usehotReloadBundles(DevBundle[], DevBundle[])
instead, keep it for backward compatibilityDevBundle[]
hotReloadBundles(DevBundle[] devBundlesToUndeploy, DevBundle[] devBundlesToDeploy)
void
hotUndeployBundles(DevBundle[] bundles)
Deprecated.since 9.3, usehotReloadBundles(DevBundle[], DevBundle[])
instead, keep it for backward compatibilityprotected void
installWebResources(File file)
Deprecated.since 5.6, userunDeploymentPreprocessor()
instead, also see org.nuxeo.runtime.reload.ReloadServiceprotected void
reload()
protected Map<String,String>
reloadBundles(List<String> bundlesToUndeploy, List<File> bundlesToDeploy)
protected void
reloadSeam()
protected void
runDeploymentPreprocessor()
protected void
undeployBundles(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, userunDeploymentPreprocessor
instead, 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
-
-