Commit b87bda0d authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Directly use CouchDBDao instead of proxy

The use of a proxy is no longer necessary with AspectJ.
parent 9bcc2248
......@@ -120,13 +120,15 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
}
/**
* <strike>
* Allows access to the proxy object. It has to be used instead of <code>this</code> for local calls to public
* methods for caching purposes. This is an ugly but necessary temporary workaround until a better solution is
* implemented (e.g. use of AspectJ's weaving).
* @return the proxy for CouchDBDao
* </strike>
*/
private @NonNull IDatabaseDao getDatabaseDao() {
return (IDatabaseDao) AopContext.currentProxy();
return this;
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment