com.acsinet_solutions.cetia4.controller
Interface ControllerConfiguration


public interface ControllerConfiguration

This interface exposes the configuration of a controller, so custom configuration may be performed over the given controller module. Custom configuration may be performed in modules that implement the optional ConfigurableModule interface. Method configuration steps SHOULD only be performed within the provided configuration methods, and not after them.

Author:
Santiago Arriaga
See Also:
ConfigurableModule

Method Summary
 AttributeInfo getAttributeInfo()
          Get the main attribute info for a method.
 RequestMapper getRequestMapper()
          Get the main mapper of a method.
 RequestMapper getRequestMapper(int index)
          Get the request mapper associated to an arbitrary index, for mapping customization.
 void setAttributeInfo(AttributeInfo info)
          Set manually the main attribute info for a method.
 void setRequestMapper(int index, RequestMapper mapper)
          Get the request mapper associated to an arbitrary index, for mapping customization.
 void setRequestMapper(RequestMapper mapper)
          Set the main mapper of a method.
 

Method Detail

getRequestMapper

RequestMapper getRequestMapper()
Get the main mapper of a method. This is the mapper associated to the DTO of a method. Returns null if no main mapper is defined. Throws an exception if no main parameter is defined for a method.


getRequestMapper

RequestMapper getRequestMapper(int index)
Get the request mapper associated to an arbitrary index, for mapping customization. May throw an out of bounds exception if the index is not valid.


setRequestMapper

void setRequestMapper(RequestMapper mapper)
Set the main mapper of a method. This is the mapper associated to the DTO of a method.


setRequestMapper

void setRequestMapper(int index,
                      RequestMapper mapper)
Get the request mapper associated to an arbitrary index, for mapping customization. May throw an out of bounds exception if the index is not valid.


getAttributeInfo

AttributeInfo getAttributeInfo()
Get the main attribute info for a method. Returns null if the main parameter has no attribute info associated with it. Throws an exception if no main parameter is defined for a method.


setAttributeInfo

void setAttributeInfo(AttributeInfo info)
Set manually the main attribute info for a method. Throws an exception if no main parameter is defined for a method.