org.netbeans.spi.autoupdate
Class AutoupdateClusterCreator
java.lang.Object
org.netbeans.spi.autoupdate.AutoupdateClusterCreator
public abstract class AutoupdateClusterCreator
- extends Object
Class that is supposed to be implemented by application
providers that can control launcher in order to modify
the list of provided clusters.
- Since:
- 1.2
Method Summary |
protected abstract File |
findCluster(String clusterName)
Finds the right cluster directory for given cluster name. |
protected abstract File[] |
registerCluster(String clusterName,
File cluster)
Changes the launcher to know about the new cluster and
use it next time the system starts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoupdateClusterCreator
public AutoupdateClusterCreator()
findCluster
protected abstract File findCluster(String clusterName)
- Finds the right cluster directory for given cluster name.
This method can return null if no such cluster name is known or
understandable, otherwise it returns a file object representing
not existing directory that will be created later
to host hold the content of the cluster.
- Parameters:
clusterName
- the name of the cluster the autoupdate client is searching for
- Returns:
- null or File object of the cluster to be created
registerCluster
protected abstract File[] registerCluster(String clusterName,
File cluster)
throws IOException
- Changes the launcher to know about the new cluster and
use it next time the system starts.
- Parameters:
clusterName
- the name of the clustercluster
- file previously returned by findCluster
- Returns:
- the list of current cluster directories, including the newly added one
- Throws:
IOException
- if the registration fails