Guys, In order to make a JPA appender, as discussed we'll have to add an OPTIONAL dependency on the persistence API. I'd like to restrict the source code so that ONLY classes in o.a.l.log4j.core.appender.db.jpa can use the JPA classes. I know from working in Tomcat source code that you can, somehow, impose such a restriction. For example, Tomcat classes in o.a.t.websocket cannot import classes from o.a.t.websocket.server (it results in a pre-compile-time error, but classes in o.a.t.websocket.server CAN import classes from o.a.t.websocket.
In the context of Log4j 2 and Maven, how would I achieve the same to ONLY allow o.a.l.log4j.core.appender.db.jpa classes to import javax.persistence classes? Nick
smime.p7s
Description: S/MIME cryptographic signature