test_class.declarator: countries
test_class.modifier: @Autowired
  	@Qualifier("countries")
  	private
test_class.original_string: @Autowired
  	@Qualifier("countries")
  	private VectorLayer countries;
test_class.type: VectorLayer
test_class.var_name: countries
test_class.declarator: countriesInfo
test_class.modifier: @Autowired
  	@Qualifier("countriesInfo")
  	private
test_class.original_string: @Autowired
  	@Qualifier("countriesInfo")
  	private VectorLayerInfo countriesInfo;
test_class.type: VectorLayerInfo
test_class.var_name: countriesInfo
test_class.declarator: beanFactory
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private GeoToolsLayerBeanFactory beanFactory;
test_class.type: GeoToolsLayerBeanFactory
test_class.var_name: beanFactory
test_class.file: plugin/runtimeconfig/runtimeconfig/src/test/java/org/geomajas/plugin/runtimeconfig/service/factory/GeoToolsLayerBeanFactoryTest.java
test_class.identifier: GeoToolsLayerBeanFactoryTest
test_case.body: @Test
  	public void test() throws RuntimeConfigException, IOException {
  		Map<String, Object> params = new HashMap<String, Object>();
  		params.put(GeoToolsLayerBeanFactory.BEAN_NAME, "testLayer");
  		params.put(GeoToolsLayerBeanFactory.CLASS_NAME, GeoToolsLayer.class);
  		params.put(GeoToolsLayerBeanFactory.LAYER_INFO, countriesInfo);
  		params.put(GeoToolsLayerBeanFactory.STYLE_INFO, countriesInfo.getNamedStyleInfos());
  		List<BeanDefinitionHolder> beans = beanFactory.createBeans(params);
  		System.out.println(new BeanDefinitionWriterServiceImpl().toString(beans));
  		Assert.assertEquals(2, beans.size());
  	}
test_case.class_method_signature: GeoToolsLayerBeanFactoryTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: put put put put getNamedStyleInfos createBeans println toString assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: LOCATION = "location"
focal_class.modifier: public static final
focal_class.original_string: public static final String LOCATION = "location";
focal_class.type: String
focal_class.var_name: LOCATION
focal_class.declarator: PARAMETERS = "parameters"
focal_class.modifier: public static final
focal_class.original_string: public static final String PARAMETERS = "parameters";
focal_class.type: String
focal_class.var_name: PARAMETERS
focal_class.declarator: URL = "url"
focal_class.modifier: public static final
focal_class.original_string: public static final String URL = "url";
focal_class.type: String
focal_class.var_name: URL
focal_class.declarator: resourceService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ResourceService resourceService;
focal_class.type: ResourceService
focal_class.var_name: resourceService
focal_class.declarator: rand = new Random()
focal_class.modifier: private
focal_class.original_string: private Random rand = new Random();
focal_class.type: Random
focal_class.var_name: rand
focal_class.declarator: geoService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GeoService geoService;
focal_class.type: GeoService
focal_class.var_name: geoService
focal_class.file: plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/factory/GeoToolsLayerBeanFactory.java
focal_class.identifier: GeoToolsLayerBeanFactory
focal_class.class_method_signature: GeoToolsLayerBeanFactory.GeoToolsLayerBeanFactory()
focal_class.full_signature: protected  GeoToolsLayerBeanFactory()
focal_class.identifier: GeoToolsLayerBeanFactory
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  GeoToolsLayerBeanFactory()
focal_class.class_method_signature: GeoToolsLayerBeanFactory.getPriority(Map<String, Object> parameters)
focal_class.full_signature: @Override public Priority getPriority(Map<String, Object> parameters)
focal_class.identifier: getPriority
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, Object> parameters)
focal_class.return: Priority
focal_class.signature: Priority getPriority(Map<String, Object> parameters)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.createBeans(Map<String, Object> parameters)
focal_class.full_signature: @Override public List<BeanDefinitionHolder> createBeans(Map<String, Object> parameters)
focal_class.identifier: createBeans
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, Object> parameters)
focal_class.return: List<BeanDefinitionHolder>
focal_class.signature: List<BeanDefinitionHolder> createBeans(Map<String, Object> parameters)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.generateDefaultInfo(URL url)
focal_class.full_signature: private VectorLayerInfo generateDefaultInfo(URL url)
focal_class.identifier: generateDefaultInfo
focal_class.modifiers: private
focal_class.parameters: (URL url)
focal_class.return: VectorLayerInfo
focal_class.signature: VectorLayerInfo generateDefaultInfo(URL url)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.setRandomStyle(VectorLayerInfo info, SimpleFeatureType schema)
focal_class.full_signature: private void setRandomStyle(VectorLayerInfo info, SimpleFeatureType schema)
focal_class.identifier: setRandomStyle
focal_class.modifiers: private
focal_class.parameters: (VectorLayerInfo info, SimpleFeatureType schema)
focal_class.return: void
focal_class.signature: void setRandomStyle(VectorLayerInfo info, SimpleFeatureType schema)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.createRandomLabelStyle(String attributeName)
focal_class.full_signature: private LabelStyleInfo createRandomLabelStyle(String attributeName)
focal_class.identifier: createRandomLabelStyle
focal_class.modifiers: private
focal_class.parameters: (String attributeName)
focal_class.return: LabelStyleInfo
focal_class.signature: LabelStyleInfo createRandomLabelStyle(String attributeName)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.createRandomPolygonStyle()
focal_class.full_signature: private FeatureStyleInfo createRandomPolygonStyle()
focal_class.identifier: createRandomPolygonStyle
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: FeatureStyleInfo
focal_class.signature: FeatureStyleInfo createRandomPolygonStyle()
focal_class.class_method_signature: GeoToolsLayerBeanFactory.createRandomPointStyle()
focal_class.full_signature: private FeatureStyleInfo createRandomPointStyle()
focal_class.identifier: createRandomPointStyle
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: FeatureStyleInfo
focal_class.signature: FeatureStyleInfo createRandomPointStyle()
focal_class.class_method_signature: GeoToolsLayerBeanFactory.createRandomLineStyle()
focal_class.full_signature: private FeatureStyleInfo createRandomLineStyle()
focal_class.identifier: createRandomLineStyle
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: FeatureStyleInfo
focal_class.signature: FeatureStyleInfo createRandomLineStyle()
focal_class.class_method_signature: GeoToolsLayerBeanFactory.createRandomColor()
focal_class.full_signature: private Color createRandomColor()
focal_class.identifier: createRandomColor
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Color
focal_class.signature: Color createRandomColor()
focal_class.class_method_signature: GeoToolsLayerBeanFactory.toCss(Color color)
focal_class.full_signature: private String toCss(Color color)
focal_class.identifier: toCss
focal_class.modifiers: private
focal_class.parameters: (Color color)
focal_class.return: String
focal_class.signature: String toCss(Color color)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.setFeatureInfo(VectorLayerInfo info, SimpleFeatureType schema)
focal_class.full_signature: private void setFeatureInfo(VectorLayerInfo info, SimpleFeatureType schema)
focal_class.identifier: setFeatureInfo
focal_class.modifiers: private
focal_class.parameters: (VectorLayerInfo info, SimpleFeatureType schema)
focal_class.return: void
focal_class.signature: void setFeatureInfo(VectorLayerInfo info, SimpleFeatureType schema)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.setMaxExtent(VectorLayerInfo info)
focal_class.full_signature: private void setMaxExtent(VectorLayerInfo info)
focal_class.identifier: setMaxExtent
focal_class.modifiers: private
focal_class.parameters: (VectorLayerInfo info)
focal_class.return: void
focal_class.signature: void setMaxExtent(VectorLayerInfo info)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.setCRS(VectorLayerInfo info, CoordinateReferenceSystem crs)
focal_class.full_signature: private void setCRS(VectorLayerInfo info, CoordinateReferenceSystem crs)
focal_class.identifier: setCRS
focal_class.modifiers: private
focal_class.parameters: (VectorLayerInfo info, CoordinateReferenceSystem crs)
focal_class.return: void
focal_class.signature: void setCRS(VectorLayerInfo info, CoordinateReferenceSystem crs)
focal_class.class_method_signature: GeoToolsLayerBeanFactory.setLayerType(VectorLayerInfo info, GeometryDescriptor geoType)
focal_class.full_signature: private void setLayerType(VectorLayerInfo info, GeometryDescriptor geoType)
focal_class.identifier: setLayerType
focal_class.modifiers: private
focal_class.parameters: (VectorLayerInfo info, GeometryDescriptor geoType)
focal_class.return: void
focal_class.signature: void setLayerType(VectorLayerInfo info, GeometryDescriptor geoType)
focal_class.superclass: extends BaseVectorLayerBeanFactory
focal_method.body: @Override
  	public List<BeanDefinitionHolder> createBeans(Map<String, Object> parameters) throws RuntimeConfigException {
  		Resource resource = null;
  		if (checkString(LOCATION, parameters) != Priority.NONE) {
  			try {
  				resource = resourceService.find((String) parameters.get(LOCATION));
  				parameters.put(URL, resource.getURL().toExternalForm());
  			} catch (Exception e) {
  				throw new RuntimeConfigException(RuntimeConfigException.BAD_PARAMETER, LOCATION, e.getMessage());
  			}
  		}
  		if (checkClass(LAYER_INFO, VectorLayerInfo.class, parameters) == Priority.NONE) {
  			// generate the layer info
  			try {
  				VectorLayerInfo info = generateDefaultInfo(resource.getURL());
  				parameters.put(LAYER_INFO, info);
  			} catch (Exception e) {
  				throw new RuntimeConfigException(RuntimeConfigException.BAD_PARAMETER, LOCATION, e.getMessage());
  			}
  		}
  		// add styles or replace them if they were passed to us
  		if (checkCollection(STYLE_INFO, NamedStyleInfo.class, parameters) == Priority.NONE) {
  			VectorLayerInfo info = getObject(LAYER_INFO, parameters);
  			parameters.put(STYLE_INFO, info.getNamedStyleInfos());
  		} else {
  			VectorLayerInfo info = getObject(LAYER_INFO, parameters);
  			Collection<NamedStyleInfo> styles = getCollection(STYLE_INFO, parameters);
  			info.setNamedStyleInfos(new ArrayList<NamedStyleInfo>(styles));
  		}
  		return super.createBeans(parameters);
  	}
focal_method.class_method_signature: GeoToolsLayerBeanFactory.createBeans(Map<String, Object> parameters)
focal_method.full_signature: @Override public List<BeanDefinitionHolder> createBeans(Map<String, Object> parameters)
focal_method.identifier: createBeans
focal_method.invocations: checkString find get put toExternalForm getURL getMessage checkClass generateDefaultInfo getURL put getMessage checkCollection getObject put getNamedStyleInfos getObject getCollection setNamedStyleInfos createBeans
focal_method.modifiers: @Override public
focal_method.parameters: (Map<String, Object> parameters)
focal_method.return: List<BeanDefinitionHolder>
focal_method.signature: List<BeanDefinitionHolder> createBeans(Map<String, Object> parameters)