You only need .aegis.xml files if you want to customize the behavior of the
standard mapping objects.

If you like what the standard mappings do by default, you don't need
.aegis.xml.

The only alternative customization mechanism is to write your own Java
mapping classes.

On Wed, Jun 18, 2008 at 8:48 AM, Mickael Istria <[EMAIL PROTECTED]>
wrote:

> Sorry for the spam, but I have another question:
> Is the <classname>.aegis.xml file necessary to process the (un)marshalling?
> Or is it only a way to customize the mapping when one wants to?
> More concretely, would I have to generate a .aegis.xml file for each class
> I want to (un)marshal?
>
> Regards,
> Mickael
>
> Mickael Istria a écrit :
>
>  I took a look at this example, and I think Aegis is ok for my needs.
>> Thanks a lot!
>>
>> However, I have some questions (that are in fact the same question from
>> several points of view):
>> - Are getters and setters necessary? Or does it use reflection to set the
>> fields properties? Can we use it on objects that are not beans?
>>
>> Re-Thanks in advance
>> Mickael
>>
>>
>> Benson Margulies a écrit :
>>
>>> The recent refactor of Aegis was intended to allow this sort of thing.
>>> Keep
>>> in mind, however, that there's no code generator.
>>>
>>> For now, all I can recommend is that you read the source.
>>>
>>> Start with three classes:
>>>
>>> org.apache.cxf.aegis.AegisContext, and then the stream reader and writer
>>> in
>>> the same package.
>>>
>>> Aegis is a particularly bad example of internal and external classes
>>> sitting
>>> in the same Java package.
>>>
>>> There are also some tests with 'Standalone' in their names, they might
>>> prove
>>> useful examples.
>>>
>>>
>>> On Wed, Jun 18, 2008 at 5:17 AM, Mickael Istria <
>>> [EMAIL PROTECTED]>
>>> wrote:
>>>
>>>
>>>
>>>> Hello,
>>>>
>>>> I would like to use Aegis to generate XML from objects, and vice-versa.
>>>> In
>>>> fact, I would like to use CXF instead of JaxB to do marshalling and
>>>> unmarshalling. I want the same kind of results as explained at
>>>>
>>>> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html#AegisDatabinding-Class%3C%3EXMLMappingOverview
>>>>
>>>> However, I just want to use the databinding, so that I want to use Aegis
>>>> out of CXF, as a standalone "databinder".
>>>>
>>>> I did not find any useful information on this topic over CXF or XFire
>>>> sites.
>>>>
>>>> Then, I have the classical 2 questions:
>>>> - Is it possible?
>>>> - If yes, can you point me a document, or give me a clue on how to do
>>>> this?
>>>>
>>>>
>>>> Thanks in advance
>>>> Mickael
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>

Reply via email to