public static class OSGiBeanProperties.Convert
extends Object
OSGiBeanProperties
annotation into a properties map. This is a helper class.Constructor and Description |
---|
Convert() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
fromObject(Object object)
Returns a properties map representing the object's OSGi bean
properties.
|
static Map<String,Object> |
toMap(OSGiBeanProperties osgiBeanProperties)
Returns a properties map representing the
OSGiBeanProperties
instance. |
public static Map<String,Object> fromObject(Object object)
object
- the object that is possibly annotated with OSGiBeanProperties
null
if the object
is not annotated with OSGiBeanProperties
or will be
empty if the object is annotated with OSGiBeanProperties
but has no properties.public static Map<String,Object> toMap(OSGiBeanProperties osgiBeanProperties)
OSGiBeanProperties
instance.osgiBeanProperties
- the instance of OSGiBeanProperties
read for propertiesOSGiBeanProperties
instance. The map will be empty if the OSGiBeanProperties
instance has no properties.