it.geosolutions.geobatch.catalog.file
Class FileBasedCatalogImpl

java.lang.Object
  extended by it.geosolutions.geobatch.catalog.impl.BaseIdentifiable
      extended by it.geosolutions.geobatch.catalog.impl.BaseResource
          extended by it.geosolutions.geobatch.catalog.impl.BasePersistentResource<CatalogConfiguration>
              extended by it.geosolutions.geobatch.catalog.impl.BaseCatalog
                  extended by it.geosolutions.geobatch.catalog.file.FileBasedCatalogImpl
All Implemented Interfaces:
Catalog, FileBaseCatalog, Identifiable, PersistentResource<CatalogConfiguration>, Resource, java.lang.Cloneable, org.springframework.context.ApplicationContextAware

public class FileBasedCatalogImpl
extends BaseCatalog
implements FileBaseCatalog, org.springframework.context.ApplicationContextAware

A Catalog based on an xml marshalled file.

Author:
Simone Giannecchini, GeoSolutions

Field Summary
 DataDirHandler dataDirHandler
           
 
Constructor Summary
FileBasedCatalogImpl(java.lang.String id, java.lang.String name, java.lang.String description)
           
 
Method Summary
 java.io.File getBaseDirectory()
          Getter for the base directory.
 DataDirHandler getDataDirHandler()
           
 void init()
          init method called by Spring
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
protected  void setBaseDirectory(java.io.File baseDirectory)
           
 void setDataDirHandler(DataDirHandler dataDirHandler)
           
 java.lang.String toString()
           
 
Methods inherited from class it.geosolutions.geobatch.catalog.impl.BaseCatalog
add, add, added, addListener, dispose, event, fireAdded, fireModified, getFlowManager, getFlowManagerByName, getFlowManagers, getListeners, getResource, getResourceByName, getResources, remove, removed, removeListener, save
 
Methods inherited from class it.geosolutions.geobatch.catalog.impl.BasePersistentResource
getConfiguration, getDAO, load, persist, remove, setConfiguration, setDAO
 
Methods inherited from class it.geosolutions.geobatch.catalog.impl.BaseIdentifiable
clone, getDescription, getId, getName, setDescription, setId, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.geosolutions.geobatch.catalog.Catalog
add, add, addListener, dispose, getDAO, getFlowManager, getFlowManagerByName, getFlowManagers, getListeners, getResource, getResourceByName, getResources, remove, removeListener, save, setDAO
 
Methods inherited from interface it.geosolutions.geobatch.catalog.PersistentResource
getConfiguration, load, persist, remove, setConfiguration
 
Methods inherited from interface it.geosolutions.geobatch.catalog.Identifiable
getDescription, getId, getName, setDescription, setId, setName
 

Field Detail

dataDirHandler

public DataDirHandler dataDirHandler
Constructor Detail

FileBasedCatalogImpl

public FileBasedCatalogImpl(java.lang.String id,
                            java.lang.String name,
                            java.lang.String description)
Method Detail

init

public void init()
          throws java.lang.Exception
init method called by Spring

Throws:
java.lang.Exception - if could not init data dir

getBaseDirectory

public java.io.File getBaseDirectory()
Description copied from interface: FileBaseCatalog
Getter for the base directory.

Specified by:
getBaseDirectory in interface FileBaseCatalog
Returns:
baseDirectory

setBaseDirectory

protected void setBaseDirectory(java.io.File baseDirectory)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getDataDirHandler

public DataDirHandler getDataDirHandler()

setDataDirHandler

public void setDataDirHandler(DataDirHandler dataDirHandler)


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.