On May 2, 2006, at 1:05 PM, Alex Cruise wrote:
peter royal wrote:Is there any way this could be made friendlier to IoC containers by making the method non-static and adding it to a longer-lived class?Call ByteBuffer.setUseDirectBuffers( false )and it will always use heap buffers.Thanks,
Currently, ByteBuffer allocation is done via static methods. The way to do that would be to remove the static methods, and pass around the ByteBufferAllocator anywhere that a ByteBuffer is needed.. which will trickle around to many places in the code, alas.
If we were to do that, pre-1.0 is certainly the time.. anyone else have thoughts on this?
-pete -- [EMAIL PROTECTED] - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
