public class DIContext extends Object implements IDIContext
| Constructor and Description |
|---|
DIContext() |
| Modifier and Type | Method and Description |
|---|---|
org.symphonyoss.s2.fugue.di.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()
Resolve all components.
|
boolean |
resolveAdditionalComponent(IComponent component)
Resolve an additional component.
|
void |
resolveAndStart()
Resolve all components and start.
|
void |
start()
Start all components.
|
void |
stop()
Stop the context.
|
void |
waitForLifeCycle(org.symphonyoss.s2.fugue.di.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()
IDIContextresolve in interface IDIContextpublic boolean resolveAdditionalComponent(IComponent component)
IDIContextresolveAdditionalComponent in interface IDIContextcomponent - A component to be resolved.public void start()
IDIContextstart in interface IDIContextpublic void stop()
IDIContextstop in interface IDIContextpublic org.symphonyoss.s2.fugue.di.DIContextState getLifeCycle()
IDIContextgetLifeCycle in interface IDIContextpublic void waitForLifeCycle(org.symphonyoss.s2.fugue.di.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.