Groovy Documentation

## org.codehaus.groovy.grails.commons.spring
[Java] Class GrailsResourceHolder

    java.lang.Object
      org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder

    public class GrailsResourceHolder

Holds references to all the Grails resource instances to support class reloading.

Authors:
  Graeme Rocher

Field Summary
`static java.lang.String` | `APPLICATION_CONTEXT_ID`

Method Summary
`java.lang.String` | `getClassName(Resource resource)` Retrieves the class name of the specified resource.
`Resource[]` | `getResources()`
`void` | `setResources(Resource[] resources)`

Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Field Detail

### APPLICATION_CONTEXT_ID

    public static final java.lang.String APPLICATION_CONTEXT_ID

Method Detail

### getClassName

    public java.lang.String getClassName(Resource resource)

  Retrieves the class name of the specified resource.
  Parameters:
    resource
  Returns:
    the name

### getResources

    public Resource[] getResources()

### setResources

    public void setResources(Resource[] resources)

Groovy Documentation