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