|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
-
InterfaceConfig
,
MethodConfig
,
ParamConfig
Method Summary | |
---|---|
InterfaceConfig |
newConfig(Class<?> interfaze,
CRestContext context)
|
Method Detail |
---|
InterfaceConfig newConfig(Class<?> interfaze, CRestContext context) throws ConfigFactoryException
context
- Current CRest contextinterfaze
- Interface to build the configuration from
ConfigFactoryException
- for any problem occuring during the configuration constructionInterfaceConfigFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |