package devopsdistilled.operp.client.context.items;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import devopsdistilled.operp.client.items.models.BrandModel;
import devopsdistilled.operp.client.items.models.CategoryModel;
import devopsdistilled.operp.client.items.models.ItemModel;
import devopsdistilled.operp.client.items.models.ManufacturerModel;
import devopsdistilled.operp.client.items.models.ProductModel;
import devopsdistilled.operp.client.items.models.impl.BrandModelImpl;
import devopsdistilled.operp.client.items.models.impl.CategoryModelImpl;
import devopsdistilled.operp.client.items.models.impl.ItemModelImpl;
import devopsdistilled.operp.client.items.models.impl.ManufacturerModelImpl;
import devopsdistilled.operp.client.items.models.impl.ProductModelImpl;

@Configuration
public class EntityModelContext {
	@Bean
	public ItemModel itemModel() {
		return new ItemModelImpl();
	}

	@Bean
	public ProductModel productModel() {
		return new ProductModelImpl();
	}

	@Bean
	public BrandModel brandModel() {
		return new BrandModelImpl();
	}

	@Bean
	public CategoryModel categoryModel() {
		return new CategoryModelImpl();
	}

	@Bean
	public ManufacturerModel manufacturerModel() {
		return new ManufacturerModelImpl();
	}

}

@@ -1300,10 +1300,533 @@
 ();%0A%09%7D%0A%0A
+//%09@Bean%0A//%09public RmiServiceExporter rmiEmployeeServiceExporter() %7B%0A//%09%09RmiServiceExporter rmiServiceExportor = new RmiServiceExporter();%0A//%09%09rmiServiceExportor.setServiceInterface(ItemModel.class);%0A//%09%09// String serviceName = rmiServiceExportor.getServiceInterface()%0A//%09%09// .getCanonicalName();%0A//%09%09rmiServiceExportor.setServiceName(%22ItemModel%22);%0A//%09%09rmiServiceExportor.setService(itemModel());%0A//%09%09rmiServiceExportor.setRegistryPort(1099);%0A//%09%09System.out.println(rmiServiceExportor);%0A//%09%09return rmiServiceExportor;%0A//%09%7D%0A
 %7D%0A

Remove RmiExporterBean for EntityModel