Skip to content
Grails application that demonstrates AOP concepts
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
grails-app
src/groovy/com/joasgarcia/productiononlyannotation
test/integration/com/joasgarcia/productiononlyannotation
web-app/WEB-INF
wrapper
.classpath
.gitignore
.project
README.md
application.properties
grailsw
grailsw.bat

README.md

Grails application that demonstrates AOP concepts

#Requirements

  • Grails 2.4.5

#Features

  • ProductionOnlyInterceptor - Intercept all methods annotated with @ProductionOnly. It will only proceed execution if is production environment.

#How to run the project

  • grails <prod or dev> run-app
  • Browse to /message/productionOnly?message=<any message> for each environment and check different responses

#Running tests

  • grails prod test -integration > It'll fail
  • grails dev test-app -integration > It'll pass
You can’t perform that action at this time.