Class AbstractPlugInLoader<T>

  • Direct Known Subclasses:
    MagellanPlugInLoader

    public abstract class AbstractPlugInLoader<T>
    extends java.lang.Object
    Loads all external modules that can be found. Please see com.eressea.extern.ExternalModule for documentation.
    Author:
    Ulrich Küster, Thoralf Rickert
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Collection<java.lang.Class<T>> getClassesFromPath​(java.lang.ClassLoader resLoader, java.lang.Class<T> externalModuleClass, java.lang.String path)  
      protected java.util.Collection<java.lang.Class<T>> getClassesFromPath​(java.lang.ClassLoader resLoader, java.lang.Class<T> externalModuleClass, java.lang.String path, java.lang.String packagePrefix, java.lang.String postfix)  
      abstract java.util.Collection<java.lang.Class<T>> getExternalModuleClasses​(java.util.Properties settings)
      Searches the resource paths for classes that implement the interface com.eressea.extern.ExternalModule.
      protected java.util.Collection<java.lang.Class<T>> getExternalModuleClasses​(java.util.Properties settings, java.lang.Class<T> externalModuleClass)  
      protected java.lang.String getLastCapitalizedString​(java.lang.String aString)
      delivers last capitalized String, e.g.: for input "StringBuffer.class" this function returns "Buffer.class"
      protected java.util.Collection<java.lang.String> getPathsFromClassPath()  
      protected java.util.Collection<java.lang.String> getPathsFromResourcePathClassLoader​(ResourcePathClassLoader resLoader, java.util.Properties settings)  
      • Methods inherited from class java.lang.Object

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

      • AbstractPlugInLoader

        public AbstractPlugInLoader()
    • Method Detail

      • getExternalModuleClasses

        public abstract java.util.Collection<java.lang.Class<T>> getExternalModuleClasses​(java.util.Properties settings)
        Searches the resource paths for classes that implement the interface com.eressea.extern.ExternalModule. Returns them as Collection of Class objects.
      • getPathsFromResourcePathClassLoader

        protected java.util.Collection<java.lang.String> getPathsFromResourcePathClassLoader​(ResourcePathClassLoader resLoader,
                                                                                             java.util.Properties settings)
      • getPathsFromClassPath

        protected java.util.Collection<java.lang.String> getPathsFromClassPath()
      • getClassesFromPath

        protected java.util.Collection<java.lang.Class<T>> getClassesFromPath​(java.lang.ClassLoader resLoader,
                                                                              java.lang.Class<T> externalModuleClass,
                                                                              java.lang.String path)
      • getClassesFromPath

        protected java.util.Collection<java.lang.Class<T>> getClassesFromPath​(java.lang.ClassLoader resLoader,
                                                                              java.lang.Class<T> externalModuleClass,
                                                                              java.lang.String path,
                                                                              java.lang.String packagePrefix,
                                                                              java.lang.String postfix)
      • getExternalModuleClasses

        protected java.util.Collection<java.lang.Class<T>> getExternalModuleClasses​(java.util.Properties settings,
                                                                                    java.lang.Class<T> externalModuleClass)
      • getLastCapitalizedString

        protected java.lang.String getLastCapitalizedString​(java.lang.String aString)
        delivers last capitalized String, e.g.: for input "StringBuffer.class" this function returns "Buffer.class"