Package jadex.bytecode.vmhacks
Class LoggerFilterStore
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Object>,Collection<Object>,List<Object>,Filter,RandomAccess
This class abuses the java.util.logging.* API to establish a
VM-wide object store.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static LoggerHold 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, clear, clone, contains, ensureCapacity, equals, forEach, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
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:
isLoggablein 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.
-