public class DIContext extends Object implements IDIContext
| Constructor and Description |
|---|
DIContext() |
| Modifier and Type | Method and Description |
|---|---|
DIContextState |
getLifeCycle()
Get the current lifeCycle state.
|
void |
join()
Wait for the context to become stopped.
|
DIContext |
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.
|
public DIContext register(IComponent component)
IDIContextregister in interface IDIContextcomponent - A component.public void resolveAndStart()
IDIContextresolveAndStart in interface IDIContextpublic void resolve()
resolve in interface IDIContextpublic boolean resolveAdditionalComponent(IComponent component)
IDIContextresolveAdditionalComponent in interface IDIContextcomponent - A component to be resolved.public void start()
start in interface IDIContextpublic void stop()
IDIContextstop in interface IDIContextpublic DIContextState getLifeCycle()
IDIContextgetLifeCycle in interface IDIContextpublic void waitForLifeCycle(DIContextState lifeCycle) throws InterruptedException
IDIContextwaitForLifeCycle in interface IDIContextlifeCycle - The state to wait for.InterruptedException - If the call is interrupted.public void join()
throws InterruptedException
IDIContextjoin in interface IDIContextInterruptedException - If the call is interrupted.Copyright © 2018 Symphony Software Foundation. All rights reserved.