提交 60b1a6a1 编写于 作者: F fheremans

Opening up the variableConverters list for subclasses (was private)

上级 32787f36
......@@ -106,7 +106,7 @@ public class RestResponseFactory {
public static final String BYTE_ARRAY_VARIABLE_TYPE = "binary";
public static final String SERIALIZABLE_VARIABLE_TYPE = "serializable";
private List<RestVariableConverter> variableConverters = new ArrayList<RestVariableConverter>();
protected List<RestVariableConverter> variableConverters = new ArrayList<RestVariableConverter>();
public RestResponseFactory() {
initializeVariableConverters();
......@@ -755,6 +755,14 @@ public class RestResponseFactory {
return response;
}
/**
* @return list of {@link RestVariableConverter} which are used by this factory. Additional
* converters can be added and existing ones replaced ore removed.
*/
public List<RestVariableConverter> getVariableConverters() {
return variableConverters;
}
/**
* Called once when the converters need to be initialized. Override of custom conversion
* needs to be done between java and rest.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册