Package cz.o2.proxima.testing.model
Class CoreModel
- java.lang.Object
-
- cz.o2.proxima.testing.model.CoreModel
-
- All Implemented Interfaces:
java.io.Serializable
public class CoreModel extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCoreModel.BatchClass wrapping views on entity batchclassCoreModel.BatchWrapperClass wrapping access to attribute data of entity batch.classCoreModel.DummyClass wrapping views on entity dummyclassCoreModel.DummyWrapperClass wrapping access to attribute data of entity dummy.classCoreModel.EventClass wrapping views on entity eventclassCoreModel.EventWrapperClass wrapping access to attribute data of entity event.classCoreModel.GatewayClass wrapping views on entity gatewayclassCoreModel.GatewayWrapperClass wrapping access to attribute data of entity gateway.classCoreModel.ProxiedClass wrapping views on entity proxiedclassCoreModel.ProxiedWrapperClass wrapping access to attribute data of entity proxied.classCoreModel.ReplicaClass wrapping views on entity replicaclassCoreModel.ReplicaWrapperClass wrapping access to attribute data of entity replica.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreModel.BatchgetBatch()CoreModel.DummygetDummy()CoreModel.EventgetEvent()CoreModel.GatewaygetGateway()CoreModel.ProxiedgetProxied()CoreModel.ReplicagetReplica()RepositorygetRepo()static CoreModelof(ConfigRepository.Builder builder)Create instance ofCoreModelwith specifiedConfigRepository.Builder.static CoreModelof(cz.o2.proxima.typesafe.config.Config cfg)Create instance ofCoreModelfor production usage.static CoreModelofTest(cz.o2.proxima.typesafe.config.Config config, Repository.Validate... validations)Create instance ofCoreModelfor testing purposes.static CoreModelwrap(Repository repository)Create instance ofCoreModelfrom givenRepository.
-
-
-
Method Detail
-
of
public static CoreModel of(cz.o2.proxima.typesafe.config.Config cfg)
Create instance ofCoreModelfor production usage.- Parameters:
cfg- configuration to use- Returns:
- CoreModel
-
of
public static CoreModel of(ConfigRepository.Builder builder)
Create instance ofCoreModelwith specifiedConfigRepository.Builder.- Parameters:
builder- configuration to use- Returns:
- CoreModel
-
ofTest
public static CoreModel ofTest(cz.o2.proxima.typesafe.config.Config config, Repository.Validate... validations)
Create instance ofCoreModelfor testing purposes.- Parameters:
config- the configuration to usevalidations- which validations to perform- Returns:
- CoreModel
-
wrap
public static CoreModel wrap(Repository repository)
Create instance ofCoreModelfrom givenRepository.
-
getDummy
public CoreModel.Dummy getDummy()
-
getReplica
public CoreModel.Replica getReplica()
-
getBatch
public CoreModel.Batch getBatch()
-
getProxied
public CoreModel.Proxied getProxied()
-
getEvent
public CoreModel.Event getEvent()
-
getGateway
public CoreModel.Gateway getGateway()
-
getRepo
public Repository getRepo()
-
-