Example usage for io.netty.util.internal TypeParameterMatcher find

List of usage examples for io.netty.util.internal TypeParameterMatcher find

Introduction

In this page you can find the example usage for io.netty.util.internal TypeParameterMatcher find.

Prototype

public static TypeParameterMatcher find(final Object object, final Class<?> parametrizedSuperclass,
            final String typeParamName) 

Source Link

Usage

From source file:org.diorite.impl.connection.ByteToMessageCodec.java

License:Open Source License

/**
 * Create a new instance which will try to detect the types to match out of the type parameter of the class.
 *
 * @param preferDirect {@code true} if a direct {@link ByteBuf} should be tried to be used as target for
 *                     the encoded messages. If {@code false} is used it will allocate a heap
 *                     {@link ByteBuf}, which is backed by an byte array.
 */// w ww.j av  a 2 s  .  c o m
protected ByteToMessageCodec(final boolean preferDirect) {
    this.outboundMsgMatcher = TypeParameterMatcher.find(this, ByteToMessageCodec.class, "I");
    this.encoder = new Encoder(preferDirect);
}