@ExtensionPoint public interface InformationService<T extends Ref> extends Ordered
An InformationService
provides some sort of information about
something. Plug-ins should normally implement this as a entry point.
To provide an implementation of InformationService
, register an
instance of this interface as an OSGi service with the property
Constants#GENERIC_SERVICE_CLASSNAME
set to the name of the Class that
this InformationService
provides information for, and the property
KEY_SERVICE_ID
set to a unique identifier for your implementation.
Modifier and Type | Field and Description |
---|---|
static String |
KEY_SERVICE_ID
Property key to be used when registering this service with the OSGi framework.
|
ORDER_CPU_GROUP, ORDER_DEFAULT_GROUP, ORDER_IO_GROUP, ORDER_MEMORY_GROUP, ORDER_NETWORK_GROUP, ORDER_THREAD_GROUP, ORDER_USER_GROUP
Modifier and Type | Method and Description |
---|---|
Filter<T> |
getFilter()
Returns a
Filter that is used to determine if this information
source can provide information for a given target. |
InformationServiceController<T> |
getInformationServiceController(T ref)
Returns the controller for this plugin's UI.
|
getOrderValue
static final String KEY_SERVICE_ID
Filter<T> getFilter()
Filter
that is used to determine if this information
source can provide information for a given target.InformationServiceController<T> getInformationServiceController(T ref)
Copyright © 2013. All rights reserved.