public static enum Act.Mode extends Enum<Act.Mode>
Enum Constant and Description |
---|
DEV
DEV mode is special as Act might load classes
directly from srccode code when running in this mode
|
PROD |
Modifier and Type | Method and Description |
---|---|
AppScanner |
appScanner() |
AppClassLoader |
classLoader(App app) |
String |
configKey(String key) |
AfterInterceptor |
createAfterInterceptor(InterceptorMethodMetaInfo after,
App app) |
BeforeInterceptor |
createBeforeInterceptor(InterceptorMethodMetaInfo before,
App app) |
ExceptionInterceptor |
createExceptionInterceptor(CatchMethodMetaInfo ex,
App app) |
FinallyInterceptor |
createFinallyInterceptor(InterceptorMethodMetaInfo fin,
App app) |
ControllerAction |
createRequestHandler(ActionMethodMetaInfo action,
App app) |
boolean |
isDev()
Returns if the current mode is
dev mode |
boolean |
isProd()
Returns if the current mode is
prod mode |
static Act.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Act.Mode |
valueOfIgnoreCase(String mode) |
static Act.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Act.Mode PROD
public static final Act.Mode DEV
public static Act.Mode[] values()
for (Act.Mode c : Act.Mode.values()) System.out.println(c);
public static Act.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDev()
Returns if the current mode is dev mode
true
if the current mode is devpublic boolean isProd()
Returns if the current mode is prod mode
true
if the current mode is product modepublic AppScanner appScanner()
public AppClassLoader classLoader(App app)
public ControllerAction createRequestHandler(ActionMethodMetaInfo action, App app)
public BeforeInterceptor createBeforeInterceptor(InterceptorMethodMetaInfo before, App app)
public AfterInterceptor createAfterInterceptor(InterceptorMethodMetaInfo after, App app)
public ExceptionInterceptor createExceptionInterceptor(CatchMethodMetaInfo ex, App app)
public FinallyInterceptor createFinallyInterceptor(InterceptorMethodMetaInfo fin, App app)
Copyright © 2014-2017 ActFramework. All Rights Reserved.