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)
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 |
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)
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)
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 fileCopyright © 2009–2014 OW2 Chameleon. All rights reserved.