I was wondering if there is a real substantial difference between

a) ILoggerFactory factory=org.slf4j.impl.StaticLoggerBinder.getLoggerFactory();

and

b) ILoggerFactory factory=(ILoggerFactory) Class .forName ("org .slf4j .impl.StaticLoggerBinder").getMethod("getLoggerFactory").invoke(null);

I mean, are the classes resolved any different?

Beside a compile-time error in case of a) if the class is missing, of course.

Regards,
Joern.
_______________________________________________
dev mailing list
dev@slf4j.org
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to