public class DependencyMetadataHelper
extends java.lang.Object
| Constructor and Description |
|---|
DependencyMetadataHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Comparator |
getComparator(org.apache.felix.ipojo.metadata.Element dep,
org.osgi.framework.BundleContext context)
Helper method parsing the comparator attribute and returning the
comparator object.
|
static int |
getPolicy(org.apache.felix.ipojo.metadata.Element dep)
Helper method parsing the binding policy.
|
static java.lang.Class |
loadSpecification(java.lang.String specification,
org.osgi.framework.BundleContext context)
Loads the given specification class.
|
public static java.util.Comparator getComparator(org.apache.felix.ipojo.metadata.Element dep,
org.osgi.framework.BundleContext context)
throws ConfigurationException
dep - the Element describing the dependencycontext - the bundle context (to load the comparator class)null if not set.ConfigurationException - the comparator class cannot be load or the
comparator cannot be instantiated correctly.public static java.lang.Class loadSpecification(java.lang.String specification,
org.osgi.framework.BundleContext context)
throws ConfigurationException
specification - the specification class name to loadcontext - the bundle contextConfigurationException - if the class cannot be loaded correctly.public static int getPolicy(org.apache.felix.ipojo.metadata.Element dep)
throws ConfigurationException
dep - the Element describing the dependencyConfigurationException - if an unknown binding policy was described.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.