This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.gpg4win.org/ | |
Keywords | |
windows no tty intellij | |
pgp secret key not available | |
Environment variables | |
GNUPGHOME=C:\Users\Username\AppData\Roaming\gnupg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InterceptorDataSource implements InvocationHandler { | |
private final DataSource delegate; | |
private InterceptorDataSource(final DataSource delegate) { | |
this.delegate = delegate; | |
} | |
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { | |
return (method.getName().equals("getConnection")) ? getConnection() : method.invoke(delegate, args); | |
} |