|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.hibernate.CategoryEventListFactory
public final class CategoryEventListFactory
An EventListFactory implementation that uses a list category as key to determine, which
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.
Field Summary |
---|
Fields inherited from interface ca.odell.glazedlists.hibernate.EventListFactory |
---|
DEFAULT |
Constructor Summary | |
---|---|
CategoryEventListFactory(String category)
Constructor with list category to use. |
|
CategoryEventListFactory(String category,
ReadWriteLock lock,
ListEventPublisher publisher)
Constructor with list category, lock and publisher to use. |
Method Summary | |
---|---|
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. |
String |
getCategory()
Gets the list category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CategoryEventListFactory(String category)
public CategoryEventListFactory(String category, ReadWriteLock lock, ListEventPublisher publisher)
IllegalStateException
- if the same category is already registered with different valuesMethod Detail |
---|
public String getCategory()
public EventList createEventList()
createEventList
in interface EventListFactory
public EventList createEventList(int initalCapacity)
createEventList
in interface EventListFactory
public static void clearCategoryMapping()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |