net.refractions.udig.catalog
Class ServiceParameterPersister

java.lang.Object
  extended by net.refractions.udig.catalog.ServiceParameterPersister

public class ServiceParameterPersister
extends java.lang.Object

Provides methods for writing IService paramaters to a preference object and for creating services from the preferences. IResolves that are not services will not be stored

locateService(URL, Map) can be overridden to not create and add the service to the catalog.

Author:
Jesse

Field Summary
protected  ICatalog localCatalog
           
protected  IServiceFactory serviceFactory
           
 
Constructor Summary
ServiceParameterPersister(ICatalog localCatalog, IServiceFactory serviceFactory)
           
ServiceParameterPersister(ICatalog localCatalog, IServiceFactory serviceFactory, java.io.File reference)
           
 
Method Summary
protected  void locateService(java.net.URL url, java.util.Map<java.lang.String,java.io.Serializable> map)
           
 void restore(Preferences node)
           
 void store(IProgressMonitor monitor, Preferences node, java.util.Collection<? extends IResolve> resolves)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localCatalog

protected final ICatalog localCatalog

serviceFactory

protected final IServiceFactory serviceFactory
Constructor Detail

ServiceParameterPersister

public ServiceParameterPersister(ICatalog localCatalog,
                                 IServiceFactory serviceFactory)

ServiceParameterPersister

public ServiceParameterPersister(ICatalog localCatalog,
                                 IServiceFactory serviceFactory,
                                 java.io.File reference)
Method Detail

restore

public void restore(Preferences node)

locateService

protected void locateService(java.net.URL url,
                             java.util.Map<java.lang.String,java.io.Serializable> map)

store

public void store(IProgressMonitor monitor,
                  Preferences node,
                  java.util.Collection<? extends IResolve> resolves)
           throws BackingStoreException,
                  java.io.IOException
Throws:
BackingStoreException
java.io.IOException