net.sourceforge.stripes.config
Interface ConfigurableComponent

All Known Subinterfaces:
ActionBeanContextFactory, ActionBeanPropertyBinder, ActionResolver, ExceptionHandler, FormatterFactory, LocalePicker, LocalizationBundleFactory, MultipartWrapperFactory, PopulationStrategy, TagErrorRendererFactory, TypeConverterFactory, ValidationMetadataProvider
All Known Implementing Classes:
AnnotatedClassActionResolver, BeanFirstPopulationStrategy, DefaultActionBeanContextFactory, DefaultActionBeanPropertyBinder, DefaultExceptionHandler, DefaultFormatterFactory, DefaultLocalePicker, DefaultLocalizationBundleFactory, DefaultMultipartWrapperFactory, DefaultPopulationStrategy, DefaultTagErrorRendererFactory, DefaultTypeConverterFactory, DefaultValidationMetadataProvider, DelegatingExceptionHandler, NameBasedActionResolver, SpringInterceptorSupport

public interface ConfigurableComponent

Interface which is extended by all the major configurable chunks of Stripes. Allows a Configuration 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-2006, Stripes Development Team.