1 17 package org.apache.avalon.excalibur.component.servlet; 18 19 import org.apache.avalon.framework.service.ServiceException; 20 import org.apache.avalon.framework.service.ServiceManager; 21 22 31 final class ServiceManagerReferenceProxy 32 extends AbstractReferenceProxy 33 implements ServiceManager 34 { 35 private ServiceManager m_serviceManager; 36 37 40 47 ServiceManagerReferenceProxy( ServiceManager serviceManager, 48 AbstractReferenceProxyLatch latch, 49 String name ) 50 { 51 super( latch, name ); 52 m_serviceManager = serviceManager; 53 } 54 55 58 79 public Object lookup( String role ) 80 throws ServiceException 81 { 82 return m_serviceManager.lookup( role ); 83 } 84 85 91 public boolean hasService( String role ) 92 { 93 return m_serviceManager.hasService( role ); 94 } 95 96 105 public void release( Object service ) 106 { 107 m_serviceManager.release( service ); 108 } 109 } 110 | Popular Tags |