package org.example;
import org.example.beans.Cliente;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
public class Aplicacao {
public static void main(String[] args) {
XmlBeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring/applicationContext.xml"));
Sistema sistema = (Sistema)factory.getBean("Sistema");
Cliente cliente4 = new Cliente();
cliente4.setId(4);
cliente4.setNome("Teste4");
sistema.incluirCliente(cliente4);
System.out.println(sistema.getClientes());
}
}