Package org.mongojack
Class MongoJackModuleConfiguration
- java.lang.Object
-
- org.mongojack.MongoJackModuleConfiguration
-
public class MongoJackModuleConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description MongoJackModuleConfiguration()
MongoJackModuleConfiguration(int moduleFeatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled(MongoJackModuleFeature f)
MongoJackModuleConfiguration
with(MongoJackModuleFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled.MongoJackModuleConfiguration
with(MongoJackModuleFeature first, MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled.MongoJackModuleConfiguration
withFeatures(MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled.MongoJackModuleConfiguration
without(MongoJackModuleFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified feature disabled.MongoJackModuleConfiguration
without(MongoJackModuleFeature first, MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled.MongoJackModuleConfiguration
withoutFeatures(MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled.
-
-
-
Method Detail
-
isEnabled
public final boolean isEnabled(MongoJackModuleFeature f)
-
with
public MongoJackModuleConfiguration with(MongoJackModuleFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
-
with
public MongoJackModuleConfiguration with(MongoJackModuleFeature first, MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
-
withFeatures
public MongoJackModuleConfiguration withFeatures(MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
-
without
public MongoJackModuleConfiguration without(MongoJackModuleFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified feature disabled.
-
without
public MongoJackModuleConfiguration without(MongoJackModuleFeature first, MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled.
-
withoutFeatures
public MongoJackModuleConfiguration withoutFeatures(MongoJackModuleFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled.
-
-