public class MetadataFactory
extends java.lang.Object
ComponentMetadata into Spring BeanDefinitions (and vice
versa).| Modifier and Type | Field and Description |
|---|---|
private static ComponentMetadataFactory |
blueprintFactory |
private static BeanDefinitionFactory |
springFactory |
| Constructor and Description |
|---|
MetadataFactory() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.beans.factory.config.BeanDefinition |
buildBeanDefinitionFor(ComponentMetadata metadata) |
static java.util.Collection<ComponentMetadata> |
buildComponentMetadataFor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
Inspects the given
factory and returns the appropriate OSGi 4.2 Blueprint
metadata. |
static ComponentMetadata |
buildComponentMetadataFor(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition beanDefinition)
Inspects the given
beanDefinition and returns the appropriate metadata (can be one of LocalComponentMetadata, ServiceExportComponentMetadata, or
ServiceReferenceComponentMetadata). |
(package private) static java.util.Collection<ComponentMetadata> |
buildNestedComponentMetadataFor(org.springframework.beans.factory.config.BeanDefinition beanDefinition)
Builds the Blueprint metadata based on the nested elements contained by the given bean definition.
|
static java.util.Set<java.lang.String> |
filterIds(java.util.Set<java.lang.String> components) |
private static final BeanDefinitionFactory springFactory
private static final ComponentMetadataFactory blueprintFactory
public static org.springframework.beans.factory.config.BeanDefinition buildBeanDefinitionFor(ComponentMetadata metadata)
public static ComponentMetadata buildComponentMetadataFor(java.lang.String name, org.springframework.beans.factory.config.BeanDefinition beanDefinition)
beanDefinition and returns the appropriate metadata (can be one of LocalComponentMetadata, ServiceExportComponentMetadata, or
ServiceReferenceComponentMetadata).name - bean namebeanDefinition - Spring bean definitionpublic static java.util.Collection<ComponentMetadata> buildComponentMetadataFor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
factory and returns the appropriate OSGi 4.2 Blueprint
metadata.factory - Spring bean factorystatic java.util.Collection<ComponentMetadata> buildNestedComponentMetadataFor(org.springframework.beans.factory.config.BeanDefinition beanDefinition)
beanDefinition - public static java.util.Set<java.lang.String> filterIds(java.util.Set<java.lang.String> components)