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

org.zodiac.sdk.simplenetty.factory.ChannelFactory Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.sdk.simplenetty.factory;

import java.lang.reflect.InvocationTargetException;

import org.zodiac.sdk.simplenetty.core.EventLoop;

public class ChannelFactory {

    public static  T create(Class tClass, EventLoop eventLoop) {
        try {
            return tClass.getDeclaredConstructor(EventLoop.class).newInstance(eventLoop);
        } catch (NoSuchMethodException | IllegalAccessException | InstantiationException
            | InvocationTargetException e) {
            e.printStackTrace();
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy