AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Grails appjs12/16/2023 Retrieves an artefact by its logical property name. public GrailsClass getArtefactByLogicalPropertyName( type, logicalName)."Controller" name - The name of an artefact such as "BookController" Returns: The associated GrailsClass or null Since: 0.5 to get the GrailsClass for controller called "BookController" you pass the name "BookController" Parameters: artefactType - The type of artefact to retrieve, i.e. Gets the GrailsClass associated with the named artefact class public GrailsClass getArtefact( artefactType, name).Parameters: artefact - An overridable artefact Parameters: artefact - The artefact to add Returns: The supplied grails class for the artefact class Since: 0.5 "TagLib" artefactGrailsClass - The GrailsClass of the artefact. Registers a new artefact Parameters: artefactType - The type ID of the artefact, i.e. public GrailsClass addArtefact( artefactType, GrailsClass artefactGrailsClass).To internal structures, using the appropriate ArtefactHandler Returns: The new grails class for the artefact class Since: 0.5 A new GrailsClass will be created automatically and added "TagLib" artefactClass - The class of the artefact. GrailsClass addArtefact( artefactType, artefactClass).OPEN_SESSION_IN_VIEW_INTERCEPTOR_BEAN.Inherited Methods Methods inherited from class SetMappingContext(.model.MappingContext mappingContext)Ĭonfigures the .model.MappingContext for this application Sets the main Spring context for this application. RegisterArtefactHandler( ArtefactHandler handler) This method will refresh the entire application Rebuilds this Application throwing away the class loader and re-constructing it from the loaded Returns true if this application has been deployed as a WAR file Returns whether this GrailsApplication has been initialised or not. IsArtefactOfType( artefactType, className) IsArtefactOfType( artefactType, theClazz) Retrieves a Resource instance for the given Grails class or null it doesn't exist. Returns the Spring application context that contains this Returns the Spring context for this application. Returns the class loader instance for the Grails application. Retrieves a class for the given name within the GrailsApplication or returns null Returns the ArtefactHandler for the given class or null Returns the ArtefactHandler for the given type GetArtefactForFeature( artefactType, featureID) GetArtefactByLogicalPropertyName( type, logicalName) Retrieves all instances loaded by the Grails class loader Retrieves all instances considered Artefacts loaded by the Grails class loader The name of the class that provides configurationĪddArtefact( artefactType, artefactClass)ĪddArtefact( artefactType, GrailsClass artefactGrailsClass)Īdds the given artefact, attempting to determine type fromĪddOverridableArtefact( artefact)Īdds an artefact that can be overriden by user defined classesįired to inform the application when the oovy file changes. The id of the grails application within a bean context
0 Comments
Read More
Leave a Reply. |