Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the OR acceptor #41

Closed
germanescobar opened this issue Aug 24, 2012 · 1 comment
Closed

Implement the OR acceptor #41

germanescobar opened this issue Aug 24, 2012 · 1 comment
Assignees
Milestone

Comments

@germanescobar
Copy link
Contributor

By default acceptors are tested using an OR (i.e. if at least one accepts the message). However, sometimes we need to explicitly define the OR if we are inside an AND acceptor.

@ghost ghost assigned germanescobar Aug 24, 2012
germanescobar added a commit that referenced this issue Oct 17, 2012
Create the OrAcceptor class.
Create the connectors-0.8.xsd with the new schema supporting "or" shortcut.
Implement the "or" shortcut in the AbstractConfiguration.
Change the XML files to the new schema version.
Create test to validate functionality.
@germanescobar
Copy link
Contributor Author

Done. You can now do something like:

<acceptors>
    <and>
        <or>
            <acceptor ... />
            <acceptor ... />
        </or>
        <acceptor ... />
    </and>
</acceptors>

Notice that OR only makes sense inside an AND (by default top level acceptors are compared using OR).

arcodergh pushed a commit that referenced this issue May 3, 2016
Create the OrAcceptor class.
Create the connectors-0.8.xsd with the new schema supporting "or" shortcut.
Implement the "or" shortcut in the AbstractConfiguration.
Change the XML files to the new schema version.
Create test to validate functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant