"KevinConner" wrote:
....
Think of my solution as the PrintWriter that surrounds the Writer ;-)
public void MyAspect extends KevinConnersNiceSolution //or/and additional configuration { Object firstAdviceBefore(...) //@@before Object firstAdviceAfter(...) //@@after } // and try to imagine that this class has only one! write method public java.io.Writer { void write(char[] cbuf) //Write an array of characters. abstract void close() //Close the stream, flushing it first. abstract void flush() //Flush the stream. }
public java.io.Writer { void write(String str) //Write a string. void write(String str, int off, int len) //Write a portion of a string.void write(char[] cbuf) ... } // and the way I try to persuade you to public void MyAspect { @before Object firstPersistenceAdvice(...) @after Object secondAdviceAfter(...) Object standardAroundAdvice(..)... }
It is not correct type of comparition.
and you've written several emails to Sun complaining about Java API too big in this case
Yeah, nice to be on the second side of the mirror...