net.sourceforge.stripes.config
Interface ConfigurableComponent

All Known Subinterfaces:
ActionBeanContextFactory, ActionBeanPropertyBinder, ActionResolver, FormatterFactory, LocalePicker, LocalizationBundleFactory, TagErrorRendererFactory, TypeConverterFactory
All Known Implementing Classes:
AnnotatedClassActionResolver, DefaultActionBeanContextFactory, DefaultFormatterFactory, DefaultLocalePicker, DefaultLocalizationBundleFactory, DefaultTagErrorRendererFactory, DefaultTypeConverterFactory, OgnlActionBeanPropertyBinder

public interface ConfigurableComponent

Interface which is extended by all the major configurable chunks of Stripes. Allows a Configration to instantiate and pass configuration to each of the main components in a standardized manner. It is expected that all ConfigurableComponents will have a public no-arg constructor.

Author:
Tim Fennell

Method Summary
 void init(Configuration configuration)
          Invoked directly after instantiation to allow the configured component to perform one time initialization.
 

Method Detail

init

void init(Configuration configuration)
          throws Exception
Invoked directly after instantiation to allow the configured component to perform one time initialization. Components are expected to fail loudly if they are not going to be in a valid state after initialization.

Parameters:
configuration - the Configuration object being used by Stripes
Throws:
Exception - should be thrown if the component cannot be configured well enough to use.


© Copyright 2005, Stripes Development Team.