org.apache.felix.fileinstall.internal
Class FileInstall
java.lang.Object
org.apache.felix.fileinstall.internal.FileInstall
- All Implemented Interfaces:
- java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.FrameworkListener, org.osgi.util.tracker.ServiceTrackerCustomizer
public class FileInstall
- extends java.lang.Object
- implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer, org.osgi.framework.FrameworkListener
This clever little bundle watches a directory and will install any jar file
if finds in that directory (as long as it is a valid bundle and not a
fragment).
|
Method Summary |
java.lang.Object |
addingService(org.osgi.framework.ServiceReference serviceReference)
|
void |
deleted(java.lang.String pid)
|
void |
frameworkEvent(org.osgi.framework.FrameworkEvent event)
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
|
void |
removedService(org.osgi.framework.ServiceReference serviceReference,
java.lang.Object service)
|
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
void |
updateChecksum(java.io.File file)
|
void |
updated(java.lang.String pid,
java.util.Dictionary properties)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileInstall
public FileInstall()
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
start in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
addingService
public java.lang.Object addingService(org.osgi.framework.ServiceReference serviceReference)
- Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
- Specified by:
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
removedService
public void removedService(org.osgi.framework.ServiceReference serviceReference,
java.lang.Object service)
- Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
stop in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
deleted
public void deleted(java.lang.String pid)
updated
public void updated(java.lang.String pid,
java.util.Dictionary properties)
updateChecksum
public void updateChecksum(java.io.File file)
frameworkEvent
public void frameworkEvent(org.osgi.framework.FrameworkEvent event)
- Specified by:
frameworkEvent in interface org.osgi.framework.FrameworkListener
Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.