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 theOSGiBeanProperties
instance.
-
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
null
if the object is not annotated withOSGiBeanProperties
or will be empty if the object is annotated withOSGiBeanProperties
but has no properties.
-
toMap
Returns a properties map representing theOSGiBeanProperties
instance.- Parameters:
osgiBeanProperties
- the instance ofOSGiBeanProperties
read for properties- Returns:
- a properties map representing the
OSGiBeanProperties
instance. The map will be empty if theOSGiBeanProperties
instance has no properties.
-