package devopsdistilled.operp.client.context;

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

import devopsdistilled.operp.client.context.items.ItemRmiContext;
import devopsdistilled.operp.client.context.stock.StockRmiContext;

@Configuration
@Import({ ItemRmiContext.class, StockRmiContext.class })
public class RmiContext {

}

@@ -71,94 +71,348 @@
 ork.
-context.annotation.Configuration;%0Aimport org.springframework.context.annotation.Import
+beans.factory.annotation.Value;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.context.annotation.Import;%0Aimport org.springframework.context.annotation.PropertySource;%0Aimport org.springframework.context.support.PropertySourcesPlaceholderConfigurer
 ;%0A%0Ai
@@ -559,16 +559,57 @@
 uration%0A
+@PropertySource(%22client/rmi.properties%22)%0A
 @Import(
@@ -684,10 +684,219 @@
 text %7B%0A%0A
+%09@Value(%22$%7Brmi.url%7D%22)%0A%09protected String rmiUrl;%0A%0A%09@Bean%0A%09public static PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer() %7B%0A%09%09return new PropertySourcesPlaceholderConfigurer();%0A%09%7D%0A%0A
 %7D%0A

Create rmiUrl field to be used by *RmiContext