Class Annotations

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

public class Annotations extends Object
  • Field Details

    • ANNOTATION_METHODS

      private static final Set<Method> ANNOTATION_METHODS
      Capture all methods defined by the annotation interface
    • VALUE_METHOD

      private static final String VALUE_METHOD
      Constant for the single element method
      See Also:
    • PREFIX_CONSTANT

      private static final String PREFIX_CONSTANT
      Constant for the prefix constant.
      See Also:
    • p

      private static final Pattern p
  • 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)
    • extractSubMaps

      private static Map<String,List<Map<String,Object>>> extractSubMaps(Collection<String> keys, Map<String,Object> map)
    • coerceToArray

      private static Object coerceToArray(Class<?> componentType, Object raw, org.osgi.framework.Bundle bundle)
    • mapIdentifierToKey

      static String mapIdentifierToKey(String name)
    • mapTypeNameToKey

      static String mapTypeNameToKey(String name)