Class Loader

  • Direct Known Subclasses:
    CommandLoader, ConfigurationLoader

    public abstract class Loader
    extends java.lang.Object
    This class is used for defining if a class is used for loading some value
    • Constructor Summary

      Constructors 
      Constructor Description
      Loader()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T load​(@NotNull java.lang.Class<T> clazz)
      Create a new instance of the class and class load(Object) using the this new class instance as parameter
      abstract <T> T load​(T obj)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Loader

        public Loader()
    • Method Detail

      • load

        @NotNull
        public <T> T load​(@NotNull
                          @NotNull java.lang.Class<T> clazz)
        Create a new instance of the class and class load(Object) using the this new class instance as parameter
        Type Parameters:
        T - The type of this class
        Parameters:
        clazz - The class to load
        Returns:
        The object loaded with load(Object)
      • load

        @NotNull
        public abstract <T> T load​(@NotNull
                                   T obj)