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 ResourceDecorator implements TestResourceIntf
   @Inject private Logger log;
   @Inject private @Delegate TestResource resource;
   
   @Override
   public Response createBook(Book book)
   {
      .info("entering ResourceDecorator.createBook()");
      VisitList.add(.);
      Response response = .createBook(book);
      VisitList.add(.);
      .info("leaving ResourceDecorator.createBook()");
      return response;
   }
   @Override
   public Book lookupBookById(int id)
   {
      .info("entering ResourceDecorator.lookupBookById()");
      VisitList.add(.);
      Book book = .lookupBookById(id);
      VisitList.add(.);
      .info("leaving ResourceDecorator.lookupBookById()");
      return book;
   }
   @Override
   public abstract Response test();
New to GrepCode? Check out our FAQ X