|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
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()
ArtefactInfoGets you the array of all artefact Class(es), the original classes loaded that represent the artefacts.
getClasses in interface ArtefactInfopublic GrailsClass[] getGrailsClasses()
ArtefactInfoGets you the array of all artefact GrailsClass(es), the classes used to track information about the artefact.
getGrailsClasses in interface ArtefactInfopublic Map getClassesByName()
ArtefactInfoGets 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 ArtefactInfopublic Map getGrailsClassesByName()
ArtefactInfoGets 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 ArtefactInfopublic GrailsClass getGrailsClass(String name)
ArtefactInfoRetrieves the GrailsClass representing a named artefact.
From the GrailsClass you can get to the original artefact Class using getClazz().
getGrailsClass in interface ArtefactInfoname - The name of the artefact, i.e. "BookController"
public GrailsClass getGrailsClassByLogicalPropertyName(String logicalName)
ArtefactInfo
getGrailsClassByLogicalPropertyName in interface ArtefactInfologicalName - The logical name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||