1 17 package org.apache.avalon.excalibur.component.servlet; 18 19 import org.apache.avalon.framework.component.Component; 20 import org.apache.avalon.framework.component.ComponentException; 21 import org.apache.avalon.framework.component.ComponentManager; 22 23 33 final class ComponentManagerReferenceProxy 34 extends AbstractReferenceProxy 35 implements ComponentManager 36 { 37 private ComponentManager m_componentManager; 38 39 42 49 ComponentManagerReferenceProxy( ComponentManager componentManager, 50 AbstractReferenceProxyLatch latch, 51 String name ) 52 { 53 super( latch, name ); 54 m_componentManager = componentManager; 55 } 56 57 60 81 public Component lookup( String role ) 82 throws ComponentException 83 { 84 return m_componentManager.lookup( role ); 85 } 86 87 93 public boolean hasComponent( String role ) 94 { 95 return m_componentManager.hasComponent( role ); 96 } 97 98 107 public void release( Component component ) 108 { 109 m_componentManager.release( component ); 110 } 111 } 112 | Popular Tags |