Package org.adempiere.base.equinox
Class ExtensionList<T>
- java.lang.Object
-
- org.adempiere.base.equinox.ExtensionList<T>
-
- Type Parameters:
T
- The service this list holds implementations of.
- All Implemented Interfaces:
Iterable<T>
public class ExtensionList<T> extends Object implements Iterable<T>
This List looks up services as extensions in equinox. The extension point must be the class name of the service interface. The query attributes are checked against the attributes of the extension configuration element. In order to minimize equinox lookups, a filtering iterator is used.- Author:
- viola
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ExtensionList.ExtensionIterator<E extends T>
-
Constructor Summary
Constructors Constructor Description ExtensionList(Class<T> clazz, String extensionPointId)
ExtensionList(Class<T> type, String extensionPointId, String extensionId, ServiceQuery query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(String attribute, String value)
List<T>
asList()
T
first()
Iterator<T>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-