public class MetadataFactory extends Object
ComponentMetadata
into Spring BeanDefinition
s (and vice
versa).Constructor and Description |
---|
MetadataFactory() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.beans.factory.config.BeanDefinition |
buildBeanDefinitionFor(ComponentMetadata metadata) |
static 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(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 ). |
static Set<String> |
filterIds(Set<String> components) |
public static org.springframework.beans.factory.config.BeanDefinition buildBeanDefinitionFor(ComponentMetadata metadata)
public static ComponentMetadata buildComponentMetadataFor(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 Collection<ComponentMetadata> buildComponentMetadataFor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
factory
and returns the appropriate OSGi 4.2 Blueprint
metadata
.factory
- Spring bean factoryCopyright © 2006–2015. All rights reserved.