Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 515997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:41:11+00:00 2026-05-13T07:41:11+00:00

I will be tackling a Java (GWT) project soon ( related question ). Maybe

  • 0

I will be tackling a Java (GWT) project soon (related question). Maybe I am trying to stretch things here but I was wondering if there is any “pattern matching framework” (don’t really know if there is a term for this) written in Java? (maybe it is my prolonged exposure to Erlang that twists my thoughts around patterns all the time 🙂

I will be using a “message passing” architecture to communicate between my Java components and I’d like to efficiently “match” messages to actions.

Maybe I should just stick with localized state-machines or is there anything else?

Updated: a “message” will be an instance-object carrying “data only”. I am not currently planning on using inheritance for conveying semantics to the said messages but rather simple properties.

Update2: after taping the collective wisdom of SO (see here), it seems that Scala is out-of-scope also.

(NOTE: Java novice here… please be gentle)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:41:11+00:00Added an answer on May 13, 2026 at 7:41 am

    What you may be looking for are Javaspaces (a Java implementation of tuple-spaces) and matching objects based on their attributes (called ‘entries’ in the Javaspace world).

    Spaces store objects with particular attributes or entries (e.g. an associated currency, city, user, whatever). You can then select objects from the space by specifying 0 or more such entries, and thus get back 0 or more objects. As such, it’s a useful pattern for messaging and producer/consumer scenarios in particular.

    So you can store your objects (messages) with particular attributes (e.g. message type, consumer type etc.) and your consumers will select these objects based on a set of 0 or more attributes. Note that this doesn’t require modification of the underlying object that you’re storing. You can run a space in-process (in one JVM) – it’s not just a networked storage pattern.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 534k
  • Answers 534k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I was able to get the view navigation controller to… May 17, 2026 at 12:56 am
  • Editorial Team
    Editorial Team added an answer You need a colon (:) at the end of the… May 17, 2026 at 12:56 am
  • Editorial Team
    Editorial Team added an answer Unfortunately, it doesnt look like you can customize this per… May 17, 2026 at 12:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm attempting to write a macro which will call java setter methods based on
Let's compile a list of tips. (Understandably there will be some subjectivity involved, but
Has anyone done something like this? How? I'm just starting a project that will
I gave up on the GUI Builders for Java and now I develop 'em
So I'm slowly tackling OO and Zend Framework and their MVC process in particular.
I've just finished reading Domain-driven design: tackling complexity in the heart of software by
I am writing a web application that will run in kiosk mode on a
I'm developing a new user store for my organisation and am now tackling password
I'll be tackling writing a custom date validation class tomorrow for a meeting app
I'm trying to work out in my head the best way to structure a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.