Class ClassUtils

java.lang.Object
host.anzo.commons.utils.ClassUtils

public class ClassUtils extends Object
Since:
12.09.2013
  • Constructor Details

    • ClassUtils

      public ClassUtils()
  • Method Details

    • singletonInstance

      public static Object singletonInstance(Class<?> clazz)
    • singletonInstanceMethod

      public static Object singletonInstanceMethod(Class<?> clazz, Method method)
    • getMethodsAnnotatedWith

      @NotNull public static @NotNull Collection<Method> getMethodsAnnotatedWith(Class<?> type, Class<? extends Annotation> annotation)
    • lookupClassQuietly

      @Nullable public static @Nullable Class<?> lookupClassQuietly(String name)
    • getFieldValues

      @NotNull public static @NotNull Map<String,Object> getFieldValues(@NotNull @NotNull Class<?> clazz)
    • initFieldsFromMap

      public static void initFieldsFromMap(Object object, @NotNull @NotNull Map<String,Object> fieldValues)
    • getConstructor

      @Nullable public static <T> @Nullable Constructor<T> getConstructor(@NotNull @NotNull Class<T> clazz, Class<?>... parameterTypes)
    • hasConstructor

      public static boolean hasConstructor(@NotNull @NotNull Class<?> clazz, Class<?>... parameterTypes)
    • addJars

      @NotNull public static @NotNull ClassLoader addJars(@NotNull @NotNull List<File> jarFiles) throws IOException
      Throws:
      IOException