All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.plugins.content.2.6.1.source-code.ContentBootStrap.groovy Maven / Gradle / Ivy

Go to download

A plugin used to manage contents like static pages, menus etc. at one place. Also provides shortened and user friendly urls.

There is a newer version: 2.6.2
Show newest version
/*
 * Copyright (c) 2011, CauseCode Technologies Pvt Ltd, India.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or
 * without modification, are not permitted.
 */
import com.causecode.marshaller.BlogDomainMarshaller
import com.causecode.marshaller.MenuItemMarshaller
import grails.converters.JSON
import grails.core.GrailsApplication

/**
 * The class is used for App initialization settings.
 */
class ContentBootStrap {

    GrailsApplication grailsApplication

    def init = { servletContext ->
        log.debug 'Content Bootstrap started executing ..'

        JSON.registerObjectMarshaller(new BlogDomainMarshaller())
        JSON.registerObjectMarshaller(new MenuItemMarshaller())

        log.debug 'Content Bootstrap finished executing.'
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy