org.axonframework.commandhandling.annotation
Class AggregateCommandHandlerInspector<T extends AggregateRoot>

java.lang.Object
  extended by org.axonframework.commandhandling.annotation.AggregateCommandHandlerInspector<T>
Type Parameters:
T - the type of aggregate inspected by this class

public class AggregateCommandHandlerInspector<T extends AggregateRoot>
extends Object

Handler inspector that finds annotated constructors and methods on a given aggregate type and provides handlers for those methods.

Since:
1.2
Author:
Allard Buijze

Constructor Summary
protected AggregateCommandHandlerInspector(Class<T> targetType, ParameterResolverFactory parameterResolverFactory)
          Initialize an MethodMessageHandlerInspector, where the given annotationType is used to annotate the Event Handler methods.
 
Method Summary
 List<ConstructorCommandMessageHandler<T>> getConstructorHandlers()
          Returns a list of constructor handlers on the given aggregate type.
 List<AbstractMessageHandler> getHandlers()
          Returns the list of handlers found on target type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateCommandHandlerInspector

protected AggregateCommandHandlerInspector(Class<T> targetType,
                                           ParameterResolverFactory parameterResolverFactory)
Initialize an MethodMessageHandlerInspector, where the given annotationType is used to annotate the Event Handler methods.

Parameters:
targetType - The targetType to inspect methods on
parameterResolverFactory - The strategy for resolving parameter values
Method Detail

getConstructorHandlers

public List<ConstructorCommandMessageHandler<T>> getConstructorHandlers()
Returns a list of constructor handlers on the given aggregate type.

Returns:
a list of constructor handlers on the given aggregate type

getHandlers

public List<AbstractMessageHandler> getHandlers()
Returns the list of handlers found on target type.

Returns:
the list of handlers found on target type


Copyright © 2010-2016. All Rights Reserved.