com.microsoft.azure.eventprocessorhost.DefaultEventProcessorFactory Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.eventprocessorhost;
class DefaultEventProcessorFactory implements IEventProcessorFactory {
private Class eventProcessorClass = null;
void setEventProcessorClass(Class eventProcessorClass) {
this.eventProcessorClass = eventProcessorClass;
}
@Override
public T createEventProcessor(PartitionContext context) throws Exception {
return this.eventProcessorClass.newInstance();
}
}