Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.grails.commons
Class DefaultArtefactInfo

    java.lang.Object
      org.codehaus.groovy.grails.commons.DefaultArtefactInfo

All Implemented Interfaces:
  ArtefactInfo

    public class DefaultArtefactInfo

extends Object
implements ArtefactInfo

Mutable holder of artefact info

Author:
  Marc Palmer (marc@anyware.co.uk), Graeme Rocher

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

### handlerData

    public Map handlerData

Constructor Detail

### DefaultArtefactInfo

    public DefaultArtefactInfo()

Method Detail

### addGrailsClass

    public void addGrailsClass(GrailsClass artefactClass)

  Call to add a new class to this info object.

  You must call refresh() later to update the arrays

  Parameters:
    `artefactClass` -

### updateComplete

    public void updateComplete()

  Refresh the arrays generated from the maps

### getClasses

    public Class[] getClasses()

  Description copied from interface: `ArtefactInfo`

  Gets you the array of all artefact Class(es), the original classes loaded that represent the artefacts.

  Specified by:
    `getClasses` in interface `ArtefactInfo`
  Returns:
    The array, which may be empty but never null.

### getGrailsClasses

    public GrailsClass[] getGrailsClasses()

  Description copied from interface: `ArtefactInfo`

  Gets you the array of all artefact GrailsClass(es), the classes used to track information about the artefact.

  Specified by:
    `getGrailsClasses` in interface `ArtefactInfo`
  Returns:
    The array, which may be empty but never null.

### getClassesByName

    public Map getClassesByName()

  Description copied from interface: `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"

  Specified by:
    `getClassesByName` in interface `ArtefactInfo`
  Returns:
    The Map, which may be empty but never null.

### getGrailsClassesByName

    public Map getGrailsClassesByName()

  Description copied from interface: `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"

  Specified by:
    `getGrailsClassesByName` in interface `ArtefactInfo`
  Returns:
    The Map, which may be empty but never null.

### getGrailsClass

    public GrailsClass getGrailsClass(String name)

  Description copied from interface: `ArtefactInfo`

  Retrieves the GrailsClass representing a named artefact.

  From the GrailsClass you can get to the original artefact Class using getClazz().

  Specified by:
    `getGrailsClass` in interface `ArtefactInfo`
  Parameters:
    `name` - The name of the artefact, i.e. "BookController"
  Returns:
    The Map, which may be empty but never null.

### getGrailsClassByLogicalPropertyName

    public GrailsClass getGrailsClassByLogicalPropertyName(String logicalName)

  Description copied from interface: `ArtefactInfo`
  Retrieves a Grails class by its logical property name. For example "BookController" would be "book"

  Specified by:
    `getGrailsClassByLogicalPropertyName` in interface `ArtefactInfo`
  Parameters:
    `logicalName` - The logical name
  Returns:
    A GrailsClass or null

### addOverridableGrailsClass

    public void addOverridableGrailsClass(GrailsClass artefactGrailsClass)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2005-2009 The Grails project