On 05/11/2010 14:30, Tiago Batista wrote:
> Hello all
> 
> I have been trying to develop an alternative session manager that uses
> the JDBC store as a backend for a private project.
> 
> I noted after a while that although the StoreBase only depends on the
> Manager interface, it later (around line 170) casts the manager to
> PersistentManager without a single check...
> 
> I understand that at the moment, the persistent manager is the only
> manager that uses this store, but could you consider something like this
> for inclusion? This removes the explicit need for the PersistentManager,
> while maintaining functionality, and in my opinion keeping legibility.
> 
> if ( manager.findSession( keys[i] ) != null ) {
>     // recycle old backup session
>     session.recycle();
> } else {
>     // expire swapped out session
>     session.expire();
> }
> 
> Thoughts?

Create a bugzilla entry and add your patch so it doesn't get lost.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to