org.codegist.crest.config
Interface InterfaceConfigFactory

All Known Implementing Classes:
AnnotationDrivenInterfaceConfigFactory, OverridingInterfaceConfigFactory, PreconfiguredInterfaceConfigFactory, PropertiesDrivenInterfaceConfigFactory, XmlDrivenInterfaceConfigFactory

public interface InterfaceConfigFactory

Creates instances of InterfaceConfig for the given interfaces.

Implementors must apply to the following contract :

- No method of the InterfaceConfig instance and sub-config objects return null values expects the one documented.

- Defaults values must either be taken from interface's defaults constant or from InterfaceContext.getProperties()'s defaults overrides.

- All methods in the interface must have it's MethodConfig configured in the InterfaceConfig.

- All parameters of all methods in the interface must have it's ParamConfig configured for each MethodConfig.

- If any method's parameter type is annotated with any parameter specifics annotation, the type specific annotation configs are used unless explicitly specified at the interface or factory configuration level.

-

Author:
Laurent Gilles (laurent.gilles@codegist.org)
See Also:
InterfaceConfig, MethodConfig, ParamConfig

Method Summary
 InterfaceConfig newConfig(Class<?> interfaze, CRestContext context)
           
 

Method Detail

newConfig

InterfaceConfig newConfig(Class<?> interfaze,
                          CRestContext context)
                          throws ConfigFactoryException
Parameters:
context - Current CRest context
interfaze - Interface to build the configuration from
Returns:
The interface config object.
Throws:
ConfigFactoryException - for any problem occuring during the configuration construction
See Also:
InterfaceConfigFactory


Copyright © 2011. All Rights Reserved.