public interface IDIContext
| Modifier and Type | Method and Description |
|---|---|
DIContextState |
getLifeCycle()
Get the current lifeCycle state.
|
void |
join()
Wait for the context to become stopped.
|
IDIContext |
register(IComponent component)
Register the given component in the context.
|
void |
resolve() |
boolean |
resolveAdditionalComponent(IComponent component)
Resolve an additional component.
|
void |
resolveAndStart()
Resolve all components and start.
|
void |
start() |
void |
stop()
Stop the context.
|
void |
waitForLifeCycle(DIContextState lifeCycle)
Wait for the specified lifeCycle state to be reached.
|
void stop()
IDIContext register(IComponent component)
component - A component.void resolveAndStart()
void resolve()
void start()
DIContextState getLifeCycle()
void waitForLifeCycle(DIContextState lifeCycle) throws InterruptedException
lifeCycle - The state to wait for.InterruptedException - If the call is interrupted.void join() throws InterruptedException
InterruptedException - If the call is interrupted.boolean resolveAdditionalComponent(IComponent component)
component - A component to be resolved.Copyright © 2018 Symphony Software Foundation. All rights reserved.