[#1650] Make it possible to override isSharable() to simplify things for clojure users

This commit is contained in:
Norman Maurer 2013-07-25 20:24:27 +02:00
parent 2b3ac3d446
commit fabefba791

View File

@ -28,7 +28,7 @@ public abstract class ChannelHandlerAdapter implements ChannelHandler {
* Return {@code true} if the implementation is {@link Sharable} and so can be added
* to different {@link ChannelPipeline}s.
*/
final boolean isSharable() {
public boolean isSharable() {
return getClass().isAnnotationPresent(Sharable.class);
}