Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above is now obsolete (at least since 4.5.0, please fix the exact version here). Instead in your plugin folder you need to add this context, for example in this case:

 

...

a. Add modules.properties under plugins/api/timeofday/resources/META-INF/cloudstack/timeofday with following content:

Code Block
        name=timeofday
        parent=api

b. Add spring-timeofday-context.xml under plugins/api/timeofday/resources/META-INF/cloudstack/timeofday with following content:

Code Block
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                      http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                      http://www.springframework.org/schema/context
                      http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="timeOfDayManagerImpl" class="com.cloud.test.TimeOfDayManagerImpl"> </bean>
</beans>

 

...

11. Update client/tomcatconf/commands.properties.in, and add the command name (for the example this would be getTimeOfDay as stated in the @APICommand annotation).

...