org.robokind.api.motion.blending
Class OSGiFrameSourceTracker

java.lang.Object
  extended by org.robokind.api.motion.blending.OSGiFrameSourceTracker
All Implemented Interfaces:
FrameSourceTracker<FrameSource>

public class OSGiFrameSourceTracker
extends Object
implements FrameSourceTracker<FrameSource>

FrameSourceTracker for tracking FrameSources registered to the OSGi registry.

Author:
Matthew Stevenson

Constructor Summary
OSGiFrameSourceTracker()
          Creates a new OSGiFrameSourceTracker.
OSGiFrameSourceTracker(String className)
          Creates a new OSGiFrameSourceTracker which tracks services registered under the given class name.
 
Method Summary
 List<FrameSource> getSources()
          Returns a List of tracked FrameSources.
 boolean init(org.osgi.framework.BundleContext context, String filter)
          Initializes the tracking to begin tracking FrameSources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiFrameSourceTracker

public OSGiFrameSourceTracker()
Creates a new OSGiFrameSourceTracker.


OSGiFrameSourceTracker

public OSGiFrameSourceTracker(String className)
Creates a new OSGiFrameSourceTracker which tracks services registered under the given class name.

Parameters:
className - fully qualified name of the FrameSource class to track
Method Detail

init

public boolean init(org.osgi.framework.BundleContext context,
                    String filter)
Initializes the tracking to begin tracking FrameSources.

Parameters:
context - BundleContext to use for tracking.
filter - FrameSource service property filter string
Returns:
true if successful

getSources

public List<FrameSource> getSources()
Description copied from interface: FrameSourceTracker
Returns a List of tracked FrameSources.

Specified by:
getSources in interface FrameSourceTracker<FrameSource>
Returns:
List of tracked FrameSources


Copyright © 2011-2013. All Rights Reserved.