| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PooledContextBuilder<C extends PDContext>
A PDContext builder interface to be used in conjunction with
 ContextPool to create the shared PDContexts for
 the pool.
ContextPool| Method Summary | |
|---|---|
|  C | build()Create a new shared context. | 
|  C | onCheckoutContext(ContextPool<C> pool,
                  C context)This method is called before the ContextPoolreturns a
 sharedPDContextto the pool caller. | 
| Method Detail | 
|---|
C build()
                          throws PDException
ContextPool to create a
 new PDContext to be shared in the pool.
PDContext to be managed by the pool.
PDException - when an error has occurred.
C onCheckoutContext(ContextPool<C> pool,
                    C context)
                                      throws PDException
ContextPool returns a
 shared PDContext to the pool caller.
 
 Implementor has the option of preparing the shared context (e.g.
 wrapping the shared context, resetting the state etc) before ContextPool.getContext()
 returns a context to the to the client code.
context - the shared context checked out.
PDException - when an error has occurred.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||