Modifier and Type | Field and Description |
---|---|
protected String[] |
configurationLocations
Deprecated.
|
Constructor and Description |
---|
ServerModule()
Creates a new
ServerModule . |
ServerModule(String firstConfigLocation,
String... configurationLocations)
Deprecated.
since 4.0 use
ServerRuntimeBuilder.addConfig(String) and/or
contributeProjectLocations(Binder) to specify locations. |
Modifier and Type | Method and Description |
---|---|
void |
configure(Binder binder) |
static ListBuilder<DbAdapterDetector> |
contributeAdapterDetectors(Binder binder)
Provides access to a DI collection builder for
DbAdapterDetector 's that allows downstream modules to
"contribute" their own adapter detectors. |
static ListBuilder<ExtendedType> |
contributeDefaultTypes(Binder binder)
Provides access to a DI collection builder for default adapter-agnostic
ExtendedType 's that allows
downstream modules to "contribute" their own types. |
static ListBuilder<DataChannelFilter> |
contributeDomainFilters(Binder binder)
Provides access to a DI collection builder for
DataChannelFilter 's that allows downstream modules to
"contribute" their own DataDomain filters |
static ListBuilder<Object> |
contributeDomainListeners(Binder binder)
Provides access to a DI collection builder for lifecycle events listeners.
|
static ListBuilder<String> |
contributeProjectLocations(Binder binder)
Provides access to a DI collection builder for String locations that allows downstream modules to
"contribute" their own Cayenne project locations.
|
static MapBuilder<String> |
contributeProperties(Binder binder)
Provides access to a DI map builder for runtime properties that allows downstream modules to
"contribute" their own properties.
|
static ListBuilder<ExtendedTypeFactory> |
contributeTypeFactories(Binder binder)
Provides access to a DI collection builder for
ExtendedTypeFactory 's that allows downstream modules to
"contribute" their own factories. |
static ListBuilder<ExtendedType> |
contributeUserTypes(Binder binder)
Provides access to a DI collection builder for
ExtendedType 's that allows downstream modules to "contribute"
their own types. |
static ListBuilder<ValueObjectType> |
contributeValueObjectTypes(Binder binder) |
static void |
setSnapshotCacheSize(Binder binder,
int size)
Sets max size of snapshot cache, in pre 4.0 version this was set in the Modeler.
|
static void |
useExternalTransactions(Binder binder,
boolean useExternal)
Sets transaction management to either external or internal transactions.
|
@Deprecated protected String[] configurationLocations
public ServerModule()
ServerModule
.@Deprecated public ServerModule(String firstConfigLocation, String... configurationLocations)
ServerRuntimeBuilder.addConfig(String)
and/or
contributeProjectLocations(Binder)
to specify locations.public static void useExternalTransactions(Binder binder, boolean useExternal)
binder
- DI binder passed to the module during injector startup.useExternal
- whether external (true) or internal (false) transaction management should be used.public static void setSnapshotCacheSize(Binder binder, int size)
binder
- DI binder passed to the module during injector startup.size
- max size of snapshot cachepublic static ListBuilder<String> contributeProjectLocations(Binder binder)
binder
- DI binder passed to the module during injector startup.public static ListBuilder<DataChannelFilter> contributeDomainFilters(Binder binder)
DataChannelFilter
's that allows downstream modules to
"contribute" their own DataDomain filtersbinder
- DI binder passed to the module during injector startup.public static ListBuilder<Object> contributeDomainListeners(Binder binder)
binder
- DI binder passed to the module during injector startup.public static ListBuilder<DbAdapterDetector> contributeAdapterDetectors(Binder binder)
DbAdapterDetector
's that allows downstream modules to
"contribute" their own adapter detectors.binder
- DI binder passed to the module during injector startup.public static MapBuilder<String> contributeProperties(Binder binder)
binder
- DI binder passed to the module during injector startup.public static ListBuilder<ExtendedTypeFactory> contributeTypeFactories(Binder binder)
ExtendedTypeFactory
's that allows downstream modules to
"contribute" their own factories.binder
- DI binder passed to the module during injector startup.public static ListBuilder<ExtendedType> contributeDefaultTypes(Binder binder)
ExtendedType
's that allows
downstream modules to "contribute" their own types. "Default" types are loaded before adapter-provided or "user"
types, so they may be overridden by those.binder
- DI binder passed to the module during injector startup.public static ListBuilder<ExtendedType> contributeUserTypes(Binder binder)
ExtendedType
's that allows downstream modules to "contribute"
their own types. Unlike "default" types (see contributeDefaultTypes(Binder)
), "user" types are loaded
after the adapter-provided types and can override those.binder
- DI binder passed to the module during injector startup.public static ListBuilder<ValueObjectType> contributeValueObjectTypes(Binder binder)
binder
- DI binder passed to module during injector startupCopyright © 2001–2018 Apache Cayenne. All rights reserved.