Thanks Niclas, visitor in ApplicationDescriptor gives me what I need.

For some part of domain model we want to have schema constraints
applied by database.
And in the case of OrientDB it is too late adjust schema when
transaction is already started.

Tibor

On Fri, Jan 27, 2012 at 4:04 AM, Niclas Hedhman <[email protected]> wrote:
> That may have been too quick;
>
> Look at 
> org.qi4j.envisage.model.descriptor.ApplicationDetailDescriptorBuilder$ApplicationDescriptorVisitor,
> which walks the application model and builds what I mentioned in the
> last mail.
>
> Cheers
> Niclas
>
> On Fri, Jan 27, 2012 at 10:48 AM, Niclas Hedhman <[email protected]> wrote:
>> Ok...
>>
>> Look at the Envisage tool. You need to 'preserve' the
>> ApplicationDescriptor from the Assembly/Bootstrap phase, from which
>> you obtain layers(), and from each you can obtain the modules() and so
>> forth, down to the gritty details of fragment's methods and other
>> model details.
>>
>> Normally, Entity Stores doesn't pro-actively tries to know about "all
>> types in advance", but resolves it on-the-fly in which case you don't
>> need to do this. I think the Neo4j and SQL entity stores are both
>> doing this.
>>
>> Cheers
>> Niclas
>>
>> On Fri, Jan 27, 2012 at 12:19 AM, Tibor Mlynarik
>> <[email protected]> wrote:
>>> Sorry, I wasn't clear what I need.
>>> I need access to list of all registered ValueComposite and EntityComposite 
>>> types.
>>> More precisely all types that entity store can be asked to store in multi 
>>> layer setup.
>>> I am on 2.0 branch and I don't see such methods in Qi4j class.
>>>
>>> thanks,
>>>
>>> Tibor
>>>
>>>
>>> On Jan 26, 2012, at 3:58 PM, Niclas Hedhman wrote:
>>>
>>>> In 1.4 (IIRC), the stuff you are likely to be looking for is available
>>>> via the Qi4jSPI class, and in 2.0 branch a lot of those have been
>>>> promoted up to Qi4j class. Both are injectable via @Structure scope.
>>>>
>>>>
>>>> Cheers
>>>> Niclas
>>>>
>>>> On Wed, Jan 25, 2012 at 10:14 PM, Tibor Mlynarik
>>>> <[email protected]> wrote:
>>>>> Hi,
>>>>>
>>>>> I want to check/create schema ( for entities and values) in my entity 
>>>>> store implementation during activation phase.
>>>>>
>>>>> I have found that I can get this information from ModuleInstance. But 
>>>>> only entities access is public via ModuleInstance.visibleEntities() .
>>>>> Unfortunately ModuleInstance.visibleValues() has package visibility, is 
>>>>> it on purpose ?
>>>>> Or is there other way to get this information ?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Tibor Mlynarik
>>>>> _______________________________________________
>>>>> qi4j-dev mailing list
>>>>> [email protected]
>>>>> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Niclas Hedhman, Software Developer
>>>> http://www.qi4j.org - New Energy for Java
>>>>
>>>> I live here; http://tinyurl.com/3xugrbk
>>>> I work here; http://tinyurl.com/6a2pl4j
>>>> I relax here; http://tinyurl.com/2cgsug
>>>>
>>>> _______________________________________________
>>>> qi4j-dev mailing list
>>>> [email protected]
>>>> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>>>
>>>
>>> _______________________________________________
>>> qi4j-dev mailing list
>>> [email protected]
>>> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>>
>>
>>
>> --
>> Niclas Hedhman, Software Developer
>> http://www.qi4j.org - New Energy for Java
>>
>> I live here; http://tinyurl.com/3xugrbk
>> I work here; http://tinyurl.com/6a2pl4j
>> I relax here; http://tinyurl.com/2cgsug
>
>
>
> --
> Niclas Hedhman, Software Developer
> http://www.qi4j.org - New Energy for Java
>
> I live here; http://tinyurl.com/3xugrbk
> I work here; http://tinyurl.com/6a2pl4j
> I relax here; http://tinyurl.com/2cgsug
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to