List of usage examples for org.apache.commons.collections StaticBucketMap StaticBucketMap
public StaticBucketMap()
From source file:org.apache.avalon.fortress.impl.AbstractContainer.java
/** * Create the hint map for a role. The map may have to take care for thread-safety. * By default a StaticBucketMap is created, but you may change the implementation * or increment the number of buckets according your needs. * * <div>// w w w . j a v a2 s . c o m * <span style="font-weight:strong;text-color: red;">WARNING:</span> * This Map must be threadsafe, so either use the * <code>StaticBucketMap</code> or a synchronized <code>Map</code>. * Otherwise you will experience erratic behavior due to the nature * of the asyncronous component management. * </div> * * @return the hint map implementation */ protected Map createHintMap() { return new StaticBucketMap(); }