Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addLookupListener(LookupListener l)
Registers a listener that is invoked when there is a possible
change in this result.
|
Set<Class<? extends T>> |
allClasses()
Get all classes represented in the result.
|
abstract Collection<? extends T> |
allInstances()
Get all instances in the result.
|
Collection<? extends Lookup.Item<T>> |
allItems()
Get all registered items.
|
abstract void |
removeLookupListener(LookupListener l)
Unregisters a listener previously added.
|
public abstract void addLookupListener(LookupListener l)
Lookup.Result
object. When it gets garbage collected
it can no longer deliver events. Thus remember to keep reference
to the object you are attaching listener to.
l
- the listener to addpublic abstract void removeLookupListener(LookupListener l)
l
- the listener to removepublic abstract Collection<? extends T> allInstances()
public Set<Class<? extends T>> allClasses()
Class
objects that will never change its contentpublic Collection<? extends Lookup.Item<T>> allItems()
Lookup.Item
that will never change its contentBuilt on May 31 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.