You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Markus Härnvi <ja...@harnvi.net> on 2006/01/18 06:16:02 UTC

[betwixt] Suppress the use of BeanInfo in introspection

Hi!

We needed to add some BeanInfo classes to some beans in our code. It 
seems like Betwixt uses them for introspection. Is that correct?

Is there a way to tell Betwixt to ignore the *BeanInfo files and only 
use Reflection and .betwixt files?

    /Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Martin van den Bemt <ml...@mvdb.net>.
To complete my sentence : I will make some time available today to commit it :)

Mvgr,
Martin

Martin van den Bemt wrote:
> Hi Markus,
> 
> It looks good (just had a quick peek at the patch). Although applying 
> the patch will go faster if you have a testcase to go with that. If you 
> can have a testcase today, I will make some time available to commit it 
> (I am on GMT+1 btw).
> 
> Mvgr,
> Martin
> 
> Markus Härnvi wrote:
> 
>>
>> Ok.
>>
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=38310
>>
>> Let me know if it's ok.
>>
>>    /Markus
>>
>> Martin van den Bemt wrote:
>>
>>> It was originally intended for that usage scneario (specifically to 
>>> ignore the provided beaninfo's by Sun), since I didn't hit the issue 
>>> you are having now myself.
>>> Could you file an issue in bugzilla ?
>>> A patch is also appreciated, since I am pretty swamped with work atm..
>>>
>>> Mvgr,
>>> Martin
>>>
>>> Markus Härnvi wrote:
>>>
>>>>
>>>> Hi!
>>>>
>>>> I don't think it does what I want. It seems like the 
>>>> BeanInfoSearchPath is only used if the Introspector can't find a 
>>>> BeanInfo class in the same package as the Bean. If it finds it in 
>>>> the same package it will use even if BeanInfoSearchPath is empty.
>>>>
>>>> This is from the Introspector Javadoc:
>>>>
>>>> 'For each class "Foo", explicit information may be available if 
>>>> there exists a corresponding "FooBeanInfo" class that provides a 
>>>> non-null value when queried for the information. We first look for 
>>>> the BeanInfo class by taking the full package-qualified name of the 
>>>> target bean class and appending "BeanInfo" to form a new class name. 
>>>> If this fails, then we take the final classname component of this 
>>>> name, and look for that class in each of the packages specified in 
>>>> the BeanInfo package search path. '
>>>>
>>>>     /Markus
>>>>
>>>>
>>>>
>>>>
>>>> Martin van den Bemt wrote:
>>>>
>>>>> In the introspectionConfiguration you can set the 
>>>>> useBeanInfoSearchPath to false..
>>>>>
>>>>> Mvgr,
>>>>> Martin
>>>>>
>>>>> Markus Härnvi wrote:
>>>>>
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> We needed to add some BeanInfo classes to some beans in our code. 
>>>>>> It seems like Betwixt uses them for introspection. Is that correct?
>>>>>>
>>>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files and 
>>>>>> only use Reflection and .betwixt files?
>>>>>>
>>>>>>    /Markus
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Martin van den Bemt <ml...@mvdb.net>.
honday :) (although probably badly written)
Thanx Markus.. Patch is applied..

Mvgr,
Martin

Markus Härnvi wrote:
> 
> Hi Martin!
> 
> 
> Martin van den Bemt wrote:
> 
>> That would be fine..
>> Nice to see people from Sri Lanka active :)
>> I stayed with some catholic fathers in Ja-Ela (Colombo area) and 
>> Mawatagama (at the childrens home) a couple of years ago and of course 
>> also doing some really touristy stuff :)
>>
> 
> I attached a new patch with a test case in Bugzilla.
> 
> I am from Sweden myself, but will work here in Colombo for a year in a 
> startup company called Mazarin (http://www.mazarin.lk). We have some 
> bright,  Sri Lankan programmers employed, and they really like working 
> with Java, Open Source and Apache. I'm sure they will contribute to 
> different projects in the coming years.
> 
> Sri Lanka is a beautiful place. I just hope they can stay away from 
> civil war...
> 
> regards,
> 
>    /Markus
> 
> 
>> Mvgr,
>> Martin
>>
>> Markus Härnvi wrote:
>>
>>>
>>> Hi Martin!
>>>
>>> The day here is almost over (Colombo, GMT +6). :-)
>>>
>>> But I can write some tests tomorrow. I'll use the BeanWithBeanInfo 
>>> stuff in TestXMLIntrospector and add some tests there.
>>>
>>> Regards,
>>>
>>>     /Markus
>>>
>>> Martin van den Bemt wrote:
>>>
>>>> Hi Markus,
>>>>
>>>> It looks good (just had a quick peek at the patch). Although 
>>>> applying the patch will go faster if you have a testcase to go with 
>>>> that. If you can have a testcase today, I will make some time 
>>>> available to commit it (I am on GMT+1 btw).
>>>>
>>>> Mvgr,
>>>> Martin
>>>>
>>>> Markus Härnvi wrote:
>>>>
>>>>>
>>>>> Ok.
>>>>>
>>>>> http://issues.apache.org/bugzilla/show_bug.cgi?id=38310
>>>>>
>>>>> Let me know if it's ok.
>>>>>
>>>>>    /Markus
>>>>>
>>>>> Martin van den Bemt wrote:
>>>>>
>>>>>> It was originally intended for that usage scneario (specifically 
>>>>>> to ignore the provided beaninfo's by Sun), since I didn't hit the 
>>>>>> issue you are having now myself.
>>>>>> Could you file an issue in bugzilla ?
>>>>>> A patch is also appreciated, since I am pretty swamped with work 
>>>>>> atm..
>>>>>>
>>>>>> Mvgr,
>>>>>> Martin
>>>>>>
>>>>>> Markus Härnvi wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi!
>>>>>>>
>>>>>>> I don't think it does what I want. It seems like the 
>>>>>>> BeanInfoSearchPath is only used if the Introspector can't find a 
>>>>>>> BeanInfo class in the same package as the Bean. If it finds it in 
>>>>>>> the same package it will use even if BeanInfoSearchPath is empty.
>>>>>>>
>>>>>>> This is from the Introspector Javadoc:
>>>>>>>
>>>>>>> 'For each class "Foo", explicit information may be available if 
>>>>>>> there exists a corresponding "FooBeanInfo" class that provides a 
>>>>>>> non-null value when queried for the information. We first look 
>>>>>>> for the BeanInfo class by taking the full package-qualified name 
>>>>>>> of the target bean class and appending "BeanInfo" to form a new 
>>>>>>> class name. If this fails, then we take the final classname 
>>>>>>> component of this name, and look for that class in each of the 
>>>>>>> packages specified in the BeanInfo package search path. '
>>>>>>>
>>>>>>>     /Markus
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Martin van den Bemt wrote:
>>>>>>>
>>>>>>>> In the introspectionConfiguration you can set the 
>>>>>>>> useBeanInfoSearchPath to false..
>>>>>>>>
>>>>>>>> Mvgr,
>>>>>>>> Martin
>>>>>>>>
>>>>>>>> Markus Härnvi wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi!
>>>>>>>>>
>>>>>>>>> We needed to add some BeanInfo classes to some beans in our 
>>>>>>>>> code. It seems like Betwixt uses them for introspection. Is 
>>>>>>>>> that correct?
>>>>>>>>>
>>>>>>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files 
>>>>>>>>> and only use Reflection and .betwixt files?
>>>>>>>>>
>>>>>>>>>    /Markus
>>>>>>>>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Markus Härnvi <ja...@harnvi.net>.
Hi Martin!


Martin van den Bemt wrote:
> That would be fine..
> Nice to see people from Sri Lanka active :)
> I stayed with some catholic fathers in Ja-Ela (Colombo area) and 
> Mawatagama (at the childrens home) a couple of years ago and of course 
> also doing some really touristy stuff :)
>

I attached a new patch with a test case in Bugzilla.

I am from Sweden myself, but will work here in Colombo for a year in a 
startup company called Mazarin (http://www.mazarin.lk). We have some 
bright,  Sri Lankan programmers employed, and they really like working 
with Java, Open Source and Apache. I'm sure they will contribute to 
different projects in the coming years.

Sri Lanka is a beautiful place. I just hope they can stay away from 
civil war...

regards,

    /Markus


> Mvgr,
> Martin
>
> Markus Härnvi wrote:
>>
>> Hi Martin!
>>
>> The day here is almost over (Colombo, GMT +6). :-)
>>
>> But I can write some tests tomorrow. I'll use the BeanWithBeanInfo 
>> stuff in TestXMLIntrospector and add some tests there.
>>
>> Regards,
>>
>>     /Markus
>>
>> Martin van den Bemt wrote:
>>
>>> Hi Markus,
>>>
>>> It looks good (just had a quick peek at the patch). Although 
>>> applying the patch will go faster if you have a testcase to go with 
>>> that. If you can have a testcase today, I will make some time 
>>> available to commit it (I am on GMT+1 btw).
>>>
>>> Mvgr,
>>> Martin
>>>
>>> Markus Härnvi wrote:
>>>
>>>>
>>>> Ok.
>>>>
>>>> http://issues.apache.org/bugzilla/show_bug.cgi?id=38310
>>>>
>>>> Let me know if it's ok.
>>>>
>>>>    /Markus
>>>>
>>>> Martin van den Bemt wrote:
>>>>
>>>>> It was originally intended for that usage scneario (specifically 
>>>>> to ignore the provided beaninfo's by Sun), since I didn't hit the 
>>>>> issue you are having now myself.
>>>>> Could you file an issue in bugzilla ?
>>>>> A patch is also appreciated, since I am pretty swamped with work 
>>>>> atm..
>>>>>
>>>>> Mvgr,
>>>>> Martin
>>>>>
>>>>> Markus Härnvi wrote:
>>>>>
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> I don't think it does what I want. It seems like the 
>>>>>> BeanInfoSearchPath is only used if the Introspector can't find a 
>>>>>> BeanInfo class in the same package as the Bean. If it finds it in 
>>>>>> the same package it will use even if BeanInfoSearchPath is empty.
>>>>>>
>>>>>> This is from the Introspector Javadoc:
>>>>>>
>>>>>> 'For each class "Foo", explicit information may be available if 
>>>>>> there exists a corresponding "FooBeanInfo" class that provides a 
>>>>>> non-null value when queried for the information. We first look 
>>>>>> for the BeanInfo class by taking the full package-qualified name 
>>>>>> of the target bean class and appending "BeanInfo" to form a new 
>>>>>> class name. If this fails, then we take the final classname 
>>>>>> component of this name, and look for that class in each of the 
>>>>>> packages specified in the BeanInfo package search path. '
>>>>>>
>>>>>>     /Markus
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Martin van den Bemt wrote:
>>>>>>
>>>>>>> In the introspectionConfiguration you can set the 
>>>>>>> useBeanInfoSearchPath to false..
>>>>>>>
>>>>>>> Mvgr,
>>>>>>> Martin
>>>>>>>
>>>>>>> Markus Härnvi wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>> We needed to add some BeanInfo classes to some beans in our 
>>>>>>>> code. It seems like Betwixt uses them for introspection. Is 
>>>>>>>> that correct?
>>>>>>>>
>>>>>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files 
>>>>>>>> and only use Reflection and .betwixt files?
>>>>>>>>
>>>>>>>>    /Markus
>>>>>>>>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Martin van den Bemt <ml...@mvdb.net>.
That would be fine..
Nice to see people from Sri Lanka active :)
I stayed with some catholic fathers in Ja-Ela (Colombo area) and Mawatagama (at the childrens home) 
a couple of years ago and of course also doing some really touristy stuff :)

Mvgr,
Martin

Markus Härnvi wrote:
> 
> Hi Martin!
> 
> The day here is almost over (Colombo, GMT +6). :-)
> 
> But I can write some tests tomorrow. I'll use the BeanWithBeanInfo stuff 
> in TestXMLIntrospector and add some tests there.
> 
> Regards,
> 
>     /Markus
> 
> Martin van den Bemt wrote:
> 
>> Hi Markus,
>>
>> It looks good (just had a quick peek at the patch). Although applying 
>> the patch will go faster if you have a testcase to go with that. If 
>> you can have a testcase today, I will make some time available to 
>> commit it (I am on GMT+1 btw).
>>
>> Mvgr,
>> Martin
>>
>> Markus Härnvi wrote:
>>
>>>
>>> Ok.
>>>
>>> http://issues.apache.org/bugzilla/show_bug.cgi?id=38310
>>>
>>> Let me know if it's ok.
>>>
>>>    /Markus
>>>
>>> Martin van den Bemt wrote:
>>>
>>>> It was originally intended for that usage scneario (specifically to 
>>>> ignore the provided beaninfo's by Sun), since I didn't hit the issue 
>>>> you are having now myself.
>>>> Could you file an issue in bugzilla ?
>>>> A patch is also appreciated, since I am pretty swamped with work atm..
>>>>
>>>> Mvgr,
>>>> Martin
>>>>
>>>> Markus Härnvi wrote:
>>>>
>>>>>
>>>>> Hi!
>>>>>
>>>>> I don't think it does what I want. It seems like the 
>>>>> BeanInfoSearchPath is only used if the Introspector can't find a 
>>>>> BeanInfo class in the same package as the Bean. If it finds it in 
>>>>> the same package it will use even if BeanInfoSearchPath is empty.
>>>>>
>>>>> This is from the Introspector Javadoc:
>>>>>
>>>>> 'For each class "Foo", explicit information may be available if 
>>>>> there exists a corresponding "FooBeanInfo" class that provides a 
>>>>> non-null value when queried for the information. We first look for 
>>>>> the BeanInfo class by taking the full package-qualified name of the 
>>>>> target bean class and appending "BeanInfo" to form a new class 
>>>>> name. If this fails, then we take the final classname component of 
>>>>> this name, and look for that class in each of the packages 
>>>>> specified in the BeanInfo package search path. '
>>>>>
>>>>>     /Markus
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Martin van den Bemt wrote:
>>>>>
>>>>>> In the introspectionConfiguration you can set the 
>>>>>> useBeanInfoSearchPath to false..
>>>>>>
>>>>>> Mvgr,
>>>>>> Martin
>>>>>>
>>>>>> Markus Härnvi wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi!
>>>>>>>
>>>>>>> We needed to add some BeanInfo classes to some beans in our code. 
>>>>>>> It seems like Betwixt uses them for introspection. Is that correct?
>>>>>>>
>>>>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files and 
>>>>>>> only use Reflection and .betwixt files?
>>>>>>>
>>>>>>>    /Markus
>>>>>>>
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>>>> For additional commands, e-mail: 
>>>>>>> commons-user-help@jakarta.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Markus Härnvi <ja...@harnvi.net>.
Hi Martin!

The day here is almost over (Colombo, GMT +6). :-)

But I can write some tests tomorrow. I'll use the BeanWithBeanInfo stuff 
in TestXMLIntrospector and add some tests there.

Regards,

     /Markus

Martin van den Bemt wrote:
> Hi Markus,
>
> It looks good (just had a quick peek at the patch). Although applying 
> the patch will go faster if you have a testcase to go with that. If 
> you can have a testcase today, I will make some time available to 
> commit it (I am on GMT+1 btw).
>
> Mvgr,
> Martin
>
> Markus Härnvi wrote:
>>
>> Ok.
>>
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=38310
>>
>> Let me know if it's ok.
>>
>>    /Markus
>>
>> Martin van den Bemt wrote:
>>
>>> It was originally intended for that usage scneario (specifically to 
>>> ignore the provided beaninfo's by Sun), since I didn't hit the issue 
>>> you are having now myself.
>>> Could you file an issue in bugzilla ?
>>> A patch is also appreciated, since I am pretty swamped with work atm..
>>>
>>> Mvgr,
>>> Martin
>>>
>>> Markus Härnvi wrote:
>>>
>>>>
>>>> Hi!
>>>>
>>>> I don't think it does what I want. It seems like the 
>>>> BeanInfoSearchPath is only used if the Introspector can't find a 
>>>> BeanInfo class in the same package as the Bean. If it finds it in 
>>>> the same package it will use even if BeanInfoSearchPath is empty.
>>>>
>>>> This is from the Introspector Javadoc:
>>>>
>>>> 'For each class "Foo", explicit information may be available if 
>>>> there exists a corresponding "FooBeanInfo" class that provides a 
>>>> non-null value when queried for the information. We first look for 
>>>> the BeanInfo class by taking the full package-qualified name of the 
>>>> target bean class and appending "BeanInfo" to form a new class 
>>>> name. If this fails, then we take the final classname component of 
>>>> this name, and look for that class in each of the packages 
>>>> specified in the BeanInfo package search path. '
>>>>
>>>>     /Markus
>>>>
>>>>
>>>>
>>>>
>>>> Martin van den Bemt wrote:
>>>>
>>>>> In the introspectionConfiguration you can set the 
>>>>> useBeanInfoSearchPath to false..
>>>>>
>>>>> Mvgr,
>>>>> Martin
>>>>>
>>>>> Markus Härnvi wrote:
>>>>>
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> We needed to add some BeanInfo classes to some beans in our code. 
>>>>>> It seems like Betwixt uses them for introspection. Is that correct?
>>>>>>
>>>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files and 
>>>>>> only use Reflection and .betwixt files?
>>>>>>
>>>>>>    /Markus
>>>>>>
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: 
>>>>>> commons-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Martin van den Bemt <ml...@mvdb.net>.
Hi Markus,

It looks good (just had a quick peek at the patch). Although applying the patch will go faster if 
you have a testcase to go with that. If you can have a testcase today, I will make some time 
available to commit it (I am on GMT+1 btw).

Mvgr,
Martin

Markus Härnvi wrote:
> 
> Ok.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38310
> 
> Let me know if it's ok.
> 
>    /Markus
> 
> Martin van den Bemt wrote:
> 
>> It was originally intended for that usage scneario (specifically to 
>> ignore the provided beaninfo's by Sun), since I didn't hit the issue 
>> you are having now myself.
>> Could you file an issue in bugzilla ?
>> A patch is also appreciated, since I am pretty swamped with work atm..
>>
>> Mvgr,
>> Martin
>>
>> Markus Härnvi wrote:
>>
>>>
>>> Hi!
>>>
>>> I don't think it does what I want. It seems like the 
>>> BeanInfoSearchPath is only used if the Introspector can't find a 
>>> BeanInfo class in the same package as the Bean. If it finds it in the 
>>> same package it will use even if BeanInfoSearchPath is empty.
>>>
>>> This is from the Introspector Javadoc:
>>>
>>> 'For each class "Foo", explicit information may be available if there 
>>> exists a corresponding "FooBeanInfo" class that provides a non-null 
>>> value when queried for the information. We first look for the 
>>> BeanInfo class by taking the full package-qualified name of the 
>>> target bean class and appending "BeanInfo" to form a new class name. 
>>> If this fails, then we take the final classname component of this 
>>> name, and look for that class in each of the packages specified in 
>>> the BeanInfo package search path. '
>>>
>>>     /Markus
>>>
>>>
>>>
>>>
>>> Martin van den Bemt wrote:
>>>
>>>> In the introspectionConfiguration you can set the 
>>>> useBeanInfoSearchPath to false..
>>>>
>>>> Mvgr,
>>>> Martin
>>>>
>>>> Markus Härnvi wrote:
>>>>
>>>>>
>>>>> Hi!
>>>>>
>>>>> We needed to add some BeanInfo classes to some beans in our code. 
>>>>> It seems like Betwixt uses them for introspection. Is that correct?
>>>>>
>>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files and 
>>>>> only use Reflection and .betwixt files?
>>>>>
>>>>>    /Markus
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Markus Härnvi <ja...@harnvi.net>.
Ok.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38310

Let me know if it's ok.

    /Markus

Martin van den Bemt wrote:
> It was originally intended for that usage scneario (specifically to 
> ignore the provided beaninfo's by Sun), since I didn't hit the issue 
> you are having now myself.
> Could you file an issue in bugzilla ?
> A patch is also appreciated, since I am pretty swamped with work atm..
>
> Mvgr,
> Martin
>
> Markus Härnvi wrote:
>>
>> Hi!
>>
>> I don't think it does what I want. It seems like the 
>> BeanInfoSearchPath is only used if the Introspector can't find a 
>> BeanInfo class in the same package as the Bean. If it finds it in the 
>> same package it will use even if BeanInfoSearchPath is empty.
>>
>> This is from the Introspector Javadoc:
>>
>> 'For each class "Foo", explicit information may be available if there 
>> exists a corresponding "FooBeanInfo" class that provides a non-null 
>> value when queried for the information. We first look for the 
>> BeanInfo class by taking the full package-qualified name of the 
>> target bean class and appending "BeanInfo" to form a new class name. 
>> If this fails, then we take the final classname component of this 
>> name, and look for that class in each of the packages specified in 
>> the BeanInfo package search path. '
>>
>>     /Markus
>>
>>
>>
>>
>> Martin van den Bemt wrote:
>>
>>> In the introspectionConfiguration you can set the 
>>> useBeanInfoSearchPath to false..
>>>
>>> Mvgr,
>>> Martin
>>>
>>> Markus Härnvi wrote:
>>>
>>>>
>>>> Hi!
>>>>
>>>> We needed to add some BeanInfo classes to some beans in our code. 
>>>> It seems like Betwixt uses them for introspection. Is that correct?
>>>>
>>>> Is there a way to tell Betwixt to ignore the *BeanInfo files and 
>>>> only use Reflection and .betwixt files?
>>>>
>>>>    /Markus
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Martin van den Bemt <ml...@mvdb.net>.
It was originally intended for that usage scneario (specifically to ignore the provided beaninfo's 
by Sun), since I didn't hit the issue you are having now myself.
Could you file an issue in bugzilla ?
A patch is also appreciated, since I am pretty swamped with work atm..

Mvgr,
Martin

Markus Härnvi wrote:
> 
> Hi!
> 
> I don't think it does what I want. It seems like the BeanInfoSearchPath 
> is only used if the Introspector can't find a BeanInfo class in the same 
> package as the Bean. If it finds it in the same package it will use even 
> if BeanInfoSearchPath is empty.
> 
> This is from the Introspector Javadoc:
> 
> 'For each class "Foo", explicit information may be available if there 
> exists a corresponding "FooBeanInfo" class that provides a non-null 
> value when queried for the information. We first look for the BeanInfo 
> class by taking the full package-qualified name of the target bean class 
> and appending "BeanInfo" to form a new class name. If this fails, then 
> we take the final classname component of this name, and look for that 
> class in each of the packages specified in the BeanInfo package search 
> path. '
> 
>     /Markus
> 
> 
> 
> 
> Martin van den Bemt wrote:
> 
>> In the introspectionConfiguration you can set the 
>> useBeanInfoSearchPath to false..
>>
>> Mvgr,
>> Martin
>>
>> Markus Härnvi wrote:
>>
>>>
>>> Hi!
>>>
>>> We needed to add some BeanInfo classes to some beans in our code. It 
>>> seems like Betwixt uses them for introspection. Is that correct?
>>>
>>> Is there a way to tell Betwixt to ignore the *BeanInfo files and only 
>>> use Reflection and .betwixt files?
>>>
>>>    /Markus
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Markus Härnvi <ja...@harnvi.net>.
Hi!

I don't think it does what I want. It seems like the BeanInfoSearchPath 
is only used if the Introspector can't find a BeanInfo class in the same 
package as the Bean. If it finds it in the same package it will use even 
if BeanInfoSearchPath is empty.

This is from the Introspector Javadoc:

'For each class "Foo", explicit information may be available if there 
exists a corresponding "FooBeanInfo" class that provides a non-null 
value when queried for the information. We first look for the BeanInfo 
class by taking the full package-qualified name of the target bean class 
and appending "BeanInfo" to form a new class name. If this fails, then 
we take the final classname component of this name, and look for that 
class in each of the packages specified in the BeanInfo package search 
path. '

     /Markus




Martin van den Bemt wrote:
> In the introspectionConfiguration you can set the 
> useBeanInfoSearchPath to false..
>
> Mvgr,
> Martin
>
> Markus Härnvi wrote:
>>
>> Hi!
>>
>> We needed to add some BeanInfo classes to some beans in our code. It 
>> seems like Betwixt uses them for introspection. Is that correct?
>>
>> Is there a way to tell Betwixt to ignore the *BeanInfo files and only 
>> use Reflection and .betwixt files?
>>
>>    /Markus
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Markus Härnvi <ja...@harnvi.net>.

Ah, missed that. Thanks!

   /Markus


Martin van den Bemt wrote:
> In the introspectionConfiguration you can set the 
> useBeanInfoSearchPath to false..
>
> Mvgr,
> Martin
>
> Markus Härnvi wrote:
>>
>> Hi!
>>
>> We needed to add some BeanInfo classes to some beans in our code. It 
>> seems like Betwixt uses them for introspection. Is that correct?
>>
>> Is there a way to tell Betwixt to ignore the *BeanInfo files and only 
>> use Reflection and .betwixt files?
>>
>>    /Markus
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] Suppress the use of BeanInfo in introspection

Posted by Martin van den Bemt <ml...@mvdb.net>.
In the introspectionConfiguration you can set the useBeanInfoSearchPath to false..

Mvgr,
Martin

Markus Härnvi wrote:
> 
> Hi!
> 
> We needed to add some BeanInfo classes to some beans in our code. It 
> seems like Betwixt uses them for introspection. Is that correct?
> 
> Is there a way to tell Betwixt to ignore the *BeanInfo files and only 
> use Reflection and .betwixt files?
> 
>    /Markus
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org