Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread karl.wright
It occurred to me that a classloader plug-in reader for LCF would not achieve the goal of allowing a fully prebuilt LCF with connector add-ons. The reason, which should have been obvious from the beginning, is because each connector consists not only of the Java implementation, but also a UI

Re: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread Jack Krupansky
Good point. LCF is a bit more complex than Solr in that sense. Maybe a separate class is needed that has methods to retrieve the crawl and UI components of a connector. Or a small XML file with whatever info about the connector is needed. Or maybe it is simple enough for a properties file.

RE: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread karl.wright
A naming convention is what is used now. This is described in the documentation. The problem is complicated because a precompiled JSP class will not fly - the package name is going to be different from application server to application server. So, either: - we abandon the thought of

RE: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread karl.wright
The observation about JSPs is exactly what I was alluding to. Does the entire UI have to be converted to Velocity for this approach to work? There's an intermediate path that would involve converting only the connector portions, which might be viable. Karl -Original Message- From:

Re: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread Erik Hatcher
Velocity is just a simple templating engine, so it could be used in the intermediate fashion to produce only snippets that mesh into the rest of the built-in UI, no problem. Erik On Jun 2, 2010, at 8:04 AM, karl.wri...@nokia.com karl.wri...@nokia.com wrote: Does the entire UI

RE: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread karl.wright
I've just spelunked through what I could find online, and it seems at least plausible to use Velocity for various LCF HTML templating needs. The major concern that I have is that the mix of inline java to HTML in the LCF stuff is weighted heavily towards inline java - which doesn't seem to be

[jira] Created: (CONNECTORS-40) Classloader-based plug-in architecture would permit LCF to be prebuilt

2010-06-02 Thread Karl Wright (JIRA)
Classloader-based plug-in architecture would permit LCF to be prebuilt -- Key: CONNECTORS-40 URL: https://issues.apache.org/jira/browse/CONNECTORS-40 Project: Lucene Connector

Re: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread Erik Hatcher
Yeah, definitely embedded Java (ala JSP's %% stuff) isn't how Velocity works. It can call Java code just fine via tools (Java objects) that are injected into the Velocity context. Any sophisticated business logic can be distilled from the existing plugin JSPs and migrated to Java

RE: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread karl.wright
I've entered a ticket CONNECTORS-40 for this work. What I propose is that this gets done before first official LCF release, because of the potential backwards-compatibility issues involved. It is, however, quite a heavy lift - I can't imagine getting it done in less than a couple of weeks

Re: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread Erik Hatcher
Totally reasonable. We'll try to devote some cycles to this too, of course, but probably not for a couple of weeks. Erik On Jun 2, 2010, at 9:00 AM, karl.wri...@nokia.com karl.wri...@nokia.com wrote: I've entered a ticket CONNECTORS-40 for this work. What I propose is that

[jira] Created: (CONNECTORS-41) Add hooks to output connectors for receiving event notifications, specifically job start, job end, etc.

2010-06-02 Thread Karl Wright (JIRA)
Add hooks to output connectors for receiving event notifications, specifically job start, job end, etc. --- Key: CONNECTORS-41 URL:

Re: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread Jack Krupansky
Sounds good to me, assuming that LCF remains relatively stable. I am presuming that a fair number of people can and will be using LCF for various purposes well before actual formal first release anyway. The point being that delaying the formal release shouldn't slow most people from using LCF

RE: Some more thoughts on a classloader plug-in style architecture

2010-06-02 Thread karl.wright
People who write connectors for LCF before this change occurs will need to revamp them completely afterwards. That is, unless they contribute them to the LCF code stream before the work begins... Second, since there is no Q/A infrastructure yet, there's a very good chance that stuff will get

[jira] Resolved: (CONNECTORS-39) Database abstraction layer does not abstract from transactions

2010-06-02 Thread Karl Wright (JIRA)
[ https://issues.apache.org/jira/browse/CONNECTORS-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright resolved CONNECTORS-39. --- Resolution: Fixed Database abstraction layer does not abstract from transactions

[jira] Resolved: (CONNECTORS-35) Need a way to reset LCF when external conditions change

2010-06-02 Thread Karl Wright (JIRA)
[ https://issues.apache.org/jira/browse/CONNECTORS-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright resolved CONNECTORS-35. --- Resolution: Fixed Have decided that the current functionality is adequate, and no further