@Heiko:
Im not sure we would need to lookup snippets, as the module creator could
just register them with LiftRules right? (think DispatchSnippet etc)
@all:
I think we need to take a step back here a second: Everyone wants a plugin
system, but not everyone wants OSGi (specifically the overhead /
complexity). So we have two routes as I see it - OSGi, and non-OSGi. We need
to define what we want from both and what value it will add for library
implementers.
Right now we have LiftRules.addToPackages("com.mypackage"), we discussed
having:
LiftRules.addToPackages(com.mypackage) - where the argument is the actual
package to add type safety. Why don't we have something like:
LiftRules.addToEnviroment(com.mypackage), and the com.mypackage conforms to
a known standard / format with some special traits that we call loading
methods on.
Thoughts?
Cheers, Tim
On 29/07/2009 13:59, "Heiko Seeberger" <[email protected]>
wrote:
> Sounds good!
>
> Any ideas how class lookups (snippets at least) could be delegated to various
> modules. Currently Lift is using the *global* classpath in a fashion that
> makes it really hard / impossible for OSGi.
>
> Heiko
>
> 2009/7/29 Ryan Donahue <[email protected]>
>>
>> More spitballing...
>>
>> Tim,
>> I really don't know which LiftRules stuff would need to be included.
>> For other types of environment changes, the trait could have onLoad
>> and onUnload methods.
>>
>> Heiko,
>> Maybe it is possible to make such a change without breaking API,
>> though I am still fairly new to Lift and not at all familiar enough
>> with LiftRules yet. All the LiftRules public methods could simply
>> manipulate a default internal LiftModule that is always in
>> LiftRules.modules.
>>
>> These are probably big changes, but I see great benefit to well-
>> defined modules. It would facilitate sharing functionality with each
>> other. Could even set up a LiftModule site where you can share and
>> find modules.
>>
>> -Ryan
>>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---