Package com.helger.photon.ajax
Class GlobalAjaxInvoker
- java.lang.Object
-
- com.helger.scope.singleton.AbstractSingleton
-
- com.helger.web.scope.singleton.AbstractGlobalWebSingleton
-
- com.helger.photon.ajax.GlobalAjaxInvoker
-
- All Implemented Interfaces:
com.helger.scope.IScopeDestructionAware,com.helger.web.scope.singleton.IWebSingleton
@ThreadSafe public final class GlobalAjaxInvoker extends com.helger.web.scope.singleton.AbstractGlobalWebSingletonGlobal AJAX invoker. Was reworked in v8.1.4 to clearly separate between registry and invoker.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description GlobalAjaxInvoker()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlobalAjaxInvokergetInstance()IAjaxInvokergetInvoker()IAjaxRegistrygetRegistry()voidresetToDefault()Reset all values to default.voidsetInvoker(IAjaxInvoker aInvoker)Set the global invoker to be used.voidsetRegistry(IAjaxRegistry aRegistry)Set the global registry to be used.StringtoString()-
Methods inherited from class com.helger.web.scope.singleton.AbstractGlobalWebSingleton
getAllGlobalSingletons, getGlobalSingleton, getGlobalSingletonIfInstantiated, isGlobalSingletonInstantiated
-
Methods inherited from class com.helger.scope.singleton.AbstractSingleton
getAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onDestroy, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, writeAbstractSingletonFields
-
-
-
-
Constructor Detail
-
GlobalAjaxInvoker
@Deprecated(forRemoval=false) @UsedViaReflection public GlobalAjaxInvoker()
Deprecated.Constructor. Used only internally.
-
-
Method Detail
-
getInstance
@Nonnull public static GlobalAjaxInvoker getInstance()
-
resetToDefault
@VisibleForTesting public void resetToDefault()
Reset all values to default. This is only intended for testing purposes. ATTENTION: this removes ALL registrations!
-
getRegistry
@Nonnull public IAjaxRegistry getRegistry()
-
setRegistry
@Nonnull public void setRegistry(@Nonnull IAjaxRegistry aRegistry)
Set the global registry to be used. Note: this API can only called BEFORE registrations are performed. Afterwards anIllegalStateExceptionis thrown if this API is invoked.- Parameters:
aRegistry- The registry to use. May not benull.
-
getInvoker
@Nonnull public IAjaxInvoker getInvoker()
-
setInvoker
@Nonnull public void setInvoker(@Nonnull IAjaxInvoker aInvoker)
Set the global invoker to be used. This can be changed during the runtime of the application and is independent of the registry state. Use this to e.g. increase the debug logging or tracing of the invocations.- Parameters:
aInvoker- The invoker to be used. May not benull.
-
toString
public String toString()
- Overrides:
toStringin classcom.helger.scope.singleton.AbstractSingleton
-
-