Package org.red5.server.api.persistence
Class PersistenceUtils
java.lang.Object
org.red5.server.api.persistence.PersistenceUtils
Helper class for persistence.
- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IPersistenceStore
getPersistenceStore
(ResourcePatternResolver resolver, String className) Returns persistence store object.private static Constructor<?>
getPersistenceStoreConstructor
(Class<?> theClass, Class<?>[] interfaces) Returns persistence store object class constructor
-
Constructor Details
-
PersistenceUtils
public PersistenceUtils()
-
-
Method Details
-
getPersistenceStoreConstructor
private static Constructor<?> getPersistenceStoreConstructor(Class<?> theClass, Class<?>[] interfaces) throws Exception Returns persistence store object class constructor- Parameters:
theClass
- Persistence store classinterfaces
- Interfaces that are being implemented by persistence store object class- Returns:
- Constructor
- Throws:
Exception
-
getPersistenceStore
public static IPersistenceStore getPersistenceStore(ResourcePatternResolver resolver, String className) throws Exception Returns persistence store object. Persistence store is a special object that stores persistence objects and provides methods to manipulate them (save, load, remove, list).- Parameters:
resolver
- Resolves connection pattern into Resource objectclassName
- Name of persistence class- Returns:
- IPersistence store object that provides methods for persistence object handling
- Throws:
Exception
- if error
-