org.springframework.osgi.mock
Class MockFrameworkUtil

java.lang.Object
  extended by org.springframework.osgi.mock.MockFrameworkUtil

public class MockFrameworkUtil
extends Object

FrameworkUtil-like class that tries to create a somewhat valid filter. Filters objects can be created without an actual OSGi platform running however, the default OSGi implementation delegates the creation to the package indicated by "org.osgi.vendor.framework" property. In its current implementation, this class requires one of Equinox, Knoplerfish or Felix on its classpath to create the filter object.

Author:
Costin Leau

Method Summary
 Filter createFilter(String filter)
          Create a mock filter that is _might_ be valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFilter

public Filter createFilter(String filter)
Create a mock filter that is _might_ be valid. This method does not throw an checked exception and will always return a filter implementation.

Parameters:
filter - OSGi filter given as a String.
Returns:
actual OSGi filter using the underlying OSGi platform


Copyright © 2006-2008 Spring Framework. All Rights Reserved.