1) There is Somelib that is added as a jar in SomeProject .
2) SomeProject has somePackage.SomeClass that implements SomeLib.SomeInterface .
3) SomeLib should be able to instantiate somePackage.SomeClass without creating SomeLib every time
How is this possible without the use of reflection? It is not possible to write to SomeLib something like import somePackage.Someclass.
I am using Netbeans.
PS I am new to Java and I tried to be as clear as possible.
source
share