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. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
 */

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