org.apache.cocoon.components.blocks
Class BlockWiring

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.blocks.BlockWiring
All Implemented Interfaces:
Configurable, Contextualizable, Disposable, LogEnabled, Serviceable

public class BlockWiring
extends AbstractLogEnabled
implements Configurable, Contextualizable, Disposable, Serviceable

Version:
SVN $Id: BlockWiring.java 327986 2005-10-24 07:12:01Z cziegeler $

Constructor Summary
BlockWiring()
           
 
Method Summary
 void configure(Configuration config)
           
 void contextualize(Context context)
           
 void dispose()
           
 Block getBlock(String blockName)
          Get a block from the blockname.
 URL getContextURL()
          Get the URL of the root of the block
 String getId()
          Get the identifier of the block
 String getProperty(String name)
          Get a block property
 void service(ServiceManager manager)
           
 void setBlocksManager(BlocksManager blocksManager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockWiring

public BlockWiring()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

setBlocksManager

public void setBlocksManager(BlocksManager blocksManager)

getId

public String getId()
Get the identifier of the block


getContextURL

public URL getContextURL()
                  throws MalformedURLException
Get the URL of the root of the block

Throws:
MalformedURLException

getBlock

public Block getBlock(String blockName)
Get a block from the blockname.


getProperty

public String getProperty(String name)
Get a block property



Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.