package org.minimalj.example.shoppingcart;

import org.minimalj.application.Application;
import org.minimalj.application.Configuration;
import org.minimalj.repository.memory.InMemoryRepository;
import org.minimalj.rest.RestServer;

public class ShoppingCartApplication extends Application {

	@Override
	public Class<?>[] getEntityClasses() {
		return new Class[] { Product.class };
	}

	public static void main(String[] args) {
		Configuration.set("MjRepository", InMemoryRepository.class.getName());

		RestServer.start(new ShoppingCartApplication());
	}
}

@@ -71,22 +71,24 @@
 ication.
-Applic
+Configur
 ation;%0D%0A
@@ -107,36 +107,97 @@
 inimalj.
-application.Configur
+frontend.impl.web.MjHttpHandler;%0D%0Aimport org.minimalj.frontend.impl.web.WebApplic
 ation;%0D%0A
@@ -284,20 +284,25 @@
 est.Rest
-Serv
+HttpHandl
 er;%0D%0A%0D%0Ap
@@ -345,16 +345,19 @@
 extends 
+Web
 Applicat
@@ -465,16 +465,113 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09@Override%0D%0A%09public MjHttpHandler createHttpHandler() %7B%0D%0A%09%09return new RestHttpHandler();%0D%0A%09%7D%0D%0A%09%0D%0A
 %09public 
@@ -682,62 +682,8 @@
 ));%0D
-%0A%0D%0A%09%09RestServer.start(new ShoppingCartApplication());%0D
 %0A%09%7D%0D

use new rest handler