Class Module

    • Method Detail

      • getDependencies

        public List<Dependency> getDependencies()
        Specified by:
        getDependencies in interface IModule
        Returns:
        A list of dependencies for this module. The list may contain both libraries and other modules. The dependency graph must not have cycles.
      • getSourcePath

        public List<IDirectory> getSourcePath()
        Specified by:
        getSourcePath in interface IModule
        Returns:
        The path[s] having source files that should be exposed to this module.
      • setModuleTypeLoader

        public void setModuleTypeLoader​(ModuleTypeLoader modTypeLoader)
      • configurePaths

        public void configurePaths​(List<IDirectory> classpath,
                                   List<IDirectory> sourcePaths,
                                   List<IDirectory> backingSourcePaths)
        Description copied from interface: IModule
        Configure both source and Java classpaths of the module in a semi-automated way. First parameter is Java classpath. Second parameter is extended with all paths from Java classpath that are marked to have Gosu "sources" (through MANIFEST.MF with Contains-Sources header) and used as Gosu source path.
        Specified by:
        configurePaths in interface IModule
        Parameters:
        classpath - path to types not directly in the module's sources e.g., jar files containing .class files and other types/resources
        sourcePaths - path to the sources directly defined in this module; sources in this path are statically compiled as part of this module's build target e.g., ./src directories
        backingSourcePaths - path to sources corresponding with the classpath parameter (intended for IDE use)
      • getNativeModule

        public Object getNativeModule()
        Specified by:
        getNativeModule in interface IModule
        Returns:
        The module/project from the execution environment that corresponds with this logical module. For example, in Eclipse the native module is of type IJavaProject.
      • initializeTypeLoaders

        public void initializeTypeLoaders()
      • createExtensionTypeLoaders

        protected void createExtensionTypeLoaders()
      • createExtensionTypeloadersImpl

        protected void createExtensionTypeloadersImpl()
      • createStandardTypeLoaders

        protected void createStandardTypeLoaders()
      • maybeCreateModuleTypeLoader

        protected void maybeCreateModuleTypeLoader()
      • getTypeLoaders

        public <T extends ITypeLoaderList<? extends T> getTypeLoaders​(Class<T> typeLoaderClass)
        Description copied from interface: IModule
        Returns typeloaders of the given class that are local to this module as well as such typeloaders from dependent modules.
        Specified by:
        getTypeLoaders in interface IModule
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getName

        public String getName()
        Specified by:
        getName in interface IModule
        Returns:
        A unique name relative to all other modules in a given execution environment.
      • getAdditionalSourceRoots

        protected List<IDirectory> getAdditionalSourceRoots()