congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AggregateAnnotationCommandHandler$Builder.repository
Code IndexAdd Tabnine to your IDE (free)

How to use
repository
method
in
org.axonframework.modelling.command.AggregateAnnotationCommandHandler$Builder

Best Java code snippets using org.axonframework.modelling.command.AggregateAnnotationCommandHandler$Builder.repository (Showing top 4 results out of 315)

origin: AxonFramework/AxonFramework

commandHandler = new Component<>(() -> parent, "aggregateCommandHandler<" + aggregate.getSimpleName() + ">",
                 c -> AggregateAnnotationCommandHandler.<A>builder()
                     .repository(repository.get())
                     .commandTargetResolver(commandTargetResolver.get())
                     .aggregateModel(metaModel.get())
origin: AxonFramework/AxonFramework

@SuppressWarnings("unchecked")
@Before
public void setUp() {
  eventStore = spy(EmbeddedEventStore.builder().storageEngine(new InMemoryEventStorageEngine()).build());
  Repository<MyAggregate> myAggregateRepository = EventSourcingRepository.builder(MyAggregate.class)
                                      .eventStore(eventStore)
                                      .build();
  CommandBus commandBus = SimpleCommandBus.builder().build();
  commandGateway = DefaultCommandGateway.builder().commandBus(commandBus).build();
  AggregateAnnotationCommandHandler<MyAggregate> myAggregateCommandHandler =
      AggregateAnnotationCommandHandler.<MyAggregate>builder()
          .aggregateType(MyAggregate.class)
          .repository(myAggregateRepository)
          .build();
  myAggregateCommandHandler.subscribe(commandBus);
}
origin: org.axonframework/axon-configuration

commandHandler = new Component<>(() -> parent, "aggregateCommandHandler<" + aggregate.getSimpleName() + ">",
                 c -> AggregateAnnotationCommandHandler.<A>builder()
                     .repository(repository.get())
                     .commandTargetResolver(commandTargetResolver.get())
                     .aggregateModel(metaModel.get())
origin: AxonFramework/AxonFramework

private void registerAggregateCommandHandlers() {
  ensureRepositoryConfiguration();
  if (!explicitCommandHandlersSet) {
    AggregateAnnotationCommandHandler.Builder<T> builder = AggregateAnnotationCommandHandler.<T>builder()
        .aggregateType(aggregateType)
        .parameterResolverFactory(parameterResolverFactory)
        .repository(this.repository);
    if (commandTargetResolver != null) {
      builder.commandTargetResolver(commandTargetResolver);
    }
    AggregateAnnotationCommandHandler<T> handler = builder.build();
    handler.subscribe(commandBus);
  }
}
org.axonframework.modelling.commandAggregateAnnotationCommandHandler$Builderrepository

Javadoc

Sets the Repository used to add and load Aggregate instances of generic type T upon handling commands for it.

Popular methods of AggregateAnnotationCommandHandler$Builder

  • build
    Initializes a AggregateAnnotationCommandHandler as specified through this Builder.
  • aggregateType
    Sets the aggregateType as a Class, specifying the type of aggregate an AggregateModelshould be creat
  • commandTargetResolver
    Sets the CommandTargetResolver used to resolve the command handling target. Defaults to an Annotatio
  • <init>
  • aggregateModel
    Sets the AggregateModel of generic type T, describing the structure of the aggregate the AnnotationC
  • inspectAggregateModel
  • parameterResolverFactory
    Sets the ParameterResolverFactory used to resolve parameters for annotated handlers contained in the
  • validate
    Validates whether the fields contained in this Builder are set accordingly.

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now