T- The type for the Resource.
public interface ResourceMonitorFactory<T>
RESOURCE_TYPE_PROPERTYmandatory property. This property indicates which type of Resource Monitor a Resource Monitor Factory is able to create. The type can also be retrieved through a call to
getType(). The type MUST be unique (two Resource Monitor Factory instances MUST not have the same type).
|Modifier and Type||Field and Description|
Resource type property.
|Modifier and Type||Method and Description|
Creates a new ResourceMonitor instance.
Returns the type of ResourceMonitor instance this factory is able to create.
ResourceMonitor<T> createResourceMonitor(ResourceContext resourceContext) throws ResourceMonitorException
ResourceContext.addResourceMonitor(ResourceMonitor)is called by the factory). The newly ResourceMonitor instance is disabled. It can be enabled by calling
resourceContext- ResourceContext instance associated with the newly created ResourceMonitor instance
ResourceMonitorException- If the factory is unable to create a ResourceMonitor For example, when a ResourceMonitor of this type already exists for this ResourceContext
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0