public abstract class LoaderBase extends Object implements org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected static org.springframework.context.ApplicationContext |
applicationContext
We store the application context so we can access it later.
|
protected static ThreadLocal<IApplicationLoader> |
loader
Loader for new applications.
|
static Map<String,IApplicationContext> |
red5AppCtx
Current Red5 application context, set by the different loaders.
|
protected String |
webappFolder
Folder containing the webapps.
|
Constructor and Description |
---|
LoaderBase() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.context.ApplicationContext |
getApplicationContext()
Getter for application context
|
static IApplicationLoader |
getApplicationLoader()
Getter for the application loader.
|
static IApplicationContext |
getRed5ApplicationContext(String path)
Getter for a Red5 application context.
|
static Map<String,IApplicationContext> |
getRed5ApplicationContexts()
Returns the map containing all of the registered Red5 application contexts.
|
void |
removeContext(String path)
Remove context from the current host.
|
static IApplicationContext |
removeRed5ApplicationContext(String path)
Remover for a Red5 application context.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context)
Setter for application context.
|
static void |
setApplicationLoader(IApplicationLoader loader)
Setter for the application loader.
|
static void |
setRed5ApplicationContext(String path,
IApplicationContext context)
Setter for a Red5 application context.
|
void |
setWebappFolder(String webappFolder)
Set the folder containing webapps.
|
abstract void |
shutdown()
Entry point to shutdown this loader.
|
protected static org.springframework.context.ApplicationContext applicationContext
public static Map<String,IApplicationContext> red5AppCtx
protected static ThreadLocal<IApplicationLoader> loader
protected String webappFolder
public static IApplicationLoader getApplicationLoader()
public static void setApplicationLoader(IApplicationLoader loader)
loader
- Application loaderpublic static Map<String,IApplicationContext> getRed5ApplicationContexts()
public static IApplicationContext getRed5ApplicationContext(String path)
path
- pathpublic static void setRed5ApplicationContext(String path, IApplicationContext context)
path
- pathcontext
- Red5 application contextpublic static IApplicationContext removeRed5ApplicationContext(String path)
path
- pathpublic static org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
context
- Application contextorg.springframework.beans.BeansException
- Abstract superclass for all exceptions thrown in the beans
package and subpackagespublic void setWebappFolder(String webappFolder)
webappFolder
- web app folderpublic void removeContext(String path)
path
- Pathpublic abstract void shutdown()
Copyright © 2006-2012 The Red5 Project