org.apache.cocoon.components
Class ComponentLocatorImpl

java.lang.Object
  extended by org.apache.cocoon.components.ComponentLocatorImpl
All Implemented Interfaces:
ComponentLocator

public class ComponentLocatorImpl
extends Object
implements ComponentLocator

This object is set to a ParentAware component and allows access to the parent component.

Version:
CVS $Id: ComponentLocatorImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  ComponentManager manager
           
protected  String role
           
 
Constructor Summary
ComponentLocatorImpl(ComponentManager manager, String role)
           
 
Method Summary
 Object lookup()
           
 void release(Object parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ComponentManager manager

role

protected String role
Constructor Detail

ComponentLocatorImpl

public ComponentLocatorImpl(ComponentManager manager,
                            String role)
Method Detail

lookup

public Object lookup()
              throws ComponentException
Specified by:
lookup in interface ComponentLocator
Throws:
ComponentException

release

public void release(Object parent)
Specified by:
release in interface ComponentLocator


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.