Skip to content

Configuring SharedObjectScope class using beans  #57

@AnujaK1

Description

@AnujaK1

Hi,

I want to add some other data along with SharedObjectScope. For that I want to extend it in my custom class in red5 application and create object of custom classs say MySOScope when SharedObjectService#createSharedObject() is called.

As of now, instance of SharedObjectScope is directly created here, but can I change code in way:

  1. SharedObjectScope will not be created directly.
  2. Its mapping will be in red5-default.xml. By reading, beans id & class, instance for SharedObjectScope will be created.
  3. Then further if I want to implement any custom class in my application, I can extend SharedObjectScope in MySOScope, and override that beans id and class with reference to MySOScope as value of class attribute.
  4. Then it should be able to create instance of MySOScope instead of SharedObjectScope.

Are there any cons in these modifications? Please help me to see wide picture if I am implementing these modifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions