public class BundleDeployer extends AbstractDeployer implements org.osgi.framework.BundleActivator
| Modifier and Type | Field and Description |
|---|---|
static String |
REFERENCE_URL_PREFIX
The URL prefix to enable 'reference'.
|
| Constructor and Description |
|---|
BundleDeployer(boolean useReferences,
boolean autoRefresh)
Creates a bundle deployer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File file)
Does the current deployer accept the given file.
|
void |
onFileCreate(File file)
Callback called when an accepted file is created.
|
void |
onFileDelete(File file)
Callback called when an accepted file is deleted.
|
void |
open(Collection<File> files)
Method called when the deployer is initialized.
|
void |
refresh() |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
close, onFileChangepublic static final String REFERENCE_URL_PREFIX
public BundleDeployer(boolean useReferences,
boolean autoRefresh)
useReferences - a boolean.public void start(org.osgi.framework.BundleContext context)
start in interface org.osgi.framework.BundleActivatorpublic void stop(org.osgi.framework.BundleContext context)
stop in interface org.osgi.framework.BundleActivatorpublic boolean accept(File file)
public void onFileCreate(File file)
onFileCreate in interface DeployeronFileCreate in class AbstractDeployerfile - the new filepublic void open(Collection<File> files)
It's a good practice to install all bundles and then start them. This method cannot be interrupted.
open in interface Deployeropen in class AbstractDeployerfiles - the set of accepted file currently present is a monitored directory.public void onFileDelete(File file)
onFileDelete in interface DeployeronFileDelete in class AbstractDeployerfile - the filepublic void refresh()
Copyright © 2009–2015 OW2 Chameleon. All rights reserved.