Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.resteasy.cdi.decorators;
 
 
 import  javax.decorator.Decorator;
import  javax.decorator.Delegate;

Author(s):
Ron Sigal
Version:
$Revision: 1.1 $ Copyright Nov 13, 2012
@Decorator
public abstract class BookReaderDecorator implements MessageBodyReader<Book>
   @Inject private Logger log;
   @Inject private @Delegate MessageBodyReader<Bookreader;
   @Override
   public Book readFrom(Class<BooktypeType genericType,
         Annotation[] annotationsMediaType mediaType,
         MultivaluedMap<StringStringhttpHeadersInputStream entityStream)
         throws IOExceptionWebApplicationException
   {
      .info("entering BookReaderDecorator.readFrom()");
      VisitList.add(.);
      Book b = .readFrom(typegenericTypeannotationsmediaTypehttpHeadersentityStream);
      VisitList.add(.);
      .info("leaving BookReaderDecorator.readFrom()");
      return b;
   }
New to GrepCode? Check out our FAQ X