Several questions about Plugins

View: New views
8 Messages — Rating Filter:   Alert me  

Several questions about Plugins

by Hubert Chang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

1, How to install the plugin into the application when the application server is running? I don't want to restart the application server to make the plugin usable.

2, How to disable and enable one plug-in when the application server is running? Thus, one plugin has two status: installed but not enabled, and enabled.

3, How to achieve the module support like Drupal?  Should I use one plugin as one module? Or implement some hooks like Drupal to achieve the module support?

Re: Several questions about Plugins

by Dean Del Ponte-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think Grails' idea of Plugins is a bit different than what you have  
outlined in your questions.  A Grails' plugin typically adds  
functionality or enhancements to your Grails' application which you  
may then leverage in a development environment.

Grails is a framework, not a CMS.  Comparing plugins in Drupal or  
Joomla! to Grails is not a valid comparison.

- Dean Del Ponte

On Jun 15, 2009, at 12:27 PM, Hubert Chang wrote:

>
> 1, How to install the plugin into the application when the  
> application server
> is running? I don't want to restart the application server to make the
> plugin usable.
>
> 2, How to disable and enable one plug-in when the application server  
> is
> running? Thus, one plugin has two status: installed but not enabled,  
> and
> enabled.
>
> 3, How to achieve the module support like Drupal?  Should I use one  
> plugin
> as one module? Or implement some hooks like Drupal to achieve the  
> module
> support?
> --
> View this message in context: http://www.nabble.com/Several-questions-about-Plugins-tp24039103p24039103.html
> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Several questions about Plugins

by Robert Fischer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

None of this functionality exists, to my knowledge.

An OSGi-ified Grails would provide this functionality (and more!), but that's a pipe dream at this
point.

~~ Robert.

Hubert Chang wrote:

> 1, How to install the plugin into the application when the application server
> is running? I don't want to restart the application server to make the
> plugin usable.
>
> 2, How to disable and enable one plug-in when the application server is
> running? Thus, one plugin has two status: installed but not enabled, and
> enabled.
>
> 3, How to achieve the module support like Drupal?  Should I use one plugin
> as one module? Or implement some hooks like Drupal to achieve the module
> support?

--
~~ Robert Fischer, Smokejumper IT Consulting.
Enfranchised Mind Blog http://EnfranchisedMind.com/blog

Check out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/redirect.html

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Several questions about Plugins

by Hubert Chang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yeah, it is not a valid comparision. But Drupal and Joomla provides some good examples for CMS system.  Now if I want to clone one "drupal" with grails, I should not use the plugins system of grails but write another implementation with hooks and variables?

Thanks.
Dean Del Ponte-2 wrote:
I think Grails' idea of Plugins is a bit different than what you have  
outlined in your questions.  A Grails' plugin typically adds  
functionality or enhancements to your Grails' application which you  
may then leverage in a development environment.

Grails is a framework, not a CMS.  Comparing plugins in Drupal or  
Joomla! to Grails is not a valid comparison.

- Dean Del Ponte

On Jun 15, 2009, at 12:27 PM, Hubert Chang wrote:

>
> 1, How to install the plugin into the application when the  
> application server
> is running? I don't want to restart the application server to make the
> plugin usable.
>
> 2, How to disable and enable one plug-in when the application server  
> is
> running? Thus, one plugin has two status: installed but not enabled,  
> and
> enabled.
>
> 3, How to achieve the module support like Drupal?  Should I use one  
> plugin
> as one module? Or implement some hooks like Drupal to achieve the  
> module
> support?
> --
> View this message in context: http://www.nabble.com/Several-questions-about-Plugins-tp24039103p24039103.html
> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Re: Several questions about Plugins

by chanwit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, this is an interesting idea, which could be enabled by having
Grails support a plug-in in the form of an OSGI module.

-Chanwit

On 15/06/2009, Hubert Chang <huixiu@...> wrote:

>
> 1, How to install the plugin into the application when the application
> server
> is running? I don't want to restart the application server to make the
> plugin usable.
>
> 2, How to disable and enable one plug-in when the application server is
> running? Thus, one plugin has two status: installed but not enabled, and
> enabled.
>
> 3, How to achieve the module support like Drupal?  Should I use one plugin
> as one module? Or implement some hooks like Drupal to achieve the module
> support?
> --
> View this message in context:
> http://www.nabble.com/Several-questions-about-Plugins-tp24039103p24039103.html
> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

--
Sent from my mobile device

Chanwit Kaewkasi
PhD Candidate,
Centre for Novel Computing
School of Computer Science
The University of Manchester
Oxford Road
Manchester
M13 9PL, UK

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Several questions about Plugins

by Dean Del Ponte-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You may want to check out Weeceem at http://www.weceem.org/weceem/weceem/HTMLContent/index

It's a CMS built on Grails, still early in development.  It's  
completely open source.  Perhaps they're already working on a CMS  
plugin system like you have already outlined.

On Jun 15, 2009, at 12:52 PM, Hubert Chang wrote:

>
> Yeah, it is not a valid comparision. But Drupal and Joomla provides  
> some good
> examples for CMS system.  Now if I want to clone one "drupal" with  
> grails, I
> should not use the plugins system of grails but write another  
> implementation
> with hooks and variables?
>
> Thanks.
>
> Dean Del Ponte-2 wrote:
>>
>> I think Grails' idea of Plugins is a bit different than what you have
>> outlined in your questions.  A Grails' plugin typically adds
>> functionality or enhancements to your Grails' application which you
>> may then leverage in a development environment.
>>
>> Grails is a framework, not a CMS.  Comparing plugins in Drupal or
>> Joomla! to Grails is not a valid comparison.
>>
>> - Dean Del Ponte
>>
>> On Jun 15, 2009, at 12:27 PM, Hubert Chang wrote:
>>
>>>
>>> 1, How to install the plugin into the application when the
>>> application server
>>> is running? I don't want to restart the application server to make  
>>> the
>>> plugin usable.
>>>
>>> 2, How to disable and enable one plug-in when the application server
>>> is
>>> running? Thus, one plugin has two status: installed but not enabled,
>>> and
>>> enabled.
>>>
>>> 3, How to achieve the module support like Drupal?  Should I use one
>>> plugin
>>> as one module? Or implement some hooks like Drupal to achieve the
>>> module
>>> support?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Several-questions-about-Plugins-tp24039103p24039103.html
>>> Sent from the grails - user mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>   http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Several-questions-about-Plugins-tp24039103p24039563.html
> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Several questions about Plugins

by Boarder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to achieve the same as you, Hubert. Did you come up with a solution or workaround for this problem?

It would be great to have something like a Plugin Manager which could notice new plugins that have been dynamically deployed at runtime and give the user the chance to enable or disable them.

Also, does anyone else know of a workaround to this issue where it would be possible to distribute extensions to our webapp to our clients without the need to recompile and redistribute the whole application?

Hubert Chang wrote:
Yeah, it is not a valid comparision. But Drupal and Joomla provides some good examples for CMS system.  Now if I want to clone one "drupal" with grails, I should not use the plugins system of grails but write another implementation with hooks and variables?

Thanks.

Re: Several questions about Plugins

by Hubert Chang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I try to use the plugin system which grails provides. I wait for Grails 2.0 and hope the plugin may have a smoothly way to achieve OSGi functionability.

I'm trying to achieve the same as you, Hubert. Did you come up with a solution or workaround for this problem?

It would be great to have something like a Plugin Manager which could notice new plugins that have been dynamically deployed at runtime and give the user the chance to enable or disable them.

Also, does anyone else know of a workaround to this issue where it would be possible to distribute extensions to our webapp to our clients without the need to recompile and redistribute the whole application?

Hubert Chang wrote:
Yeah, it is not a valid comparision. But Drupal and Joomla provides some good examples for CMS system.  Now if I want to clone one "drupal" with grails, I should not use the plugins system of grails but write another implementation with hooks and variables?

Thanks.