public interface GriffonArtifact extends ThreadingHandler, MVCHandler, ResourceHandler
Griffon artifacts are usually placed under the special "griffon-app" directory that every application has. They are also grouped together in in a subdirectory that clearly identifies their nature. For example "griffon-app/controllers" contains all Controller artifacts.
Implementing this interface for a custom artifact definition is highly recommended but not enforced.
| Modifier and Type | Method and Description |
|---|---|
GriffonApplication |
getApplication()
Reference to the current
GriffonApplication |
GriffonClass |
getGriffonClass()
Returns the GriffonClass associated with this artifact.
|
org.slf4j.Logger |
getLog()
Returns a Logger instance suitable for this Artifact.
|
Class<? extends GriffonArtifact> |
getTypeClass()
Returns the
Class of this artifact. |
isUIThread, runFuture, runFuture, runInsideUIAsync, runInsideUISync, runInsideUISync, runOutsideUI, runOutsideUIAsynccreateMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, destroyMVCGroup, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroupclassloader, getResourceAsStream, getResourceAsURL, getResourcesGriffonApplication getApplication()
GriffonApplication@Nonnull GriffonClass getGriffonClass()
@Nonnull Class<? extends GriffonArtifact> getTypeClass()
Class of this artifact.Class of this artifact.@Nonnull org.slf4j.Logger getLog()
The Logger is configured with the following prefix 'griffon.app.<type>' where <type> stands for the artifact's type.
Example: the Logger for class com.acme.SampleController will be configured for 'griffon.app.controller.com.acme.SampleController'.