Package org.apache.felix.scr.impl.inject
Class Annotations
- java.lang.Object
-
- org.apache.felix.scr.impl.inject.Annotations
-
public class Annotations extends Object
-
-
Constructor Summary
Constructors Constructor Description Annotations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getPrefix(Class<?> clazz)
static boolean
isSingleElementAnnotation(Class<?> clazz)
Check whether the provided type is a single element annotation.static <T> T
toObject(Class<T> clazz, Map<String,Object> props, org.osgi.framework.Bundle b, boolean supportsInterfaces)
-
-
-
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.
-
-