public abstract class BuilderBase<T extends BuilderBase> extends MutableDataSet
| Modifier and Type | Field and Description |
|---|---|
static DataKey<Iterable<Extension>> |
EXTENSIONS |
static DataKey<Boolean> |
RELOAD_EXTENSIONS |
static DataKey<Iterable<Extension>> |
UNLOAD_EXTENSIONS |
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderBase() |
protected |
BuilderBase(DataHolder options) |
protected |
BuilderBase(T other) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtensionApiPoint(Object apiPoint)
Call to add extension API point to track
|
T |
extensions(Iterable<? extends Extension> extensions) |
protected abstract boolean |
loadExtension(Extension extension)
Load extension if it is valid
|
protected void |
loadExtensions() |
protected abstract void |
preloadExtension(Extension extension)
Preload operation for extension, perform any data config and other operation needed for loading extension
|
protected abstract void |
removeApiPoint(Object apiPoint)
Remove apiPoint from state information
|
<T> MutableDataSet |
set(DataKey<? extends T> key,
T value)
Tracks keys set by extension initialization
|
void |
unloadExtension(Class extensionClass) |
void |
unloadExtensions() |
protected void |
withOptions(DataHolder options) |
clear, get, getOrCompute, merge, remove, setAll, setFrom, setIn, toImmutable, toMutableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getAll, getKeys, keySetprotected BuilderBase(DataHolder options)
protected BuilderBase()
protected BuilderBase(T other)
protected abstract void removeApiPoint(Object apiPoint)
apiPoint - api point objectprotected abstract void preloadExtension(Extension extension)
extension - to preloadprotected abstract boolean loadExtension(Extension extension)
extension - to loadpublic final T extensions(Iterable<? extends Extension> extensions)
extensions - extensions to loadthisprotected void addExtensionApiPoint(Object apiPoint)
apiPoint - point registeredpublic void unloadExtension(Class extensionClass)
public <T> MutableDataSet set(DataKey<? extends T> key, T value)
set in interface MutableDataHolderset in class MutableDataSetT - data type of the data referred by the keykey - data keyvalue - value for the keypublic void unloadExtensions()
protected void loadExtensions()
protected void withOptions(DataHolder options)
Copyright © 2019. All rights reserved.