As Emanuel said, those attributes are still there just for backward compatibility (talking about current master)
and all they do now is return "value" part of "key=value" address.

We had quite some discussion on how to properly handle this and currently we have them as read-only attributes that return part of address.

There might still be some places where this is not the case, but they will soon be cleaned up too.

--
tomaz

On Mon, Oct 22, 2012 at 2:25 PM, Emanuel Muckenhuber <emuckenh@redhat.com> wrote:

Yes, this approach is inconsistent and afaik those attributes are only
still there for backwards compatibility.

On 10/22/2012 11:59 AM, Heiko Braun wrote:
>
>
> Some resource reflect their "key”, using a "name" attribute. For instance:
>
>
> /host=master/server-config=<key>:read-resource
>
> {
>    name=key;
>    [...]
> }
>
>
> But this approach is not consistently used across the model. To further automate the integration of tools like the web console, it would be helpful to provide consistent access to the resource key. I can see two possible approaches:
>
> a) predefined attribute name like "key":
> - does introduce a list system attribute names that cannot be used by resources
> - the benefit: it would simply show up as regular attributes
>
> b) an alternate place for meta data like "key":
> - easily extensible
> - no naming conflicts
> - but requires dedicated access to system attributes
>
>
> Any thoughts on this?
>
> Regards, Ike
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev