cfr icon indicating copy to clipboard operation
cfr copied to clipboard

ClassFileSource.Factory.createInternalClassFileSource is not available for delegation

Open BarrensZeppelin opened this issue 4 years ago • 1 comments

Hello,

It is suggested that you can use the ClassFileSource.Factory to get a standard instance of ClassFileSource which you can delegate to. The method is however not public, but package-private, which means that it is unusable for projects using the library.

In my use case I want to change how a single class is loaded but retain the default for all others.

BarrensZeppelin avatar Mar 27 '20 10:03 BarrensZeppelin

However, both ClassFileSourceImpl and OptionsImpl are public, so I guess you can do what the factory does yourself.

new ClassFileSourceImpl(OptionsImpl.getFactory().create(Map.of()));

Maybe the JavaDoc should just be changed instead?

BarrensZeppelin avatar Mar 27 '20 10:03 BarrensZeppelin