camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lb <>
Subject Re: [camel-bindy] bindy ignore bean class type
Date Thu, 10 Jan 2013 15:35:36 GMT

I think the problem is in :

     * method uses to initialize the model representing the classes who will
     * bind the data. This process will scan for classes according to the
     * package name provided, check the annotated classes and fields.
     * @throws Exception
    public void initModel() throws Exception {
        // Find classes defined as Model
        if (packageNames != null)  {
        } else if (type != null) {
            // use the package name from the type as it may refer to types
in the same package
            String pckName = type.getPackage().getName();
        } else {
            throw new IllegalArgumentException("Either packagenames or type
should be configured");

Looks like bindy scan the package even a class has been specified. 
This force people to write beans in different packages and in my opinion it
is a wrong behavior; isn't it?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message