org.apache.avalon.framework.context
Interface Contextualizable

All Known Subinterfaces:
Recontextualizable
All Known Implementing Classes:
AbstractContainer, AbstractHandlerFactory, AbstractService, AbstractTargetFactory, AbstractTLSSocketFactory, AvalonTee, DefaultDataSourceSelector, DefaultLoggerManager, DefaultLogKitManager, DefaultLogTargetFactoryManager, DefaultSocketManager, ExcaliburComponentManager, ExcaliburComponentSelector, File_Persistent_Object_Repository, File_Persistent_Stream_Repository, FullLifecycleComponent, Log4JConfAdapter, Log4JConfLoggerManager, LoggerManagerDecorator, LogKitConfHelper, LogKitLoggerManager, RepositoryManager, SimpleLogKitManager, SourceResolverImpl, SSLFactoryBuilder, StreamTargetFactory, TLSSocketFactory, XMLFilePersistentObjectRepository

public interface Contextualizable

This inteface should be implemented by components that need a Context to work. Context contains runtime generated object provided by the Container to this Component.

Version:
$Id: Contextualizable.java 30977 2004-07-30 08:57:54Z niclas $
Author:
Avalon Development Team

Method Summary
 void contextualize(Context context)
          Pass the Context to the component.
 

Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Pass the Context to the component. This method is called after the LogEnabled.enableLogging( Logger ) (if present) method and before any other method.

Parameters:
context - the context. Must not be null.
Throws:
ContextException - if context is invalid


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.