Constructor and Description |
---|
ServerModule()
Creates a new
ServerModule . |
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)
Deprecated.
since 4.1 use
contributeDomainQueryFilters(Binder) and contributeDomainSyncFilters(Binder) |
static ListBuilder<Object> |
contributeDomainListeners(Binder binder)
Provides access to a DI collection builder for lifecycle events listeners.
|
static ListBuilder<DataChannelQueryFilter> |
contributeDomainQueryFilters(Binder binder)
Provides access to a DI collection builder for
DataChannelQueryFilter 's that allows downstream modules to
"contribute" their own DataDomain query filters |
static ListBuilder<DataChannelSyncFilter> |
contributeDomainSyncFilters(Binder binder)
Provides access to a DI collection builder for
DataChannelSyncFilter 's that allows downstream modules to
"contribute" their own DataDomain sync filters |
static MapBuilder<PkGenerator> |
contributePkGenerators(Binder binder)
Provides access to a DI map builder for
PkGenerator 's that allows downstream modules to
"contribute" their own pk generators. |
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.
|
public ServerModule()
ServerModule
.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.@Deprecated public static ListBuilder<DataChannelFilter> contributeDomainFilters(Binder binder)
contributeDomainQueryFilters(Binder)
and contributeDomainSyncFilters(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<DataChannelQueryFilter> contributeDomainQueryFilters(Binder binder)
DataChannelQueryFilter
's that allows downstream modules to
"contribute" their own DataDomain query filtersbinder
- DI binder passed to the module during injector startup.public static ListBuilder<DataChannelSyncFilter> contributeDomainSyncFilters(Binder binder)
DataChannelSyncFilter
's that allows downstream modules to
"contribute" their own DataDomain sync 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<PkGenerator> contributePkGenerators(Binder binder)
PkGenerator
's that allows downstream modules to
"contribute" their own pk generators.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–2019 Apache Cayenne. All rights reserved.