Using the @Autowired annotation, I've managed to succesfully call the methods i needed from another class, however not all of them, since some methods are private.
Is it possible to call them without making them public? How?
Using the @Autowired annotation, I've managed to succesfully call the methods i needed from another class, however not all of them, since some methods are private.
Is it possible to call them without making them public? How?
You cannot do that. Dependency injection is just a trick, that takes handling of interfaces and implementations from developer. Framework is doing that for you. The resulting object has same properties as if it was created using new
keyword.