Package org.red5.server
Class LoaderBase
java.lang.Object
org.red5.server.LoaderBase
- All Implemented Interfaces:
Aware
,ApplicationContextAware
- Direct Known Subclasses:
TomcatLoader
Base class for all JEE application loaders.
- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de), Paul Gregoire (mondain@gmail.com)
-
Field Summary
Modifier and TypeFieldDescriptionprotected static ApplicationContext
We store the application context so we can access it later.protected static ThreadLocal<IApplicationLoader>
Loader for new applications.private static org.slf4j.Logger
static final Map<String,
IApplicationContext> Current Red5 application context, set by the different loaders.protected String
Folder containing the webapps. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationContext
Getter for application contextstatic IApplicationLoader
Getter for the application loader.static IApplicationContext
Getter for a Red5 application context.static Map<String,
IApplicationContext> Returns the map containing all of the registered Red5 application contexts.void
removeContext
(String path) Remove context from the current host.static IApplicationContext
Remover for a Red5 application context.void
setApplicationContext
(ApplicationContext context) Setter for application context.static void
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.
-
Field Details
-
log
private static org.slf4j.Logger log -
applicationContext
We store the application context so we can access it later. -
red5AppCtx
Current Red5 application context, set by the different loaders. -
loader
Loader for new applications. -
webappFolder
Folder containing the webapps.
-
-
Constructor Details
-
LoaderBase
public LoaderBase()
-
-
Method Details
-
getApplicationLoader
Getter for the application loader.- Returns:
- Application loader
-
setApplicationLoader
Setter for the application loader.- Parameters:
loader
- Application loader
-
getRed5ApplicationContexts
Returns the map containing all of the registered Red5 application contexts.- Returns:
- a map
-
getRed5ApplicationContext
Getter for a Red5 application context.- Parameters:
path
- path- Returns:
- Red5 application context
-
setRed5ApplicationContext
Setter for a Red5 application context.- Parameters:
path
- pathcontext
- Red5 application context
-
removeRed5ApplicationContext
Remover for a Red5 application context.- Parameters:
path
- path- Returns:
- Red5 application context
-
getApplicationContext
Getter for application context- Returns:
- Application context
-
setApplicationContext
Setter for application context.- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Parameters:
context
- Application context- Throws:
BeansException
- Abstract superclass for all exceptions thrown in the beans package and subpackages
-
setWebappFolder
Set the folder containing webapps.- Parameters:
webappFolder
- web app folder
-
removeContext
Remove context from the current host.- Parameters:
path
- Path
-