I have this invocation from scala class to Java
private def initSpringActorContext: ConfigurableApplicationContext = {
val resourceLocations = Array[String]("aopContext.xml", "akkaContext.xml")
new GenericXmlApplicationContext(resourceLocations))
}
And the java class expect
public GenericXmlApplicationContext(String... resourceLocations) {
this.load(resourceLocations);
this.refresh();
}
I´ve tried to cast this with import collection.JavaConverters._
But I cannot make it works with Arrays.
Any suggestion?