public class InterpolatorDirectory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERPOLATOR_VERSION
Interpolator VersionProperty XML type attribute value.
|
| Constructor and Description |
|---|
InterpolatorDirectory()
Creates an empty InterpolatoryDirectory.
|
| Modifier and Type | Method and Description |
|---|---|
List<InterpolatorFactory> |
buildFactoryList()
Returns a List of all available InterpolatorFactories.
|
InterpolatorFactory |
getDefaultFactory()
Returns the InterpolatorFactory for creating default Interpolators.
|
InterpolatorFactory |
getFactory(org.jflux.api.common.rk.config.VersionProperty version)
Returns an InterpolatorFactory for the given VersionProperty.
|
static InterpolatorDirectory |
instance()
Retrieves the InterpolatorDirectory instance.
|
static org.osgi.framework.ServiceRegistration |
registerFactory(org.osgi.framework.BundleContext context,
InterpolatorFactory fact)
Registers an InterpolatorFactory to the directory using OSGi.
|
void |
setContext(org.osgi.framework.BundleContext context)
Sets the directory's BundleContext.
|
void |
setDefault(InterpolatorFactory factory)
Sets the default InterpolatorFactory.
|
void |
useOSGi(boolean val)
Sets if the InterpolatorDirectory should use OSGi or not.
|
public static final String INTERPOLATOR_VERSION
public InterpolatorDirectory()
public static InterpolatorDirectory instance()
public static org.osgi.framework.ServiceRegistration registerFactory(org.osgi.framework.BundleContext context,
InterpolatorFactory fact)
context - BundleContext to register withfact - InterpolatorFactory to registerpublic InterpolatorFactory getDefaultFactory()
public InterpolatorFactory getFactory(org.jflux.api.common.rk.config.VersionProperty version)
version - Interpolator Version of the Factory to retrievepublic List<InterpolatorFactory> buildFactoryList()
public void setDefault(InterpolatorFactory factory)
factory - InterpolatorFactory to set as defaultpublic void setContext(org.osgi.framework.BundleContext context)
context - BundleContext to setpublic void useOSGi(boolean val)
val - if true, this InterpolatorDirectory will use OSGiCopyright © 2011-2014. All Rights Reserved.