001 /* 002 @license.text@ 003 */ 004 package biz.hammurapi.wrap; 005 006 /** 007 * This wrapper handler holds strong reference to the master 008 * object. Use it to wrap/unwrap method invocations to the master 009 * @author Pavel Vlasov 010 * @version $Revision: 1.1 $ 011 */ 012 public class StrongWrapperHandler extends WrapperHandler { 013 private Object master; 014 015 public StrongWrapperHandler(Object master) { 016 super(master); 017 this.master=master; 018 } 019 020 protected Object getMaster() throws Throwable { 021 return master; 022 } 023 024 }