Created
September 17, 2014 19:18
-
-
Save hitenpratap/cacd9dfcae4209416583 to your computer and use it in GitHub Desktop.
Prevent Grails Circular Service Dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.context.* | |
class SecondService implements ApplicationContextAware { | |
ApplicationContext applicationContext | |
def firstServiceBean | |
def getFirstServiceBean() { | |
firstServiceBean = applicationContext.getBean("firstService") | |
firstServiceBean.doStuff() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment