Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.persist
Class PersistorRegistry

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

    public 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.