jeudi 22 octobre 2020

Method invoking between 2 packages using reflection without import

In Java have 2 packages, lets say packageA and packageB, packageA class decides which method and class in the packageB to be invoked and the order based on some logic, so i want to invoke packageB methodsin packageA without importing packageB in packageA, currently getting the below error, can somebody help me, how can i achieve this

[ here packageA is like server and packageB is like client so can not import client package in server ]

Exception while handling the request java.lang.NoSuchMethodException: t1.sc.services.signin.api.SubsToSubs.validateSource(java.lang.Object)





Aucun commentaire:

Enregistrer un commentaire