Enum Constant and Description |
---|
DEV
DEV mode is special as Act might load classes
directly from srccode code when running in this mode
|
PROD |
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 java.lang.String configKey(java.lang.String key)
public 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)
public static Act.Mode valueOfIgnoreCase(java.lang.String mode)
Copyright © 2014–2017 ActFramework. All rights reserved.