Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stp-dev] Proposal for a generic validation framework

Hi David,

Yes, you are completely right in case if we will based on OSGi container only.
Our idea is not to be 100% dependent from OSGi. Experience shows, that in some cases (especially for server side validation) systems already use some kind of container (JBI, Servlet, EJB, etc) and it is not always appropriate to run additionally OSGi runtime for validation only. Therefore I would like to be more flexible in basic technology for validation framework. Our basic implementation is OSGi based and it uses OSGi specific functionality proposed by you (for example getting available validators from OSGi Service Registry), but framework could be also implemented on the base of JBI, J2EE container or just on the base of local file system.
The type of basic technology is managed via IValidationFactory in API (IValidationFactory can have OSGI, JBI, J2EE, FileSystem, etc implementations).

Regards,
Andrei.

----- Original Message -----
From: "David Bosschaert" <davidb@xxxxxxxx>
To: "STP Dev list" <stp-dev@xxxxxxxxxxx>
Sent: Montag, 4. Februar 2008 11.36 Uhr (GMT+0100) Europe/Berlin
Subject: Re: [stp-dev] Proposal for a generic validation framework

Hi Jerry,

One thought that I had while reading the proposed document was that, 
since this is called an OSGi-based framework you might consider using 
OSGi Services instead of factories.
With OSGi Services any available object implementating a particular 
interface can register itself with the OSGi Service Registry.

So rather than calling osgiValidationFactory.getAvailableValidators() 
you would simply ask the OSGi Service Registry for all the services 
registered to implement the IValidator interface.
The same could be done with the Validation Runner instances.

Services are registered by bundles that want to expose them. In a sense 
they are similar to Eclipse Extension points, but since this is called 
an OSGi-based framework, use of OSGi Services might fit better; 
extension points are not part of OSGi...

Just a thought,

David

Gerald Preissler wrote:
> Hi all,
>
> we've just created a wiki page with a proposal for a generic validation framework at http://wiki.eclipse.org/STP_Validation_Framework . We believe that this topic is of interest for quite some people and hope for a lively discussion. Please take a look and tell us what you think.
>
> Best regards
>
>   Jerry Preissler
>
>   

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland



Back to the top