cloudstack-mirror/server/src/com/cloud/api
prachi 8570b25506 NAAS: APIServer changes to introduce framework to read commands from pluggable components having separate commands.properties file
Changes:
- Added a new interface 'PluggableService'
- Any component that can be packaged separately from cloudstack, can implement this interface and provide its own property file listing the API commands the component supports
- As an example have made VirtualNetworkApplianceService pluggable and a new configureRouter command is added
- ComponentLocator reads all the pluggable service from componentLibrary or from components.xml and instantiates the services.
- As an example, DefaultComponentLibrary adds the pluggable service 'VirtualNetworkApplianceService'
- Also components.xml.in has an entry to show how a pluggable service can be added, but it is commented out.
- APIServer now reads the commands for each pluggable service and when a command for such a service is called, APIServer sets the required instance of the pluggable service in the coomand.
- To do this a new annotation '@PlugService' is added that is processed by APIServer. This eliminates the dependency on the BaseCmd to instantiate the service instances.
2011-10-11 17:34:57 -07:00
..
commands 1)Implemented Suspend/Activate project 2011-10-06 16:10:36 -07:00
doc fix conflict 2011-08-24 18:47:09 -07:00
response More stuff to Projects feature - added support for adding resources (vms, templates, isos) to the project 2011-10-05 13:24:25 -07:00
ApiDBUtils.java More stuff to Projects feature - added support for adding resources (vms, templates, isos) to the project 2011-10-05 13:24:25 -07:00
ApiDispatcher.java NAAS: APIServer changes to introduce framework to read commands from pluggable components having separate commands.properties file 2011-10-11 17:34:57 -07:00
ApiGsonHelper.java bug 10232: Introduced new gson builder - used for api reponse only 2011-06-13 13:19:20 -07:00
ApiResponseGsonHelper.java bug 10232: Introduced new gson builder - used for api reponse only 2011-06-13 13:19:20 -07:00
ApiResponseHelper.java Network as a service(NaaS): Separate redundant virtual router as a standalone element 2011-10-10 15:41:07 -07:00
ApiSerializerHelper.java Add license header to files 2011-04-14 11:23:14 -07:00
ApiServer.java NAAS: APIServer changes to introduce framework to read commands from pluggable components having separate commands.properties file 2011-10-11 17:34:57 -07:00
ApiServlet.java bug 11348: make content type for "json" files configurable 2011-09-07 14:22:01 -07:00
EncodedStringTypeAdapter.java Keep "encode.api.response" parameter in ApiServer class; initialize it as a part of init() method 2011-06-21 11:07:31 -07:00
ResponseObjectTypeAdapter.java bug 10232: Introduced new gson builder - used for api reponse only 2011-06-13 13:19:20 -07:00