T
- as Token
PE
- as produced event from the TokenEventSupplier
public abstract class SynchronousTokenChangeEventSupplierBackedListener<T extends Token<T>,PE extends ChildTokenEvent<T>> extends SynchronousTokenChangeListener<T,TokenEvent<T>>
SynchronousTokenChangeListener
backed by a ClassReloadingStrategy.Strategy
or code that generates further events based on the original one.TokenEventSupplier.onTokenChange(SupplierTokenEvent)
,
SupplierTokenEvent
,
Serialized FormConstructor and Description |
---|
SynchronousTokenChangeEventSupplierBackedListener() |
Modifier and Type | Method and Description |
---|---|
TokenEventSupplier<T> |
getTokenEventSupplier() |
protected abstract void |
onEventSupplierGenEvents(Supplier<List<PE>> eventsSupplier,
TokenEvent<T> change) |
protected void |
onSynchChange(ChangeGenerator<TokenEvent<T>> changeGenerator,
TokenEvent<T> change)
To Override
|
void |
setTokenEventSupplier(TokenEventSupplier<T> tokenEventSupplier) |
onChange
public SynchronousTokenChangeEventSupplierBackedListener()
protected void onSynchChange(ChangeGenerator<TokenEvent<T>> changeGenerator, TokenEvent<T> change)
SynchronousTokenChangeListener
onSynchChange
in class SynchronousTokenChangeListener<T extends Token<T>,TokenEvent<T extends Token<T>>>
changeGenerator
- of TokenEvent
change
- as SynchronousChange
, expected sub type SupplierTokenEvent
protected abstract void onEventSupplierGenEvents(Supplier<List<PE>> eventsSupplier, TokenEvent<T> change)
public TokenEventSupplier<T> getTokenEventSupplier()
public void setTokenEventSupplier(TokenEventSupplier<T> tokenEventSupplier)
Copyright © 2018. All rights reserved.