How to get the class of a trait within an object defined in scala from within a java class? -


i have scala object similar following:

object myconfig {   @propertymanagersources(array("my.properties"))   trait myconfigowner extends propertymanagerconfig {     @key("my.key")     def getsomething(): boolean } 

this using owner manage properties.

i trying access trait within java class such:

import com.bah.cr.common.config.myconfig.myconfigowner;  public class myjavaclass{   myconfigowner config = propertymanagerconfig factory.create(myconfigowner.class); } 

however, error myconfig not exist.

thanks in advance.

turns out works. issue error in package of scala class.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -