Class Annotations

java.lang.Object
org.apache.felix.scr.impl.inject.internal.Annotations

public class Annotations extends Object
  • Constructor Details

    • Annotations

      public Annotations()
  • Method Details

    • 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)