public class ModuleDefinition extends java.lang.Object implements java.lang.Comparable<ModuleDefinition>
Constructor and Description |
---|
ModuleDefinition(java.lang.String name,
ModuleType moduleType) |
ModuleDefinition(java.lang.String name,
ModuleType type,
org.springframework.core.io.Resource resource) |
ModuleDefinition(java.lang.String name,
ModuleType type,
org.springframework.core.io.Resource resource,
java.net.URL[] classpath) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ModuleDefinition other)
Compares the module definitions using the name of the
ModuleDefinition |
java.net.URL[] |
getClasspath() |
java.util.List<ModuleDefinition> |
getComposedModuleDefinitions() |
java.lang.String |
getDefinition() |
java.lang.String |
getName() |
org.springframework.core.io.Resource |
getResource() |
ModuleType |
getType() |
boolean |
isComposed()
Determine if this a composed module
|
void |
setComposedModuleDefinitions(java.util.List<ModuleDefinition> composedModuleDefinitions)
Set the list of composed modules if this is a composite module, can not be null
|
void |
setDefinition(java.lang.String definition) |
java.lang.String |
toString() |
public ModuleDefinition(java.lang.String name, ModuleType moduleType)
public ModuleDefinition(java.lang.String name, ModuleType type, org.springframework.core.io.Resource resource)
public ModuleDefinition(java.lang.String name, ModuleType type, org.springframework.core.io.Resource resource, java.net.URL[] classpath)
public boolean isComposed()
public void setComposedModuleDefinitions(java.util.List<ModuleDefinition> composedModuleDefinitions)
composedModuleDefinitions
- list of composed modulespublic java.util.List<ModuleDefinition> getComposedModuleDefinitions()
public java.lang.String getName()
public ModuleType getType()
public org.springframework.core.io.Resource getResource()
public java.lang.String getDefinition()
public void setDefinition(java.lang.String definition)
public java.net.URL[] getClasspath()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ModuleDefinition other)
ModuleDefinition
compareTo
in interface java.lang.Comparable<ModuleDefinition>