Package org.apache.johnzon.core
Class BufferStrategyFactory.SingletonProvider<T>
- java.lang.Object
-
- org.apache.johnzon.core.BufferStrategyFactory.SingletonProvider<T>
-
- All Implemented Interfaces:
Serializable
,BufferStrategy.BufferProvider<T>
- Direct Known Subclasses:
BufferStrategyFactory.CharBufferSingletonProvider
- Enclosing class:
- BufferStrategyFactory
private abstract static class BufferStrategyFactory.SingletonProvider<T> extends Object implements BufferStrategy.BufferProvider<T>
-
-
Constructor Summary
Constructors Constructor Description SingletonProvider(int size)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
newBuffer()
protected abstract T
newInstance(int size)
void
release(T value)
-
-
-
Field Detail
-
buffer
protected final T buffer
-
-
Method Detail
-
newInstance
protected abstract T newInstance(int size)
-
newBuffer
public T newBuffer()
- Specified by:
newBuffer
in interfaceBufferStrategy.BufferProvider<T>
-
release
public void release(T value)
- Specified by:
release
in interfaceBufferStrategy.BufferProvider<T>
-
-