com.logabit.webtools.patchwork
Class PatchworkManagerImpl

java.lang.Object
  extended by com.logabit.webtools.patchwork.PatchworkManagerImpl
All Implemented Interfaces:
PatchworkManager, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe

public class PatchworkManagerImpl
extends java.lang.Object
implements PatchworkManager, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Initializable

This class manages to load the patchwork configuration and returns the called layout.

Author:
Stephan Niedermeier

Field Summary
 
Fields inherited from interface com.logabit.webtools.patchwork.PatchworkManager
ROLE
 
Constructor Summary
PatchworkManagerImpl()
           
 
Method Summary
 void contextualize(org.apache.avalon.framework.context.Context ctx)
           
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
           
 java.lang.String getDefaultPatchworkConfigPath()
           
 java.lang.String getDefaultRequestAttrName()
           
 PatchworkLayout getLayout(java.lang.String callLayoutName)
          Loads the layout specified using the attribut name from the specified patchwork configuration.
 void initialize()
           
 void parameterize(org.apache.avalon.framework.parameters.Parameters params)
           
 void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchworkManagerImpl

public PatchworkManagerImpl()
Method Detail

getLayout

public PatchworkLayout getLayout(java.lang.String callLayoutName)
                          throws PatchworkManagerException,
                                 PatchworkConfigurationException
Description copied from interface: PatchworkManager
Loads the layout specified using the attribut name from the specified patchwork configuration.

Specified by:
getLayout in interface PatchworkManager
Returns:
The current layout.
Throws:
PatchworkManagerException
PatchworkConfigurationException

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled

parameterize

public void parameterize(org.apache.avalon.framework.parameters.Parameters params)
                  throws org.apache.avalon.framework.parameters.ParameterException
Specified by:
parameterize in interface org.apache.avalon.framework.parameters.Parameterizable
Throws:
org.apache.avalon.framework.parameters.ParameterException

contextualize

public void contextualize(org.apache.avalon.framework.context.Context ctx)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException

getDefaultRequestAttrName

public java.lang.String getDefaultRequestAttrName()
Specified by:
getDefaultRequestAttrName in interface PatchworkManager
Returns:
The default request attribute name.

getDefaultPatchworkConfigPath

public java.lang.String getDefaultPatchworkConfigPath()
Specified by:
getDefaultPatchworkConfigPath in interface PatchworkManager
Returns:
The default patchwork config path.

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception


Copyright © 2007. All Rights Reserved.