Peter Neubauer wrote:
> Mmh,
> not sure that is working since right now we have
>
> /**
> * TODO
> */
> public interface JettyConfiguration
> extends EntityComposite
> {
> @Range( min = 0, max = 65535 ) Property<Integer> port();
>
> @NotEmpty Property<String> rootContextPath();
>
> @NotEmpty Property<String> resourcePath();
> }
>
> which suggests that the ConfigurationMixin and its property loading is
> not present?
The ConfigurationMixin is specified on the Configuration interface.
That's why all you need to do to use it is to do "@This
Configuration<JettConfiguration> conf" and Qi4j will try to add
Configuration as mixintype, and then finds the mixin impl on that
interface. So there's no need to specify ConfigurationMixin anywhere.
Like I said, ConfigurationMixin will load JettyService.properties (since
"JettyService" is the id of the service), and right now there is such a
file with port 8080 specified, but only as a test resource, not in main,
where it probably should be!
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev