Class OSGiBeanProperties.Convert
Object
com.liferay.portal.kernel.spring.osgi.OSGiBeanProperties.Convert
- Enclosing class:
- OSGiBeanProperties
Converts OSGi bean properties from the
OSGiBeanProperties
annotation into a properties map. This is a helper class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromObject(Object object) Returns a properties map representing the object's OSGi bean properties.toMap(OSGiBeanProperties osgiBeanProperties) Returns a properties map representing theOSGiBeanPropertiesinstance.
-
Constructor Details
-
Convert
public Convert()
-
-
Method Details
-
fromObject
Returns a properties map representing the object's OSGi bean properties.- Parameters:
object- the object that is possibly annotated withOSGiBeanProperties- Returns:
- a properties map representing the object's OSGi bean
properties. The map will be
nullif the object is not annotated withOSGiBeanPropertiesor will be empty if the object is annotated withOSGiBeanPropertiesbut has no properties.
-
toMap
Returns a properties map representing theOSGiBeanPropertiesinstance.- Parameters:
osgiBeanProperties- the instance ofOSGiBeanPropertiesread for properties- Returns:
- a properties map representing the
OSGiBeanPropertiesinstance. The map will be empty if theOSGiBeanPropertiesinstance has no properties.
-