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 can we post XML strings along with text strings in iOS -

c# - cefsharp app remember password option -

linux - Writing to Embedded Controller registers in Ubuntu 14.04 -