public final class CategoryEventListFactory extends java.lang.Object implements EventListFactory
ListEventPublisher
and ReadWriteLock
should be used to create EventLists.
All factory instances that use the same category produce EventLists wich share the same publisher
and lock.DEFAULT
Constructor and Description |
---|
CategoryEventListFactory(java.lang.String category)
Constructor with list category to use.
|
CategoryEventListFactory(java.lang.String category,
ReadWriteLock lock,
ListEventPublisher publisher)
Constructor with list category, lock and publisher to use.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearCategoryMapping()
Helper method to clear the mapping of categories to publisher/lock pairs.
|
EventList |
createEventList()
Creates a new EventList.
|
EventList |
createEventList(int initalCapacity)
Create a new EventList with an initial capacity.
|
java.lang.String |
getCategory()
Gets the list category.
|
public CategoryEventListFactory(java.lang.String category)
public CategoryEventListFactory(java.lang.String category, ReadWriteLock lock, ListEventPublisher publisher)
java.lang.IllegalStateException
- if the same category is already registered with different valuespublic java.lang.String getCategory()
public EventList createEventList()
createEventList
in interface EventListFactory
public EventList createEventList(int initalCapacity)
createEventList
in interface EventListFactory
public static void clearCategoryMapping()
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2016-06-08 1:48