Tabnine Logo
AggregateAnnotationCommandHandler.subscribe
Code IndexAdd Tabnine to your IDE (free)

How to use
subscribe
method
in
org.axonframework.modelling.command.AggregateAnnotationCommandHandler

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

origin: AxonFramework/AxonFramework

@Override
public void start() {
  registrations.add(commandHandler.get().subscribe(parent.commandBus()));
}
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);
  }
}
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

@Override
public void start() {
  registrations.add(commandHandler.get().subscribe(parent.commandBus()));
}
org.axonframework.modelling.commandAggregateAnnotationCommandHandlersubscribe

Javadoc

Subscribe this command handler to the given commandBus. The command handler will be subscribed for each of the supported commands.

Popular methods of AggregateAnnotationCommandHandler

  • builder
    Instantiate a Builder to be able to create a AggregateAnnotationCommandHandler. The CommandTargetRe
  • <init>
    Instantiate a AggregateAnnotationCommandHandler based on the fields contained in the Builder. Will a
  • initializeHandlers
  • supportedCommandNames

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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