Class Converters


  • public class Converters
    extends Object
    Utility class to convert Apache Sling features to OSGi feature and vice versa.
    • Constructor Detail

      • Converters

        public Converters()
    • Method Detail

      • convert

        public static org.osgi.service.feature.Feature convert​(Feature feature)
                                                        throws IOException
        Convert an Apache Sling feature into an OSGi feature
        Parameters:
        feature - The feature to convert
        Returns:
        The OSGi feature or null if feature is null
        Throws:
        IOException - If the conversion fails
      • convert

        public static Feature convert​(org.osgi.service.feature.Feature feature)
                               throws IOException
        Convert an OSGi feature into an Apache Sling feature
        Parameters:
        feature - The feature to convert
        Returns:
        The Apache Sling feature or null if feature is null
        Throws:
        IOException - If the conversion fails