/**
* ApplicationHelper.
*
* @version 16.03.30
* @since 16.03.30
*/
public class ApplicationHelper {
/**
* Handle to the current application instance.
*
* @since 16.03.30
*/
private Application application;
/**
* Build a basic instance with injected dependency.
*
* @param application The current application instance
* @since 16.03.30
*/
@Inject
public ApplicationHelper(final Application application) {
this.application = application;
}
/**
* Get the current application instance.
*
* @return The current application
* @see Application
* @since 16.03.30
*/
public Application getApplication() {
return this.application;
}
}
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/494da14f-f281-42b4-920f-9c4aea5d1ada%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
@Injectplay.Application application;2) Tried proxying play.api.Application to support a circular dependency, but circular proxies are disabled. at play.api.DefaultApplication.class(Unknown Source) while locating play.api.DefaultApplication while locating play.api.Application for parameter 0 at play.DefaultApplication.<init>(Unknown Source) at play.DefaultApplication.class(Unknown Source) while locating play.DefaultApplication while locating play.Application for field at controllers.ApiV1.application(Unknown Source) while locating controllers.ApiV1 for parameter 3 at router.Routes.<init>(Unknown Source) while locating router.Routes while locating play.api.inject.RoutesProvider while locating play.api.routing.Router for parameter 0 at play.api.http.JavaCompatibleHttpRequestHandler.<init>(Unknown Source) while locating play.api.http.JavaCompatibleHttpRequestHandler while locating play.api.http.HttpRequestHandler for parameter 4 at play.api.DefaultApplication.<init>(Unknown Source) at play.api.DefaultApplication.class(Unknown Source) while locating play.api.DefaultApplication while locating play.api.Application
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/bebeb08d-8190-4816-bfe5-959bc0f97f24%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/aa126cf6-d51f-49d0-a180-5e23c8dde109%40googlegroups.com.