public static class OSGiBeanProperties.Convert
extends java.lang.Object
OSGiBeanProperties
annotation into a properties map. This is a helper class.| Constructor and Description |
|---|
OSGiBeanProperties.Convert() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
fromObject(java.lang.Object object)
Returns a properties map representing the object's OSGi bean properties.
|
static java.util.Map<java.lang.String,java.lang.Object> |
toMap(OSGiBeanProperties osgiBeanProperties)
Returns a properties map representing the
OSGiBeanProperties
instance. |
public static java.util.Map<java.lang.String,java.lang.Object> fromObject(java.lang.Object object)
object - the object that is possibly annotated with OSGiBeanPropertiesnull 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 java.util.Map<java.lang.String,java.lang.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.