*Synopsis*
The gateway component of API Manager communicates with the key manager
component to validate access tokens of API calls. Thrift[1] is one of the
options for communication provided. Thrift allows for the generation of
code for the respective Thrift Service, Exceptions, Data Transfer Object
classes, etc. which will be used to communicate via Thrift.


*The Problem*
Since the gateway and key manager modules are separate currently and they
both need to access this generated code in order to work with Thrift,
copies of the generated code reside in both the gateway and key manager
modules. Further more package name of the gateway copy of the generated
code has been modified by hand in order to incorporate within the gateway
module. This is not good since the generated code is needlessly duplicated
in two modules and has also changed manually after being generated.

This was discovered when I needed to generate the Thrift code a new in
order to fix https://wso2.org/jira/browse/APIMANAGER-2644

*Solution*
Propose to refactor so that the generated Thrift code be moved to the *impl*
module so that it can be shared between the gateway and key manager modules.


[1] http://thrift.apache.org/

-- 
Regards,
Uvindra

Mobile: 777733962
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to