Class ServerRuntime
java.lang.Object
org.apache.cayenne.runtime.CayenneRuntime
org.apache.cayenne.configuration.server.ServerRuntime
Deprecated, for removal: This API element is subject to removal in a future version.
Object representing Cayenne stack. Serves as an entry point to Cayenne for user applications and a factory of ObjectContexts.
Implementation is a thin wrapper of the dependency injection container.
The "Server" prefix in the name is in contrast to ROP "client" (that is started via ClientRuntime). So ServerRuntime is the default Cayenne stack that you should be using in all apps with the exception of client-side ROP.
- Since:
- 3.1
-
Field Summary
Fields inherited from class org.apache.cayenne.runtime.CayenneRuntime
injector, modules, threadInjector
-
Method Summary
Modifier and TypeMethodDescriptionstatic CayenneRuntimeBuilder
builder()
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0, useCayenneRuntime.builder()
insteadstatic CayenneRuntimeBuilder
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0, useCayenneRuntime.builder(String)
insteadMethods inherited from class org.apache.cayenne.runtime.CayenneRuntime
bindThreadInjector, getChannel, getDataDomain, getDataSource, getDataSource, getInjector, getModules, getThreadInjector, newContext, newContext, performInTransaction, performInTransaction, performInTransaction, performInTransaction, shutdown
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0, useCayenneRuntime.builder()
insteadCreates a builder of CayenneRuntime.- Returns:
- a builder of CayenneRuntime.
- Since:
- 4.0
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0, useCayenneRuntime.builder(String)
insteadCreates a builder of CayenneRuntime.- Parameters:
name
- optional symbolic name of the created runtime.- Returns:
- a named builder of CayenneRuntime.
-
CayenneRuntime
class instead