Hi,

> i want to inject custom objects to our scripts and did not find a solution
> to perform the task.

If you´re custom class belongs to an exported package from some
bundle, just make:

(some_script.esp)

var myCustomObject = new some.package.CustomClass();

> The idea is to provide the scripts with modelWrappers for the current node
> ...
>
> Any suggestions ?

If you mean mapping jcr nodes to domain objects you might want to use
OCM [1]. You have an example appying OCM at [2].

Hope this helps.

Regards,

Juanjo.

[1] http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/ocm
[2] http://svn.apache.org/repos/asf/sling/trunk/samples/simple-demo

Reply via email to