Package com.helger.scope.spi
Class ScopeSPIManager
- java.lang.Object
-
- com.helger.scope.spi.ScopeSPIManager
-
@ThreadSafe @Singleton public final class ScopeSPIManager extends Object
This is an internal class, that triggers the SPI implementations registered for scope lifecycle SPI implementations. Never call this class from outside of this project!- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.commons.collection.impl.ICommonsList<IGlobalScopeSPI>getAllGlobalScopeSPIs()com.helger.commons.collection.impl.ICommonsList<IRequestScopeSPI>getAllRequestScopeSPIs()com.helger.commons.collection.impl.ICommonsList<ISessionScopeSPI>getAllSessionScopeSPIs()static ScopeSPIManagergetInstance()static booleanisInstantiated()voidonGlobalScopeBegin(IGlobalScope aGlobalScope)voidonGlobalScopeEnd(IGlobalScope aGlobalScope)voidonRequestScopeBegin(IRequestScope aRequestScope)voidonRequestScopeEnd(IRequestScope aRequestScope)voidonSessionScopeBegin(ISessionScope aSessionScope)voidonSessionScopeEnd(ISessionScope aSessionScope)voidreinitialize()
-
-
-
Method Detail
-
isInstantiated
public static boolean isInstantiated()
-
getInstance
@Nonnull public static ScopeSPIManager getInstance()
-
reinitialize
public void reinitialize()
-
getAllGlobalScopeSPIs
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IGlobalScopeSPI> getAllGlobalScopeSPIs()
- Returns:
- All registered global scope SPI listeners. Never
nullbut maybe empty.
-
getAllSessionScopeSPIs
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ISessionScopeSPI> getAllSessionScopeSPIs()
- Returns:
- All registered session scope SPI listeners. Never
nullbut maybe empty.
-
getAllRequestScopeSPIs
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IRequestScopeSPI> getAllRequestScopeSPIs()
- Returns:
- All registered request scope SPI listeners. Never
nullbut maybe empty.
-
onGlobalScopeBegin
public void onGlobalScopeBegin(@Nonnull IGlobalScope aGlobalScope)
-
onGlobalScopeEnd
public void onGlobalScopeEnd(@Nonnull IGlobalScope aGlobalScope)
-
onSessionScopeBegin
public void onSessionScopeBegin(@Nonnull ISessionScope aSessionScope)
-
onSessionScopeEnd
public void onSessionScopeEnd(@Nonnull ISessionScope aSessionScope)
-
onRequestScopeBegin
public void onRequestScopeBegin(@Nonnull IRequestScope aRequestScope)
-
onRequestScopeEnd
public void onRequestScopeEnd(@Nonnull IRequestScope aRequestScope)
-
-