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 SummaryFields inherited from class org.apache.cayenne.runtime.CayenneRuntimeinjector, modules, threadInjector
- 
Method SummaryModifier and TypeMethodDescriptionstatic CayenneRuntimeBuilderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.since 5.0, useCayenneRuntime.builder()insteadstatic CayenneRuntimeBuilderDeprecated, 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.CayenneRuntimebindThreadInjector, getChannel, getDataDomain, getDataSource, getDataSource, getInjector, getModules, getThreadInjector, newContext, newContext, performInTransaction, performInTransaction, performInTransaction, performInTransaction, shutdown
- 
Method Details- 
builderDeprecated, 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
 
- 
builderDeprecated, 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.
 
 
- 
CayenneRuntimeclass instead