Initialize scala class with self type dependencies from java -


I am working on a project that contains both scala and java code, I used to type Java in the Java code Want to use I think Scala class has some self-dependent dependencies. While creating a new example of that class from Java, I do not know how to give them.

  Features Deps1 {def dep1 = println ("Dep1")} attribute Deps2 {def dep2 = println ("dep2")} class {test class}: Depp1 with Deps2 = & gt; Def Test = {dep1 dep2}}   

If I am making an example of TestClass then I will use the new test class with Deps1 with Deps1 I can but I do not know how to do this in Java code.

I am using Scala 2.9.2. Can anyone help me on this?

If the symptoms are all complex, then Scala is the best to handle them. Expand Test Class with Deps1

  Class TestWithDeps Depp2     Write a stub in Scala:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -