Class ApplicationContextAccessor
- java.lang.Object
-
- org.craftercms.commons.spring.context.ApplicationContextAccessor
-
- org.craftercms.engine.util.spring.ApplicationContextAccessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class ApplicationContextAccessor extends org.craftercms.commons.spring.context.ApplicationContextAccessor
Bean that provide simple access to the Spring application context's beans: first it uses the site's own context. If not specified, it uses the default context. Used for example to access Spring beans from an FTL or a Groovy script.- Author:
- Alfonso Vásquez
-
-
Constructor Summary
Constructors Constructor Description ApplicationContextAccessor()
ApplicationContextAccessor(org.springframework.context.ApplicationContext actualApplicationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.context.ApplicationContext
getApplicationContext()
-