|
org.netbeans.modules.autoupdate.services 1.16.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.autoupdate.UpdateUnitProviderFactory
public final class UpdateUnitProviderFactory
The factory handles UpdateUnitProvider
, allow to create or removed them,
browse the providers or refresh its content.
Method Summary | |
---|---|
UpdateUnitProvider |
create(String name,
File... files)
Creates new UpdateUnitProvider for temporary usage. |
UpdateUnitProvider |
create(String name,
String displayName,
URL url)
Creates new UpdateUnitProvider and store its preferences. |
UpdateUnitProvider |
create(String name,
String displayName,
URL url,
UpdateUnitProvider.CATEGORY category)
Creates new UpdateUnitProvider and store its preferences. |
static UpdateUnitProviderFactory |
getDefault()
Returns singleton instance of UpdateUnitProviderFactory |
List<UpdateUnitProvider> |
getUpdateUnitProviders(boolean onlyEnabled)
Returns java.util.List of UpdateUnitProvider . |
void |
refreshProviders(ProgressHandle handle,
boolean force)
Re-read list of UpdateUnitProvider from infrastucture and refresh its content
if force parameter is true . |
void |
remove(UpdateUnitProvider unitProvider)
Removes the UpdateUnitProvider from the infrastucture. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UpdateUnitProviderFactory getDefault()
UpdateUnitProviderFactory
public List<UpdateUnitProvider> getUpdateUnitProviders(boolean onlyEnabled)
java.util.List
of UpdateUnitProvider
. The parameter
onlyEnabled specifies if only enabled provider should be returned or all.
onlyEnabled
-
public UpdateUnitProvider create(String name, String displayName, URL url, UpdateUnitProvider.CATEGORY category)
UpdateUnitProvider
and store its preferences. The new provider
is based of the given URL where is the Autoupdate Catalog.
name
- name of provider, this name is used by Autoupdate infrastructure for manimulating
of providers.displayName
- display name of providerurl
- URL to Autoupdate Catalogcategory
- quality classification for every UpdateElement
comming from returned UpdateUnitProvider
public UpdateUnitProvider create(String name, String displayName, URL url)
UpdateUnitProvider
and store its preferences. The new provider
is based of the given URL where is the Autoupdate Catalog.
name
- name of provider, this name is used by Autoupdate infrastructure for manimulating
of providers.displayName
- display name of providerurl
- URL to Autoupdate Catalog
public UpdateUnitProvider create(String name, File... files)
UpdateUnitProvider
for temporary usage. This provider contains
content of given NBMs.
name
- name of provider, this name is used by Autoupdate infrastructure for manimulating
of providers.files
- NBM files
public void remove(UpdateUnitProvider unitProvider)
UpdateUnitProvider
from the infrastucture.
unitProvider
- public void refreshProviders(ProgressHandle handle, boolean force) throws IOException
UpdateUnitProvider
from infrastucture and refresh its content
if force
parameter is true
.
handle
- started ProgressHandle or nullforce
- if true then refresh(true)
is called on all UpdateUnitProvider
IOException
|
org.netbeans.modules.autoupdate.services 1.16.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |