@Override public <C> AnnotatedAggregateModel<C> modelOf(Class<? extends C> entityType) { return AnnotatedAggregateMetaModelFactory.this.createModel(entityType); }
/** * Shorthand to create a factory instance and inspect the model for the given {@code aggregateType}, using given * {@code parameterResolverFactory} to resolve parameter values for annotated handlers. * * @param aggregateType The class of the aggregate to create the model for * @param parameterResolverFactory to resolve parameter values of annotated handlers with * @param <T> The type of aggregate described in the model * @return The model describing the structure of the aggregate */ public static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory) { return new AnnotatedAggregateMetaModelFactory(parameterResolverFactory).createModel(aggregateType); }
/** * Shorthand to create a factory instance and inspect the model for the given {@code aggregateType}. * * @param aggregateType The class of the aggregate to create the model for * @param <T> The type of aggregate described in the model * @return The model describing the structure of the aggregate */ public static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType) { return new AnnotatedAggregateMetaModelFactory().createModel(aggregateType); }
/** * Shorthand to create a factory instance and inspect the model for the given {@code aggregateType}, using given * {@code parameterResolverFactory} to resolve parameter values for annotated handlers and {@code handlerDefinition} * to create concrete handlers. * * @param aggregateType The class of the aggregate to create the model for * @param parameterResolverFactory to resolve parameter values of annotated handlers with * @param handlerDefinition The handler definition used to create concrete handlers * @param <T> The type of aggregate described in the model * @return The model describing the structure of the aggregate */ public static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) { return new AnnotatedAggregateMetaModelFactory(parameterResolverFactory, handlerDefinition) .createModel(aggregateType); }
@Override public <C> AnnotatedAggregateModel<C> modelOf(Class<? extends C> entityType) { return AnnotatedAggregateMetaModelFactory.this.createModel(entityType); }
/** * Shorthand to create a factory instance and inspect the model for the given {@code aggregateType}. * * @param aggregateType The class of the aggregate to create the model for * @param <T> The type of aggregate described in the model * @return The model describing the structure of the aggregate */ public static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType) { return new AnnotatedAggregateMetaModelFactory().createModel(aggregateType); }
/** * Shorthand to create a factory instance and inspect the model for the given {@code aggregateType}, using given * {@code parameterResolverFactory} to resolve parameter values for annotated handlers. * * @param aggregateType The class of the aggregate to create the model for * @param parameterResolverFactory to resolve parameter values of annotated handlers with * @param <T> The type of aggregate described in the model * @return The model describing the structure of the aggregate */ public static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory) { return new AnnotatedAggregateMetaModelFactory(parameterResolverFactory).createModel(aggregateType); }
/** * Shorthand to create a factory instance and inspect the model for the given {@code aggregateType}, using given * {@code parameterResolverFactory} to resolve parameter values for annotated handlers and {@code handlerDefinition} * to create concrete handlers. * * @param aggregateType The class of the aggregate to create the model for * @param parameterResolverFactory to resolve parameter values of annotated handlers with * @param handlerDefinition The handler definition used to create concrete handlers * @param <T> The type of aggregate described in the model * @return The model describing the structure of the aggregate */ public static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) { return new AnnotatedAggregateMetaModelFactory(parameterResolverFactory, handlerDefinition) .createModel(aggregateType); }