It's just a normal "if" statement, like: if (some_condition_is_met) { ClassA.doSomething(); } else { ClassB.doSomethingElse(); }
Where either ClassA or ClassB is in the module you want to enable/disable. From: Shengche Hsiao <shengchehs...@gmail.com> To: Wicket User Mailinglist <users@wicket.apache.org> Date: 02/04/2014 08:51 AM Subject: Re: Apache wicket project as osgi compoments Hello Our team developed a web application using php, it's original idea was from XOOPS. As you know XOOPS's modules can dynamic install in or drop out, can wicket project do the same thing? And as you said "You could dynamically decide not to call them", would you please give me some instruction? On Tue, Feb 4, 2014 at 10:44 PM, Richard W. Adams <rwada...@up.com> wrote: > Depends what you mean by "disable." You could dynamically decide not to > call them, if that's what you want. > > > > > From: Shengche Hsiao <shengchehs...@gmail.com> > To: Wicket User Mailinglist <users@wicket.apache.org> > Date: 02/04/2014 08:42 AM > Subject: Apache wicket project as osgi compoments > > > > Hello > > I have a web application comprised of several modules, can I dynamically > enable/disable these modules in runtime? > > > -- > > -----------------------------------------------------------------------> > We do this not because it is easy. We do this because it is hard. > -----------------------------------------------------------------------> > ShengChe Hsiao > -----------------------------------------------------------------------> > front...@gmail.com > front...@tc.edu.tw > -----------------------------------------------------------------------> > VoIP : 070-910-2450 > -----------------------------------------------------------------------> > > > > ** > > This email and any attachments may contain information that is > confidential and/or privileged for the sole use of the intended recipient. > Any use, review, disclosure, copying, distribution or reliance by others, > and any forwarding of this email or its contents, without the express > permission of the sender is strictly prohibited by law. If you are not the > intended recipient, please contact the sender immediately, delete the > e-mail and destroy all copies. > ** > -- -----------------------------------------------------------------------> We do this not because it is easy. We do this because it is hard. -----------------------------------------------------------------------> ShengChe Hsiao -----------------------------------------------------------------------> front...@gmail.com front...@tc.edu.tw -----------------------------------------------------------------------> VoIP : 070-910-2450 -----------------------------------------------------------------------> ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **