Package org.red5.server.plugin
Class Red5Plugin
java.lang.Object
org.red5.server.plugin.Red5Plugin
- All Implemented Interfaces:
IRed5Plugin
Provides more features to the plug-in system.
- Author:
- Paul Gregoire (mondain@gmail.com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doStart()
Lifecycle method called when the plug-in is started.void
doStop()
Lifecycle method called when the plug-in is stopped.getName()
Returns a name / identifier for the plug-in.Return the server reference.void
init()
Initialize the plug-invoid
setApplication
(MultiThreadedApplicationAdapter application) Set the application making use of this plug-in.void
setApplicationContext
(ApplicationContext context) Sets the top-most ApplicationContext within Red5.void
Sets a reference to the server.
-
Field Details
-
context
-
server
-
-
Constructor Details
-
Red5Plugin
public Red5Plugin()
-
-
Method Details
-
doStart
Lifecycle method called when the plug-in is started.- Specified by:
doStart
in interfaceIRed5Plugin
- Throws:
Exception
- on start error
-
doStop
Lifecycle method called when the plug-in is stopped.- Specified by:
doStop
in interfaceIRed5Plugin
- Throws:
Exception
- on stop error
-
init
public void init()Initialize the plug-in -
getName
Returns a name / identifier for the plug-in.- Specified by:
getName
in interfaceIRed5Plugin
- Returns:
- plug-in's name
-
setApplicationContext
Sets the top-most ApplicationContext within Red5.- Specified by:
setApplicationContext
in interfaceIRed5Plugin
- Parameters:
context
- application context
-
getServer
Return the server reference.- Returns:
- server
-
setServer
Sets a reference to the server.- Specified by:
setServer
in interfaceIRed5Plugin
- Parameters:
server
- server
-
setApplication
Set the application making use of this plug-in.- Parameters:
application
- application
-