RE: Some magic questions

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <001301c48e7f$b8176bf0$1601a8c0@gloria>

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: 30 August 2004 11:55
> To: [email protected]
> Subject: SV: Some magic questions
> 
> > Configuration elements are not supported yet - although I do have a
> > version locally which is reading <x:configuration>, arbitrary
> > children,
> > attributes, and string values.
> Sounds perfect, was just about to write such a task :)


I've just updated the version of magic on dpml so if you do an 'ant
setup' you will pull down a config enabled version.  You can do the
following:


  <x:block name="widget">
    <x:component name="gizmo" class="MyGizmo">
      <x:configuration>
        <anything name="whatever">
          <you>
            <can-think-of/>
          </you>
        </anything>
      <x:configuration>
    </x:component>
  </x:block>


> > You can create a test block by setting the scope attribute to
"TEST":
> >
> >   <x:block name="widget" scope="TEST">
> >     <x:component name="gizmo"
class="org.whatever.DefaultTestGizmo"/>
> >   </x:block>
> And that block would load the class/.xinfo files from the target dir?
Will
> try it as soon as possible.

If its TEST scope the block definition is written to
target/test-classes/BLOCK-INF and target/test-classes is added as a
deployment target and any .xinfo definitions in the target/test-classes
directory will be made available.

Cheers, Steve.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.