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.
|
Logger |
getLog()
Returns a Logger instance suitable for this Artifact.
|
isUIThread, runFuture, runFuture, runInsideUIAsync, runInsideUISync, runOutsideUI
buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, destroyMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup
classloader, getResourceAsStream, getResourceAsURL, getResources
GriffonApplication getApplication()
GriffonApplication
@Nonnull GriffonClass getGriffonClass()
@Nonnull 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'.