Package jadex.bytecode.vmhacks
Class LoggerFilterStore
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<java.lang.Object>
-
- jadex.bytecode.vmhacks.LoggerFilterStore
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<java.lang.Object>,java.util.Collection<java.lang.Object>,java.util.List<java.lang.Object>,java.util.logging.Filter,java.util.RandomAccess
public final class LoggerFilterStore extends java.util.ArrayList<java.lang.Object> implements java.util.logging.FilterThis class abuses the java.util.logging.* API to establish a VM-wide object store.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.logging.LoggerinstanceHold the logger to prevent GC, weak-referenced globally.
-
Constructor Summary
Constructors Constructor Description LoggerFilterStore()Creates the store.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(int index)Overridestatic java.util.ArrayList<java.lang.Object>getStore()Returns a store object.static voidinject()Injects the store.booleanisLoggable(java.util.logging.LogRecord record)Unused-
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, trimToSize
-
-
-
-
Method Detail
-
get
public java.lang.Object get(int index)
Override- Specified by:
getin interfacejava.util.List<java.lang.Object>- Overrides:
getin classjava.util.ArrayList<java.lang.Object>
-
isLoggable
public boolean isLoggable(java.util.logging.LogRecord record)
Unused- Specified by:
isLoggablein interfacejava.util.logging.Filter
-
inject
public static final void inject()
Injects the store.
-
getStore
public static final java.util.ArrayList<java.lang.Object> getStore()
Returns a store object.- Parameters:
i- Store object index.clazz- Class marker.- Returns:
- The object.
-
-