Class Annotations


  • public class Annotations
    extends Object
    • Constructor Detail

      • Annotations

        public Annotations()
    • Method Detail

      • isSingleElementAnnotation

        public static boolean isSingleElementAnnotation​(Class<?> clazz)
        Check whether the provided type is a single element annotation. A single element annotation has a method named "value" and all other annotation methods must have a default value.
        Parameters:
        clazz - The provided type
        Returns:
        true if the type is a single element annotation.
      • getPrefix

        public static String getPrefix​(Class<?> clazz)
      • toObject

        public static <T> T toObject​(Class<T> clazz,
                                     Map<String,​Object> props,
                                     org.osgi.framework.Bundle b,
                                     boolean supportsInterfaces)