com.liferay.portal.kernel.spring.osgi
Class OSGiBeanProperties.Convert
java.lang.Object
com.liferay.portal.kernel.spring.osgi.OSGiBeanProperties.Convert
- Enclosing class:
- OSGiBeanProperties
public static class OSGiBeanProperties.Convert
- extends Object
Converts OSGi bean properties from the OSGiBeanProperties
annotation into a properties map. This is a helper class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiBeanProperties.Convert
public OSGiBeanProperties.Convert()
fromObject
public static Map<String,Object> fromObject(Object object)
- Returns a properties map representing the object's OSGi bean properties.
- Parameters:
object - the object that is possibly annotated with OSGiBeanProperties
- Returns:
- a properties map representing the object's OSGi bean
properties. The map will be
null if the object
is not annotated with OSGiBeanProperties or will be
empty if the object is annotated with OSGiBeanProperties but has no properties.
toMap
public static Map<String,Object> toMap(OSGiBeanProperties osgiBeanProperties)
- Returns a properties map representing the
OSGiBeanProperties
instance.
- Parameters:
osgiBeanProperties - the instance of OSGiBeanProperties
read for properties
- Returns:
- a properties map representing the
OSGiBeanProperties
instance. The map will be empty if the OSGiBeanProperties instance has no properties.