Package gw.internal.gosu.module
Class Module
- java.lang.Object
-
- gw.internal.gosu.module.Module
-
- All Implemented Interfaces:
IModule
- Direct Known Subclasses:
GlobalModule
,JreModule
public class Module extends Object implements IModule
-
-
Field Summary
-
Fields inherited from interface gw.lang.reflect.module.IModule
CONFIG_RESOURCE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description Module(IExecutionEnvironment execEnv, String strName)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.module.IModule
configurePaths
-
-
-
-
Constructor Detail
-
Module
public Module(IExecutionEnvironment execEnv, String strName)
-
-
Method Detail
-
getExecutionEnvironment
public final IExecutionEnvironment getExecutionEnvironment()
- Specified by:
getExecutionEnvironment
in interfaceIModule
-
getFileRepository
public IFileSystemGosuClassRepository getFileRepository()
- Specified by:
getFileRepository
in interfaceIModule
-
setDependencies
public void setDependencies(List<Dependency> newDeps)
- Specified by:
setDependencies
in interfaceIModule
-
getDependencies
public List<Dependency> getDependencies()
- Specified by:
getDependencies
in interfaceIModule
-
addDependency
public void addDependency(Dependency d)
- Specified by:
addDependency
in interfaceIModule
-
removeDependency
public void removeDependency(Dependency d)
- Specified by:
removeDependency
in interfaceIModule
-
getSourcePath
public List<IDirectory> getSourcePath()
- Specified by:
getSourcePath
in interfaceIModule
-
setSourcePath
public void setSourcePath(List<IDirectory> sourcePaths)
- Specified by:
setSourcePath
in interfaceIModule
-
getExcludedPaths
public List<IDirectory> getExcludedPaths()
- Specified by:
getExcludedPaths
in interfaceIModule
-
setExcludedPaths
public void setExcludedPaths(List<IDirectory> paths)
- Specified by:
setExcludedPaths
in interfaceIModule
-
getModuleClassLoader
public ClassLoader getModuleClassLoader()
- Specified by:
getModuleClassLoader
in interfaceIModule
-
disposeLoader
public void disposeLoader()
- Specified by:
disposeLoader
in interfaceIModule
-
getOutputPath
public IDirectory getOutputPath()
- Specified by:
getOutputPath
in interfaceIModule
-
getModuleTypeLoader
public ModuleTypeLoader getModuleTypeLoader()
- Specified by:
getModuleTypeLoader
in interfaceIModule
-
setModuleTypeLoader
public void setModuleTypeLoader(ModuleTypeLoader modTypeLoader)
-
configurePaths
public void configurePaths(List<IDirectory> classpath, List<IDirectory> sourcePaths, List<IDirectory> backingSourcePaths)
- Specified by:
configurePaths
in interfaceIModule
-
getJavaClassPath
public List<IDirectory> getJavaClassPath()
- Specified by:
getJavaClassPath
in interfaceIModule
-
setJavaClassPath
public void setJavaClassPath(List<IDirectory> classpath)
- Specified by:
setJavaClassPath
in interfaceIModule
-
getBackingSourcePath
public List<IDirectory> getBackingSourcePath()
- Specified by:
getBackingSourcePath
in interfaceIModule
-
setBackingSourcePath
public void setBackingSourcePath(List<IDirectory> backingSourcePath)
- Specified by:
setBackingSourcePath
in interfaceIModule
-
getNativeModule
public Object getNativeModule()
- Specified by:
getNativeModule
in interfaceIModule
-
setNativeModule
public void setNativeModule(INativeModule nativeModule)
- Specified by:
setNativeModule
in interfaceIModule
-
initializeTypeLoaders
public void initializeTypeLoaders()
-
createExtensionTypeLoaders
protected void createExtensionTypeLoaders()
-
createExtensionTypeloadersImpl
protected void createExtensionTypeloadersImpl()
-
createStandardTypeLoaders
protected void createStandardTypeLoaders()
-
maybeCreateModuleTypeLoader
protected void maybeCreateModuleTypeLoader()
-
getModuleTraversalList
public final IModule[] getModuleTraversalList()
- Specified by:
getModuleTraversalList
in interfaceIModule
-
getTypeLoaders
public <T extends ITypeLoader> List<? extends T> getTypeLoaders(Class<T> typeLoaderClass)
- Specified by:
getTypeLoaders
in interfaceIModule
-
getAdditionalSourceRoots
protected List<IDirectory> getAdditionalSourceRoots()
-
-