public interface SetupAction
Implementations need to be thread safe, as multiple threads can be setting up and tearing down contexts at any given time.
| Modifier and Type | Method and Description |
|---|---|
Set<org.jboss.msc.service.ServiceName> |
dependencies()
Any dependencies that this action requires
|
int |
priority()
Higher priority setup actions run first
|
void |
setup(Map<String,Object> properties)
Sets up the context.
|
void |
teardown(Map<String,Object> properties)
Tears down the context that was set up and restores the previous context state.
|
void setup(Map<String,Object> properties)
teardown(java.util.Map) method will not be called, so this
method should be implmeneted in an atomic manner.properties - data that a caller may provide to help configure the behavior of the action. May be null. An implementation
that expects certain properties should either require it is only used in cases where those properties will be provided,
or do something reasonable (e.g. become a no-op) if they are not provided.void teardown(Map<String,Object> properties)
properties - data that a caller may provide to help configure the behavior of the action. May be null. An implementation
that expects certain properties should either require it is only used in cases where those properties will be provided,
or do something reasonable (e.g. become a no-op) if they are not provided.int priority()
Set<org.jboss.msc.service.ServiceName> dependencies()
null.Copyright © 2021 JBoss by Red Hat. All rights reserved.