String appName = grailsApplication.metadata['app.name']
However, I recently needed to extract the application-name from within an implementation of the
HttpSessionListener interface (which does not support inject of the grailsApplication object). This was part of resource releasing once following a session timeout.Access to the same object can be achieved from within a
SessionListener via the ApplicationHolder class:
import org.codehaus.groovy.grails.commons.ApplicationHolder
...
String appName = ApplicationHolder.getApplication().metadata['app.name']

日本av女優sex383線上娛樂場sex520net情趣商品s383情色大網咖寶貝視訊ut視訊聊天室s101成人大喇叭s383情色大網咖qq美美色網影片QQ美女視訊秀ol線上免費影片kk124視訊俱樂部qk999成人論壇免費視訊聊天室mm賓館jp成人網色情短片線上做愛線上做愛小弟弟影片網交友速配網
ReplyDelete