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

python - Overwriting the save method of a Django model -

java - how to browse all messages from 2 different MQQueue in the same function? -

java - From File[] files to directory -