|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.commons.DefaultArtefactInfo
public class DefaultArtefactInfo
Mutable holder of artefact info
Field Summary | |
---|---|
Map |
handlerData
|
Constructor Summary | |
---|---|
DefaultArtefactInfo()
|
Method Summary | |
---|---|
void |
addGrailsClass(GrailsClass artefactClass)
Call to add a new class to this info object. |
void |
addOverridableGrailsClass(GrailsClass artefactGrailsClass)
|
Class[] |
getClasses()
Gets you the array of all artefact Class(es), the original classes loaded that represent the artefacts. |
Map |
getClassesByName()
Gets you the unmodifiable Map of all artefact Class(es), the actual classes implementing the artefact. |
GrailsClass |
getGrailsClass(String name)
Retrieves the GrailsClass representing a named artefact. |
GrailsClass |
getGrailsClassByLogicalPropertyName(String logicalName)
Retrieves a Grails class by its logical property name. |
GrailsClass[] |
getGrailsClasses()
Gets you the array of all artefact GrailsClass(es), the classes used to track information about the artefact. |
Map |
getGrailsClassesByName()
Gets you the unmodifiable Map of all artefact GrailsClass(es), the classes that store extra state relating to the artefact. |
void |
updateComplete()
Refresh the arrays generated from the maps |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Map handlerData
Constructor Detail |
---|
public DefaultArtefactInfo()
Method Detail |
---|
public void addGrailsClass(GrailsClass artefactClass)
Call to add a new class to this info object.
You must call refresh() later to update the arrays
artefactClass
- public void updateComplete()
public Class[] getClasses()
ArtefactInfo
Gets you the array of all artefact Class(es), the original classes loaded that represent the artefacts.
getClasses
in interface ArtefactInfo
public GrailsClass[] getGrailsClasses()
ArtefactInfo
Gets you the array of all artefact GrailsClass(es), the classes used to track information about the artefact.
getGrailsClasses
in interface ArtefactInfo
public Map getClassesByName()
ArtefactInfo
Gets you the unmodifiable Map of all artefact Class(es), the actual classes implementing the artefact.
The Map is keyed by class name, i.e. "BookController"
getClassesByName
in interface ArtefactInfo
public Map getGrailsClassesByName()
ArtefactInfo
Gets you the unmodifiable Map of all artefact GrailsClass(es), the classes that store extra state relating to the artefact.
The Map is keyed by class name, i.e. "BookController"
getGrailsClassesByName
in interface ArtefactInfo
public GrailsClass getGrailsClass(String name)
ArtefactInfo
Retrieves the GrailsClass representing a named artefact.
From the GrailsClass you can get to the original artefact Class using getClazz().
getGrailsClass
in interface ArtefactInfo
name
- The name of the artefact, i.e. "BookController"
public GrailsClass getGrailsClassByLogicalPropertyName(String logicalName)
ArtefactInfo
getGrailsClassByLogicalPropertyName
in interface ArtefactInfo
logicalName
- The logical name
public void addOverridableGrailsClass(GrailsClass artefactGrailsClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |