org.encog.persist
Class PersistorRegistry
- java.lang.Object
-
- org.encog.persist.PersistorRegistry
-
public final class PersistorRegistry extends java.lang.ObjectRegistry to hold persistors. This is a singleton.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(EncogPersistor persistor)Add a persistor.static PersistorRegistrygetInstance()EncogPersistorgetPersistor(java.lang.Class<?> clazz)Get a persistor.EncogPersistorgetPersistor(java.lang.String name)Get the persistor by name.
-
-
-
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(java.lang.Class<?> clazz)
Get a persistor.- Parameters:
clazz- The class to get the persistor for.- Returns:
- Return the persistor.
-
getPersistor
public EncogPersistor getPersistor(java.lang.String name)
Get the persistor by name.- Parameters:
name- The name of the persistor.- Returns:
- The persistor.
-
-
DMelt 3.0 © DataMelt by jWork.ORG