KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
From Scala, I'm using a Java library that expects a class argument. Example: def service: OAuthService = new ServiceBuilder() .provider(classOf[RunApi]) RunApi is Java class. I'd like to be able pass a variety of classes to provider though. I have a list of them in String format. Example, if I know the RunApi in String format; e.g. "com.me.RunApi", how can construct the equivalent to above code?
Tags (comma-separated)
Save Edits
Cancel