org.gvsig.fmap.crs.persistence
Class ProjectionPersistenceFactory

java.lang.Object
  extended by org.gvsig.tools.persistence.AbstractSinglePersistenceFactory
      extended by org.gvsig.fmap.crs.persistence.ProjectionPersistenceFactory
All Implemented Interfaces:
PersistenceFactory

public class ProjectionPersistenceFactory
extends AbstractSinglePersistenceFactory

Factory to persist IProjection objects. The information about the IProjection which will be persisted is its full code, containing all required information to be able to reconstruct the IProjection object through the CRSFactory.getCRS(String) method.

NOTE:To activate this factory, it must be instanced and registered in the PersistenceManager. This will be usually performed from the project Library.

Author:
2009- César Ordiñana - gvSIG team, 2010- Joaquin Jose del Cerro - gvSIG team

Constructor Summary
ProjectionPersistenceFactory()
          Creates a new ProjectionPersistenceFactory.
 
Method Summary
 Object createFromState(PersistentState state)
           
 void saveToState(PersistentState state, Object obj)
           
 
Methods inherited from class org.gvsig.tools.persistence.AbstractSinglePersistenceFactory
getDefinition, getDefinition, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, manages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectionPersistenceFactory

public ProjectionPersistenceFactory()
Creates a new ProjectionPersistenceFactory.

Method Detail

createFromState

public Object createFromState(PersistentState state)
                       throws PersistenceException
Throws:
PersistenceException

saveToState

public void saveToState(PersistentState state,
                        Object obj)
                 throws PersistenceException
Throws:
PersistenceException


Copyright © 2004-2013 gvSIG. All Rights Reserved.