net.sourceforge.basher.impl
Class LimitedInMemoryEntityRegistry

java.lang.Object
  extended by net.sourceforge.basher.impl.InMemoryEntityRegistry
      extended by net.sourceforge.basher.impl.LimitedInMemoryEntityRegistry
All Implemented Interfaces:
EntityRegistry

public class LimitedInMemoryEntityRegistry
extends InMemoryEntityRegistry

Version:
1.0
Author:
Johan Lindquist

Constructor Summary
LimitedInMemoryEntityRegistry()
           
 
Method Summary
 void register(String entityIdentifier, Object entityID)
          Register a certain type as having been created.
 void setLimit(int limit)
           
 
Methods inherited from class net.sourceforge.basher.impl.InMemoryEntityRegistry
getAllRegistered, getNumRegistered, getRandom, getRandomSelection, setLog, setRandomizer, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitedInMemoryEntityRegistry

public LimitedInMemoryEntityRegistry()
Method Detail

setLimit

public void setLimit(int limit)

register

public void register(String entityIdentifier,
                     Object entityID)
Description copied from interface: EntityRegistry
Register a certain type as having been created. The entityIdentifier is a key into a collection of entity instances being held by the EntityRegistry.

Specified by:
register in interface EntityRegistry
Overrides:
register in class InMemoryEntityRegistry
Parameters:
entityIdentifier - The type of the entity being registered
entityID - The entity being registered


Copyright © 2006-2010 Basher Team. All Rights Reserved.