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