org.ow2.util.pool.impl.enhanced.impl.clue.basiccluemanager
Class BasicClueManager<E,C>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.impl.clue.basiccluemanager.BasicClueManager<E,C>
Type Parameters:
E - pool item type
C - clue type
All Implemented Interfaces:
IClueManager<E,C>

public class BasicClueManager<E,C>
extends java.lang.Object
implements IClueManager<E,C>

Author:
Gael Lalire

Constructor Summary
BasicClueManager(IClueAccessor<E,C> clueAccessor)
          Less restriction constructor.
BasicClueManager(IClueAccessor<E,C> clueAccessor, boolean clueShareable, boolean clueResetable)
           
 
Method Summary
 boolean tryMatch(E item, C clue)
           
 void unMatch(E item)
          Undo match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicClueManager

public BasicClueManager(IClueAccessor<E,C> clueAccessor)
Less restriction constructor. Allow both reset and share of clue.


BasicClueManager

public BasicClueManager(IClueAccessor<E,C> clueAccessor,
                        boolean clueShareable,
                        boolean clueResetable)
Method Detail

tryMatch

public boolean tryMatch(E item,
                        C clue)
Specified by:
tryMatch in interface IClueManager<E,C>
Parameters:
item - the item
clue - the clue
Returns:
true if item clue matches clue

unMatch

public void unMatch(E item)
Description copied from interface: IClueManager
Undo match.

Specified by:
unMatch in interface IClueManager<E,C>
Parameters:
item - the item


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.