org.encog.persist
Class PersistorRegistry

java.lang.Object
  extended by org.encog.persist.PersistorRegistry

public final class PersistorRegistry
extends Object

Registry to hold persistors. This is a singleton.


Method Summary
 void add(EncogPersistor persistor)
          Add a persistor.
static PersistorRegistry getInstance()
           
 EncogPersistor getPersistor(Class<?> clazz)
          Get a persistor.
 EncogPersistor getPersistor(String name)
          Get the persistor by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PersistorRegistry getInstance()
Returns:
The singleton instance.

add

public void add(EncogPersistor persistor)
Add a persistor.

Parameters:
persistor - The persistor to add.

getPersistor

public EncogPersistor getPersistor(Class<?> clazz)
Get a persistor.

Parameters:
clazz - The class to get the persistor for.
Returns:
Return the persistor.

getPersistor

public EncogPersistor getPersistor(String name)
Get the persistor by name.

Parameters:
name - The name of the persistor.
Returns:
The persistor.


Copyright © 2014. All Rights Reserved.