-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
This tutorial will help you to create an application using chameleon framework.
In this step you will be able to start using chameleon. To see how install chalemeon in Maven please see the Getting Started with Maven guide, or if you prefer to use Gradle please visit Getting Started with Gradle.
After install chameleon framework dependency is necessary to configure the application to work propertly, the first step is configure the main class. So with need to extend the class AbstractChameleonInitializer.
Why extends? The idea to extend is to create a support to Spring framework because we need to inject our DTO repositories into the context.
package com.jjm.example.init;
import com.jjm.chameleon.init.AbstractChameleonInitializer;
public class Application extends AbstractChameleonInitializer {
}
Now we need to run our ChameleonApplication into the main.
package com.jjm.example.init;
import com.jjm.chameleon.init.AbstractChameleonInitializer;
import com.jjm.chameleon.context.ChameleonApplication;
public class Application extends AbstractChameleonInitializer {
ChameleonApplication.run(Application.class);
}
ChameleonApplication will run a series of process to create our repositories