List of usage examples for io.netty.util.internal TypeParameterMatcher find
public static TypeParameterMatcher find(final Object object, final Class<?> parametrizedSuperclass, final String typeParamName)
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); }