public class BundleDeployer extends AbstractDeployer implements org.osgi.framework.BundleActivator
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER
A logger.
|
static String |
REFERENCE_URL_PREFIX
The URL prefix to enable 'reference'
|
| Constructor and Description |
|---|
BundleDeployer(boolean useReferences) |
| 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)
It's a good practice to install all bundles and then start them.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
close, onFileChangepublic static final String REFERENCE_URL_PREFIX
public static final org.slf4j.Logger LOGGER
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)
Deployerpublic void onFileCreate(File file)
DeployeronFileCreate in interface DeployeronFileCreate in class AbstractDeployerfile - the new filepublic void open(Collection<File> files)
open in interface Deployeropen in class AbstractDeployerfiles - the set of file.public void onFileDelete(File file)
DeployeronFileDelete in interface DeployeronFileDelete in class AbstractDeployerfile - the fileCopyright © 2014 OW2 Chameleon. All rights reserved.