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 java.lang.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(java.lang.Object from,
org.osgi.service.blueprint.container.ReifiedType type)
|
java.lang.Object |
convert(java.lang.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(java.lang.Object from,
org.osgi.service.blueprint.container.ReifiedType type)
- Specified by:
canConvert
in interface org.osgi.service.blueprint.container.Converter
convert
public java.lang.Object convert(java.lang.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-2011 Apache Software Foundation. All Rights Reserved.