Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring SharedObjectScope class using beans #57

Open
AnujaK1 opened this issue Jun 28, 2017 · 1 comment
Open

Configuring SharedObjectScope class using beans #57

AnujaK1 opened this issue Jun 28, 2017 · 1 comment

Comments

@AnujaK1
Copy link

AnujaK1 commented Jun 28, 2017

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.

@mondain
Copy link
Member

mondain commented Jun 29, 2017

I'd say go for it; in Red5 Pro there are a few beans that do work from the red5-default.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants