Class PropertiesConverter

java.lang.Object
ddf.ldap.ldaplogin.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)
  • Constructor Details

    • PropertiesConverter

      public PropertiesConverter()
  • Method Details

    • 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