@AllArgsConstructor(onConstructor = @__({ @Inject }))
public class TransactionManager {
    private final TransactionHelper tnxHelper;
    public void createTransactions(List<Details> details) {
        tnxHelper.createTransactions(details); 
    }
}
@AllArgsConstructor(onConstructor = @__({ @Inject }))
public class TransactionHelper {
    private final A a;    
    private final B b;
    public void createTransactions(List<Details> details) {
        //Some logic
    }
}
So in the above code, I want TransactionManager to be the main class and every interactions related to Transaction should go via it, like createTransactions.
So how can i make TransactionHelper as hidden? So that no one can use this class apart from TransactionManager?
Also is there any way to only make createTransactions in TransactionHelper as hidden, rather than hiding the whole class.
Thank you in advance!!
 
    