Class ApplicationContext
java.lang.Object
org.refcodes.decoupling.Context
org.refcodes.decoupling.ext.application.ApplicationContext
- All Implemented Interfaces:
Destroyable, Destroyable.DestroyAutomaton, Initializable, Initializable.InitializeAutomaton, InitializedAccessor, LifecycleComponent, LifecycleComponent.LifecycleAutomaton, LifecycleStatusAccessor, Pausable, Pausable.PauseAutomaton, Resumable, Resumable.ResumeAutomaton, RunningAccessor, Startable, Startable.StartAutomaton, Stoppable, Stoppable.StopAutomaton, DependenciesAccessor, Diagnosable, Schemable<DiagnosticOptions>
The
ApplicationContext extends a Context for out of the box
application requirements such as lifecycle support (as if the
LifecycleComponent alongside the LifecycleMachine).-
Nested Class Summary
Nested classes/interfaces inherited from interface DependenciesAccessor
DependenciesAccessor.DependenciesBuilder<T,B>, DependenciesAccessor.DependenciesMutator<T>, DependenciesAccessor.DependenciesProperty<T> Nested classes/interfaces inherited from interface Destroyable
Destroyable.DestroyAutomatonNested classes/interfaces inherited from interface Initializable
Initializable.InitializeAutomaton, Initializable.InitializeBuilder<B>, Initializable.UncheckedInitializableNested classes/interfaces inherited from interface InitializedAccessor
InitializedAccessor.InitializedMutator, InitializedAccessor.InitializedPropertyNested classes/interfaces inherited from interface LifecycleComponent
LifecycleComponent.LifecycleAutomaton, LifecycleComponent.UncheckedLifecycleComponentNested classes/interfaces inherited from interface LifecycleStatusAccessor
LifecycleStatusAccessor.LifecycleStatusBuilder<B>, LifecycleStatusAccessor.LifecycleStatusMutator, LifecycleStatusAccessor.LifecycleStatusPropertyNested classes/interfaces inherited from interface Pausable
Pausable.PauseAutomaton, Pausable.PauseBuilder<B>, Pausable.UncheckedPausableNested classes/interfaces inherited from interface Resumable
Resumable.ResumeAutomaton, Resumable.ResumeBuilder<B>, Resumable.UncheckedResumableNested classes/interfaces inherited from interface RunningAccessor
RunningAccessor.RunningMutator, RunningAccessor.RunningPropertyNested classes/interfaces inherited from interface Startable
Startable.StartAutomaton, Startable.StartBuilder<B>, Startable.UncheckedStartableNested classes/interfaces inherited from interface Stoppable
Stoppable.StopAutomaton, Stoppable.StopBuilder<B>, Stoppable.UncheckedStoppable -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApplicationContext(Object[] aProfiles) ApplicationContext(Dependency<?>[] aDependencies, Object[] aProfiles) -
Method Summary
Methods inherited from class Context
getDependencies, getDependenciesByProfiles, getDependenciesByTags, getDependenciesByType, getDependencyByAlias, getDependencyByInstance, getFirstByType, getInstances, getInstancesByAlias, getInstancesByProfiles, getInstancesByTags, getInstancesByType, getProfiles, getSingletonByAlias, getSingletonByAlias, toSchemaMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Initializable
initializeUncheckedMethods inherited from interface Pausable
pauseUncheckedMethods inherited from interface Resumable
resumeUncheckedMethods inherited from interface Startable
startUncheckedMethods inherited from interface Stoppable
stopUnchecked
-
Constructor Details
-
ApplicationContext
- See Also:
-
ApplicationContext
- See Also:
-
-
Method Details
-
isDestroyable
public boolean isDestroyable()- Specified by:
isDestroyablein interfaceDestroyable.DestroyAutomaton
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable.DestroyAutomaton
-
isInitalizable
public boolean isInitalizable()- Specified by:
isInitalizablein interfaceInitializable.InitializeAutomaton
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfaceInitializedAccessor
-
isPausable
public boolean isPausable()- Specified by:
isPausablein interfacePausable.PauseAutomaton
-
isPaused
public boolean isPaused()- Specified by:
isPausedin interfacePausable.PauseAutomaton
-
isResumable
public boolean isResumable()- Specified by:
isResumablein interfaceResumable.ResumeAutomaton
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceRunningAccessor
-
isStartable
public boolean isStartable()- Specified by:
isStartablein interfaceStartable.StartAutomaton
-
isStoppable
public boolean isStoppable()- Specified by:
isStoppablein interfaceStoppable.StopAutomaton
-
isStopped
public boolean isStopped()- Specified by:
isStoppedin interfaceStoppable.StopAutomaton
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
InitializeException
-
pause
- Specified by:
pausein interfacePausable- Throws:
PauseException
-
resume
- Specified by:
resumein interfaceResumable- Throws:
ResumeException
-
start
- Specified by:
startin interfaceStartable- Throws:
StartException
-
stop
- Specified by:
stopin interfaceStoppable- Throws:
StopException
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
getLifecycleStatus
- Specified by:
getLifecycleStatusin interfaceLifecycleStatusAccessor
-