Package host.anzo.commons.utils
Class ClassUtils
java.lang.Object
host.anzo.commons.utils.ClassUtils
- Since:
- 12.09.2013
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ClassLoaderstatic <T> @Nullable Constructor<T> getConstructor(@NotNull Class<T> clazz, Class<?>... parameterTypes) getFieldValues(@NotNull Class<?> clazz) static @NotNull Collection<Method> getMethodsAnnotatedWith(Class<?> type, Class<? extends Annotation> annotation) static booleanhasConstructor(@NotNull Class<?> clazz, Class<?>... parameterTypes) static voidinitFieldsFromMap(Object object, @NotNull Map<String, Object> fieldValues) static @Nullable Class<?> lookupClassQuietly(String name) static ObjectsingletonInstance(Class<?> clazz) static ObjectsingletonInstanceMethod(Class<?> clazz, Method method)
-
Constructor Details
-
ClassUtils
public ClassUtils()
-
-
Method Details
-
singletonInstance
-
singletonInstanceMethod
-
getMethodsAnnotatedWith
@NotNull public static @NotNull Collection<Method> getMethodsAnnotatedWith(Class<?> type, Class<? extends Annotation> annotation) -
lookupClassQuietly
-
getFieldValues
-
initFieldsFromMap
-
getConstructor
@Nullable public static <T> @Nullable Constructor<T> getConstructor(@NotNull @NotNull Class<T> clazz, Class<?>... parameterTypes) -
hasConstructor
-
addJars
@NotNull public static @NotNull ClassLoader addJars(@NotNull @NotNull List<File> jarFiles) throws IOException - Throws:
IOException
-