All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy