Package com.exedio.cope
Class ModelBuilder
- java.lang.Object
-
- com.exedio.cope.ModelBuilder
-
public final class ModelBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelBuilder
add(Revisions.Factory revisions)
ModelBuilder
add(Type<?>... types)
ModelBuilder
add(TypeSet... typeSets)
Model
build()
ModelBuilder
changeHooks(ChangeHook.Factory... hooks)
Installs a list ofchange hooks
for the model to be built by this model builder.ModelBuilder
name(Class<?> clazz)
ModelBuilder
name(String name)
-
-
-
Method Detail
-
name
public ModelBuilder name(String name)
-
name
public ModelBuilder name(Class<?> clazz)
-
add
public ModelBuilder add(Type<?>... types)
-
add
public ModelBuilder add(TypeSet... typeSets)
-
changeHooks
public ModelBuilder changeHooks(ChangeHook.Factory... hooks)
Installs a list ofchange hooks
for the model to be built by this model builder. Hooks will be called in the order specified here.If you do not call this method, a single
DefaultChangeHook
will be installed. If you want to use aDefaultChangeHook
additionally to other hooks, you have specify it here together with the other hooks.
-
add
public ModelBuilder add(Revisions.Factory revisions)
-
build
public Model build()
-
-