Vav1lon / GFlyway2

Flyway 2 plugin for Grails
GNU General Public License v2.0
2 stars 5 forks source link

How to get GFlyway instance fully configured to use it programatically #7

Open rblazquez opened 9 years ago

rblazquez commented 9 years ago

Hello,

Im interested into get the fully configured GFlyway to use it programatically.

I've tried with

GFlyway f = (GFlyway) grailsApplication.mainContext.getBean("gFlyway");

But i get NoSuchBeanDefinitionException: No bean named 'gFlyway' is defined

I am using a wrong name or is the bean no available in the spring context?

Thanks