public class DefaultDataObjectDefinitionAutoDeployer extends Object implements ApplicationListener<ContextRefreshedEvent>, Ordered, ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
applicationContext |
protected DataObjectEngine |
dataObjectEngine |
static String |
DEFAULT_DEPLOYMENT_NAME |
static int |
DEFAULT_ORDER |
protected String |
deploymentName |
protected Collection<Resource> |
deploymentResources |
protected int |
order |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
DefaultDataObjectDefinitionAutoDeployer(Collection<Resource> deploymentResources,
DataObjectEngine dataObjectEngine) |
DefaultDataObjectDefinitionAutoDeployer(Collection<Resource> deploymentResources,
DataObjectEngine dataObjectEngine,
String deploymentName) |
Modifier and Type | Method and Description |
---|---|
void |
deployResources() |
int |
getOrder() |
void |
onApplicationEvent(ContextRefreshedEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setOrder(int order) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forPayload
public static final String DEFAULT_DEPLOYMENT_NAME
public static final int DEFAULT_ORDER
protected Collection<Resource> deploymentResources
protected DataObjectEngine dataObjectEngine
protected String deploymentName
protected ApplicationContext applicationContext
protected int order
public DefaultDataObjectDefinitionAutoDeployer(Collection<Resource> deploymentResources, DataObjectEngine dataObjectEngine)
public DefaultDataObjectDefinitionAutoDeployer(Collection<Resource> deploymentResources, DataObjectEngine dataObjectEngine, String deploymentName)
public void setOrder(int order)
public void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent
in interface ApplicationListener<ContextRefreshedEvent>
public void deployResources()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException