There are 4 projects.
Project2 has 2 projects in build path. i.e.
Project1 has a class that reads property from a properties file.
can access that class to getProperty.
project4 tiene solo uno
project3 in its build path.
project3 is in build path of two projects.
I want to get property in
project4. I have no choice to include
Whatelse can I do to get property?
Can I do one think like: While starting project2. Load a list with properties in project3. Then access that from project4?
preguntado el 02 de febrero de 12 a las 11:02
Muhammad Imran Tariq
As proyecto 2 can have access to classes in proyecto 1, so an interface will be created in proyecto 3. Una clase in project 2 will implement this interface having function to read property from properties file. proyecto 4 is in shared library of proyecto 2. Spring does a trick. A method in project 4 gets bean through applicationcontext, of that clase which was created in proyecto 2. After getting this bean, property can be accessed.