I am working in two java projects. The first supports OSGi components, second does not. The first depend to the second for logging.
My need is to add a callback in the second project from the first to recover a variable to add in the log.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As John B said, I defined an interface in the second project which is implemented in the first project. This one, must give an instance of the class which implements the interface to the second project.