T
- the type of object to add to; typically an Actionable
subtype,
but may specify a type such as TopLevelItem
most of whose implementations are in fact Actionable
public abstract class TransientActionFactory<T> extends Object
Actionable.getAllActions()
Constructor and Description |
---|
TransientActionFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Collection<? extends Action> |
createFor(T target)
Creates actions for a given object.
|
abstract Class<T> |
type()
The type of object this factory cares about.
|
public abstract Class<T> type()
createFor(T)
do a check-cast,
so that method bodies are not loaded until actually needed.T
@Nonnull public abstract Collection<? extends Action> createFor(@Nonnull T target)
target
- an actionable objectCopyright © 2015. All rights reserved.