Package jadex.bytecode.vmhacks
Class LoggerFilterStore
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Object>
,Collection<Object>
,List<Object>
,Filter
,RandomAccess
,SequencedCollection<Object>
This class abuses the java.util.logging.* API to establish a
VM-wide object store.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Logger
Hold the logger to prevent GC, weak-referenced globally.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
instance
Hold the logger to prevent GC, weak-referenced globally.
-
-
Constructor Details
-
LoggerFilterStore
public LoggerFilterStore()Creates the store.
-
-
Method Details
-
get
Override -
isLoggable
Unused- Specified by:
isLoggable
in interfaceFilter
-
inject
public static final void inject()Injects the store. -
getStore
Returns a store object.- Parameters:
i
- Store object index.clazz
- Class marker.- Returns:
- The object.
-