Code Monkey home page Code Monkey logo

Comments (4)

ajs6f avatar ajs6f commented on June 9, 2024 1

Cool-- I get what you mean now. I think the "null component" pattern is going to be incredibly useful, and if we design and code right, we could potentially make the "null component" in a given role be a convenient supertype for other components in that role. That's been difficult with the AuditService example, but we're still evolving that section.

from trellis.

acoburn avatar acoburn commented on June 9, 2024

Part of this issue will be to write a "null client" that does nothing when emitting an event. This would be for the case where messaging is disabled. It will also mean that the TriplestoreResourceService will no longer accept a null value for the EventService parameter. This is all in preparation for supporting CDI (at present, various *Service implementation constructors will accept null values for "optional" parameters, but that is problematic for simple JSR 330 @Inject wiring) and this can all be easily mitigated by writing such "null implementations".

from trellis.

ajs6f avatar ajs6f commented on June 9, 2024

How are we using the term "client" here? It seems like a component that emits messages?

from trellis.

acoburn avatar acoburn commented on June 9, 2024

Client is a misnomer; I was thinking of the existing notification service components, each of which wraps a particular client. This "null client" wouldn't have a client at all -- it would be better (as you phrase it) to refer to this as a component. I will update the title of the issue to reflect that.

from trellis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.