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
Post a Comment