1 17 18 package org.apache.avalon.fortress.impl.handler; 19 20 28 public final class ThreadSafeComponentHandler 29 extends AbstractComponentHandler 30 { 31 private Object m_instance; 32 33 37 protected void doPrepare() 38 throws Exception  39 { 40 m_instance = newComponent(); 41 } 42 43 49 protected Object doGet() 50 throws Exception  51 { 52 return m_instance; 53 } 54 55 58 protected void doDispose() 59 { 60 disposeComponent( m_instance ); 61 m_instance = null; 62 } 63 } 64 | Popular Tags |