public class RootFoldersBootstrapper extends Object implements ApplicationListener<ContextRefreshedEvent>, Ordered, ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
applicationContext |
protected ContentEngine |
contentEngine |
protected Collection<String> |
extraRootFolderNames |
protected String |
templatesFolderName |
protected String |
topFolderName |
protected String |
workFolderName |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
RootFoldersBootstrapper(ContentEngine contentEngine,
String topFolderName,
String workFolderName,
String templatesFolderName,
Collection<String> extraRootFolderNames) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
onApplicationEvent(ContextRefreshedEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forPayload
protected ContentEngine contentEngine
protected String topFolderName
protected String workFolderName
protected String templatesFolderName
protected Collection<String> extraRootFolderNames
protected ApplicationContext applicationContext
public RootFoldersBootstrapper(ContentEngine contentEngine, String topFolderName, String workFolderName, String templatesFolderName, Collection<String> extraRootFolderNames)
public void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent
in interface ApplicationListener<ContextRefreshedEvent>
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException