You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/08/12 19:18:52 UTC

[jira] Commented: (CAMEL-511) A method ala afterPropertiesSet() for programmatic validation that the endpoint is configured correctly

    [ https://issues.apache.org/activemq/browse/CAMEL-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44932#action_44932 ] 

James Strachan commented on CAMEL-511:
--------------------------------------

the fix for this problem is for an Endpoint to just implement the org.apache.camel.Service interface - then it will have a standard start() / stop() method invoked?

> A method ala afterPropertiesSet() for programmatic validation that the endpoint is configured correctly
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-511
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-511
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Currently the validation that certain properties is mandatory / optional and that they value is validated is handled ad-hoc by each endpoint or component.
> There should be somekind of support from camel-core that creates these objects that it has a callback method to allow the programmer of the component/endpoint to do some programmatic validation that the endpoint is in a validate state before its let's loose on the playground.
> In spring this method is named afterPropertiesSet() AFAIR. We could have a similar callback method in camel-core for this.
> We could also start to use somekind of annotations to mark what properties the endpoint/component support and which is mandatory/optional - kinda like the stuff for the Camel DSL.
> I think there is a ticket for this already.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.