Liferay 7.0-ce-b4

com.liferay.portal.kernel.spring.osgi
Class OSGiBeanProperties.Convert

java.lang.Object
  extended by 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.


Constructor Summary
OSGiBeanProperties.Convert()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiBeanProperties.Convert

public OSGiBeanProperties.Convert()
Method Detail

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.

Liferay 7.0-ce-b4