You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2016/02/16 11:44:18 UTC

[jira] [Comment Edited] (QPID-7049) [Java Broker] Provide a mechanism to inject attribute/statistic definitions into types at runtime

    [ https://issues.apache.org/jira/browse/QPID-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148434#comment-15148434 ] 

Rob Godfrey edited comment on QPID-7049 at 2/16/16 10:44 AM:
-------------------------------------------------------------

{quote}
Measleading messages in test org.apache.qpid.server.model.testmodels.hierarchy.InjectedAttributeTest#testInjectedStatistic
The stat description is "What is 6 x 9?" which sort of implies that 54 by inject statistic but test is actually testing value 42.
{quote}

Sorry - I was being a little whimsical... you need to know your [Hitchhiker's guide to the Galaxy|https://www.quora.com/The-Hitchhikers-Guide-to-the-Galaxy-creative-franchise/Why-does-six-times-nine-equal-forty-two]

{quote}
Test fly method in tests can confuse as well.
{quote}

A car can fly to a height of exactly 0 (metres, feet, whichever unit you choose), cars generally don't fly at any other altitude :-)


was (Author: rgodfrey):
{quote}
Measleading messages in test org.apache.qpid.server.model.testmodels.hierarchy.InjectedAttributeTest#testInjectedStatistic
The stat description is "What is 6 x 9?" which sort of implies that 54 by inject statistic but test is actually testing value 42.
{quote}

Sorry - I was being a little whimsical... you need to know your [Hitchhiker's guide to the Galaxy|https://www.quora.com/The-Hitchhikers-Guide-to-the-Galaxy-creative-franchise/Why-does-six-times-nine-equal-forty-two]

{quote}
Test fly method in tests can confuse as well.
{quote}

A car can fly to a height of exactly 0 (metres, feet, whichever unit you choose), car's generally don't fly at any other altitude :-)

> [Java Broker] Provide a mechanism to inject attribute/statistic definitions into types at runtime
> -------------------------------------------------------------------------------------------------
>
>                 Key: QPID-7049
>                 URL: https://issues.apache.org/jira/browse/QPID-7049
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Broker
>            Reporter: Rob Godfrey
>            Assignee: Rob Godfrey
>             Fix For: qpid-java-6.0.1, qpid-java-6.1
>
>
> In some cases it is not possible to know what statistics/attributes will be available on an object until runtime (for instance it may depend on the environment, the JVM in use or other factors).  In this case we cannot define the statistics/attributes statically, but must instead inject them at run time.
> Another use case is where new functionality may wish to store information as attributes against existing configured object types (e.g. an ACL system where permission information is stored at each object).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org