Class Red5Plugin

    • Field Detail

      • context

        protected org.springframework.context.ApplicationContext context
      • server

        protected Server server
    • Constructor Detail

      • Red5Plugin

        public Red5Plugin()
    • Method Detail

      • doStart

        public void doStart()
                     throws Exception
        Lifecycle method called when the plug-in is started.
        Specified by:
        doStart in interface IRed5Plugin
        Throws:
        Exception - on start error
      • doStop

        public void doStop()
                    throws Exception
        Lifecycle method called when the plug-in is stopped.
        Specified by:
        doStop in interface IRed5Plugin
        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 interface IRed5Plugin
        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 interface IRed5Plugin
        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 interface IRed5Plugin
        Parameters:
        server - server
      • setApplication

        public void setApplication​(MultiThreadedApplicationAdapter application)
        Set the application making use of this plug-in.
        Parameters:
        application - application