Class ScxAppContext
java.lang.Object
cool.scx.app.ScxAppContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringappKey()static <T, E extends Throwable>
TautoTransaction(cool.scx.functional.ScxCallable<T, E> handler) static <E extends Throwable>
voidautoTransaction(cool.scx.functional.ScxRunnable<E> handler) static BeanFactorystatic ScxConfigconfig()static DataSourcestatic ScxEnvironmentstatic EventBuseventBus()static ScxFeatureConfigstatic <T extends ScxAppModule>
TfindScxModule(Class<T> clazz) static <T> Tstatic booleangetFeatureState(ScxAppFeature scxFeature) static PathgetPathByAppRoot(String path) static Pathstatic PathgetTempPath(String... paths) static cool.scx.http.ScxHttpServerstatic cool.scx.jdbc.JDBCContextstatic ScxAppOptionsoptions()static ScxAppHttpRouterrouter()static ScxAppscx()获取全局的 Scxstatic ScxAppModule[]static ScxWebscxWeb()static cool.scx.jdbc.sql.SQLRunner
-
Constructor Details
-
ScxAppContext
public ScxAppContext()
-
-
Method Details
-
scx
-
featureConfig
-
config
-
dataSource
-
httpServer
public static cool.scx.http.ScxHttpServer httpServer() -
eventBus
-
environment
-
appKey
-
scxModules
-
options
-
beanFactory
-
router
-
scxWeb
-
getFeatureState
-
sqlRunner
public static cool.scx.jdbc.sql.SQLRunner sqlRunner() -
autoTransaction
public static <E extends Throwable> void autoTransaction(cool.scx.functional.ScxRunnable<E> handler) throws E, cool.scx.jdbc.sql.SQLRunnerException - Throws:
Ecool.scx.jdbc.sql.SQLRunnerException
-
autoTransaction
public static <T, E extends Throwable> T autoTransaction(cool.scx.functional.ScxCallable<T, E> handler) throws E, cool.scx.jdbc.sql.SQLRunnerException- Throws:
Ecool.scx.jdbc.sql.SQLRunnerException
-
getBean
-
findScxModule
-
getPathByAppRoot
-
getTempPath
-
getTempPath
-
jdbcContext
public static cool.scx.jdbc.JDBCContext jdbcContext()
-