public class ProxettaAwareActionsManager extends ActionsManager
actions manager
that works with Proxetta.Modifier and Type | Field and Description |
---|---|
protected boolean |
detectDuplicatePathsEnabled |
protected java.lang.String[] |
pathExtensionsToStrip |
protected java.lang.Class<? extends PathMacros> |
pathMacroClass |
protected java.lang.String[] |
pathMacroSeparators |
protected ProxettaSupplier |
proxettaSupplier |
protected TypeCache<java.lang.Class> |
proxyActionClasses |
protected boolean |
strictRoutePaths |
actionMethodParser, actionsCount, asyncMode, pathAliases, routes, runtimes
Constructor and Description |
---|
ProxettaAwareActionsManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getPathExtensionsToStrip() |
java.lang.Class<? extends PathMacros> |
getPathMacroClass()
Returns current implementation for path macros.
|
java.lang.String[] |
getPathMacroSeparators() |
boolean |
isDetectDuplicatePathsEnabled() |
boolean |
isStrictRoutePaths() |
ActionRuntime |
registerAction(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod,
ActionDefinition actionDefinition)
Registers actions and applies proxetta on actions that are not already registered.
|
void |
setDetectDuplicatePathsEnabled(boolean detectDuplicatePathsEnabled) |
void |
setPathExtensionsToStrip(java.lang.String... pathExtensionsToStrip) |
void |
setPathMacroClass(java.lang.Class<? extends PathMacros> pathMacroClass)
Sets implementation for path macros.
|
void |
setPathMacroSeparators(java.lang.String... pathMacroSeparators)
Sets path macro separators.
|
void |
setStrictRoutePaths(boolean strictRoutePaths)
Defines if the router should trim parts of the path to match the action path.
|
getActionsCount, getAllActionRuntimes, getAllAliases, isAsyncModeOn, lookup, lookup, lookupPathAlias, registerAction, registerActionRuntime, registerPathAlias, resolveActionMethod
@PetiteInject protected ProxettaSupplier proxettaSupplier
protected final TypeCache<java.lang.Class> proxyActionClasses
protected boolean detectDuplicatePathsEnabled
protected java.lang.Class<? extends PathMacros> pathMacroClass
protected java.lang.String[] pathMacroSeparators
protected boolean strictRoutePaths
protected java.lang.String[] pathExtensionsToStrip
public ActionRuntime registerAction(java.lang.Class actionClass, java.lang.reflect.Method actionMethod, ActionDefinition actionDefinition)
ActionDefinition
before we apply the proxy, using
target action class.registerAction
in class ActionsManager
ActionsManager.registerActionRuntime(ActionRuntime)
public java.lang.Class<? extends PathMacros> getPathMacroClass()
public void setPathMacroClass(java.lang.Class<? extends PathMacros> pathMacroClass)
public java.lang.String[] getPathMacroSeparators()
public void setPathMacroSeparators(java.lang.String... pathMacroSeparators)
public boolean isDetectDuplicatePathsEnabled()
public void setDetectDuplicatePathsEnabled(boolean detectDuplicatePathsEnabled)
public boolean isStrictRoutePaths()
public void setStrictRoutePaths(boolean strictRoutePaths)
public java.lang.String[] getPathExtensionsToStrip()
public void setPathExtensionsToStrip(java.lang.String... pathExtensionsToStrip)
Copyright © 2003-present Jodd Team