org.springframework.osgi.blueprint.reflect
Class MetadataFactory
java.lang.Object
org.springframework.osgi.blueprint.reflect.MetadataFactory
public class MetadataFactory
- extends Object
Adapter factory that translates Blueprint ComponentMetadata
into Spring BeanDefinition
s (and vice
versa).
- Author:
- Adrian Colyer, Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataFactory
public MetadataFactory()
buildBeanDefinitionFor
public static BeanDefinition buildBeanDefinitionFor(ComponentMetadata metadata)
buildComponentMetadataFor
public static ComponentMetadata buildComponentMetadataFor(String name,
BeanDefinition beanDefinition)
- Inspects the given
beanDefinition
and returns the appropriate metadata
(can be one of LocalComponentMetadata
, ServiceExportComponentMetadata
, or
ServiceReferenceComponentMetadata
).
- Parameters:
name
- bean namebeanDefinition
- Spring bean definition
- Returns:
- an OSGi component metadata.
buildComponentMetadataFor
public static Collection<ComponentMetadata> buildComponentMetadataFor(ConfigurableListableBeanFactory factory)
- Inspects the given
factory
and returns the appropriate OSGi 4.2 Blueprint
metadata
.
- Parameters:
factory
- Spring bean factory
- Returns:
- collection of blueprint metadata
filterIds
public static Set<String> filterIds(Set<String> components)
Copyright © 2006-2009 Spring Framework. All Rights Reserved.