Class Classes
- java.lang.Object
-
- com.github.mjeanroy.springmvc.view.mustache.commons.reflection.Classes
-
public final class Classes extends Object
Commons static class utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TgetAnnotationValue(org.springframework.core.type.AnnotationMetadata importingClassMetadata, Class<?> annotationClass, String name, T defaultValue)Get annotation method value.static booleanisPresent(String klass)Check that a given class is available on classpath.
-
-
-
Method Detail
-
isPresent
public static boolean isPresent(String klass)
Check that a given class is available on classpath.- Parameters:
klass- Class name.- Returns:
- True if class is available, false otherwise.
-
getAnnotationValue
public static <T> T getAnnotationValue(org.springframework.core.type.AnnotationMetadata importingClassMetadata, Class<?> annotationClass, String name, T defaultValue)Get annotation method value.- Type Parameters:
T- Type of returned value.- Parameters:
importingClassMetadata- Metadata.annotationClass- Annotation class to look for.name- Name of method.defaultValue- Default value if original value is null.- Returns:
- Annotation value, or default value if original value is null.
-
-