I have a Scala object similar to the following:
object MyConfig {
@PropertyManagerSources(Array("my.properties"))
trait MyConfigOwner extends PropertyManagerConfig {
@Key("my.key")
def getSomething(): Boolean
}
This is using Owner to manage properties.
I am trying to access the trait within a java class like such:
import com.bah.cr.common.config.MyConfig.MyConfigOwner;
public class MyJavaClass{
MyConfigOwner config = PropertyManagerConfig Factory.create(MyConfigOwner.class);
}
However, I get the error that MyConfig does not exist.
Thanks in advance.