public class MandatoryImporterDependencyFactory extends java.lang.Object implements OsgiServiceDependencyFactory
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
AVAILABILITY_PROP |
private static java.lang.String |
FILTER_PROP |
private static java.lang.String |
INTERFACES_PROP |
private static org.apache.commons.logging.Log |
log
logger
|
private static java.lang.String |
SERVICE_BEAN_NAME_PROP |
| Constructor and Description |
|---|
MandatoryImporterDependencyFactory() |
| Modifier and Type | Method and Description |
|---|---|
private org.osgi.framework.Filter |
createFilter(java.lang.String[] intfs,
java.lang.String serviceBeanName,
java.lang.String filter) |
private java.lang.String[] |
getInterfaces(org.springframework.beans.PropertyValue pv) |
java.util.Collection<OsgiServiceDependency> |
getServiceDependencies(org.osgi.framework.BundleContext bundleContext,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Returns the OSGi service dependencies applying for the given bean factory
running inside the given bundle context.
|
private java.lang.String |
getString(org.springframework.beans.PropertyValue pv) |
private boolean |
isLazy(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
java.lang.String beanName) |
private static final org.apache.commons.logging.Log log
private static final java.lang.String AVAILABILITY_PROP
private static final java.lang.String INTERFACES_PROP
private static final java.lang.String SERVICE_BEAN_NAME_PROP
private static final java.lang.String FILTER_PROP
public java.util.Collection<OsgiServiceDependency> getServiceDependencies(org.osgi.framework.BundleContext bundleContext, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException, org.osgi.framework.InvalidSyntaxException, org.osgi.framework.BundleException
OsgiServiceDependencyFactoryOsgiServiceDependency objects.getServiceDependencies in interface OsgiServiceDependencyFactorybundleContext - bundlebeanFactory - the bean factory used by the application contextorg.springframework.beans.BeansException - in case of factory errorsorg.osgi.framework.InvalidSyntaxException - in case of OSGi filters errorsorg.osgi.framework.BundleException - in case of OSGi bundle errorsprivate org.osgi.framework.Filter createFilter(java.lang.String[] intfs,
java.lang.String serviceBeanName,
java.lang.String filter)
private java.lang.String getString(org.springframework.beans.PropertyValue pv)
private java.lang.String[] getInterfaces(org.springframework.beans.PropertyValue pv)
private boolean isLazy(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
java.lang.String beanName)