Class Annotations
java.lang.Object
org.apache.felix.scr.impl.inject.internal.Annotations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Object
coerceToArray
(Class<?> componentType, Object raw, org.osgi.framework.Bundle bundle) extractSubMaps
(Collection<String> keys, Map<String, Object> map) static String
static boolean
isSingleElementAnnotation
(Class<?> clazz) Check whether the provided type is a single element annotation.(package private) static String
mapIdentifierToKey
(String name) (package private) static String
mapTypeNameToKey
(String name) static <T> T
toObject
(Class<T> clazz, Map<String, Object> props, org.osgi.framework.Bundle b, boolean supportsInterfaces)
-
Field Details
-
ANNOTATION_METHODS
Capture all methods defined by the annotation interface -
VALUE_METHOD
Constant for the single element method- See Also:
-
PREFIX_CONSTANT
Constant for the prefix constant.- See Also:
-
p
-
-
Constructor Details
-
Annotations
public Annotations()
-
-
Method Details
-
isSingleElementAnnotation
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
-
toObject
-
extractSubMaps
-
coerceToArray
-
mapIdentifierToKey
-
mapTypeNameToKey
-