org.apache.karaf.jaas.modules.properties
Class PropertiesConverter
java.lang.Object
org.apache.karaf.jaas.modules.properties.PropertiesConverter
- All Implemented Interfaces:
- org.osgi.service.blueprint.container.Converter
public class PropertiesConverter
- extends Object
- implements org.osgi.service.blueprint.container.Converter
Custom converter to transform a string into a Properties instance.
(to avoid removing \ from the values as is done by the default blueprint converter)
|
Method Summary |
boolean |
canConvert(Object from,
org.osgi.service.blueprint.container.ReifiedType type)
|
Object |
convert(Object from,
org.osgi.service.blueprint.container.ReifiedType type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesConverter
public PropertiesConverter()
canConvert
public boolean canConvert(Object from,
org.osgi.service.blueprint.container.ReifiedType type)
- Specified by:
canConvert in interface org.osgi.service.blueprint.container.Converter
convert
public Object convert(Object from,
org.osgi.service.blueprint.container.ReifiedType type)
throws Exception
- Specified by:
convert in interface org.osgi.service.blueprint.container.Converter
- Throws:
Exception
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.