Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
wushengyeyouya committed Oct 10, 2019
2 parents afc07b1 + f8c47ba commit 4b30bce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ import scala.collection.JavaConversions._
*/
object DWSHttpMessageFactory {

private val methodToHttpMessageClasses = new Reflections("com.webank").getTypesAnnotatedWith(classOf[DWSHttpMessageResult])
private val reflections = new Reflections("com.webank.wedatasphere", classOf[DWSHttpMessageResult].getClassLoader)

private val methodToHttpMessageClasses = reflections.getTypesAnnotatedWith(classOf[DWSHttpMessageResult])
.filter(ClassUtils.isAssignable(_, classOf[Result])).map { c =>
val httpMessageResult = c.getAnnotation(classOf[DWSHttpMessageResult])
httpMessageResult.value() -> DWSHttpMessageResultInfo(httpMessageResult.value(), c)
Expand Down

0 comments on commit 4b30bce

Please sign in to comment.