Package org.red5.server.plugin
Class Red5Plugin
- java.lang.Object
-
- org.red5.server.plugin.Red5Plugin
-
- All Implemented Interfaces:
IRed5Plugin
public abstract class Red5Plugin extends Object implements IRed5Plugin
Provides more features to the plug-in system.- Author:
- Paul Gregoire ([email protected])
-
-
Constructor Summary
Constructors Constructor Description Red5Plugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStart()
Lifecycle method called when the plug-in is started.void
doStop()
Lifecycle method called when the plug-in is stopped.String
getName()
Returns a name / identifier for the plug-in.Server
getServer()
Return the server reference.void
init()
Initialize the plug-invoid
setApplication(MultiThreadedApplicationAdapter application)
Set the application making use of this plug-in.void
setApplicationContext(org.springframework.context.ApplicationContext context)
Sets the top-most ApplicationContext within Red5.void
setServer(Server server)
Sets a reference to the server.
-
-
-
Field Detail
-
context
protected org.springframework.context.ApplicationContext context
-
server
protected Server server
-
-
Method Detail
-
doStart
public void doStart() throws Exception
Lifecycle method called when the plug-in is started.- Specified by:
doStart
in interfaceIRed5Plugin
- Throws:
Exception
- on start error
-
doStop
public void doStop() throws Exception
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
public String getName()
Returns a name / identifier for the plug-in.- Specified by:
getName
in interfaceIRed5Plugin
- Returns:
- plug-in's name
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context)
Sets the top-most ApplicationContext within Red5.- Specified by:
setApplicationContext
in interfaceIRed5Plugin
- Parameters:
context
- application context
-
getServer
public Server getServer()
Return the server reference.- Returns:
- server
-
setServer
public void setServer(Server server)
Sets a reference to the server.- Specified by:
setServer
in interfaceIRed5Plugin
- Parameters:
server
- server
-
setApplication
public void setApplication(MultiThreadedApplicationAdapter application)
Set the application making use of this plug-in.- Parameters:
application
- application
-
-