public interface ResourceMonitorFactory
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.
static final String RESOURCE_TYPE_PROPERTY
String. For example,
ResourceMonitor 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 © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0