GithubHelp home page GithubHelp logo

Comments (3)

bohnertchris avatar bohnertchris commented on July 17, 2024

Hello @yashsway

ContextHub stores are created from registered store candidates. To create a custom store, you need to create and register a store candidate. You can have few implementations of one store, and during initialization of contexthub, all candidates where the applies function returns true are considered, but the one with highest priority is used.

For example for localization store, you can check if customer have google maps api key or not. Depending on that, simpler or more advanced functionality can be loaded. In the applies function of the store implementation you might check if a Google Maps API key is present or not.

In short, in the ContextHub you mention which stores you want to load, but in some cases you want to create few implementations that might apply to some cases and not, candidates allows you to choose the right implementation.

See the API documentation for more details on the registerStoreCandidate(store, storeType, priority, applies) and applies in particular.

https://docs.adobe.com/content/help/en/experience-manager-65/developing/personlization/contexthub-api.html#contexthub-utils-storecandidates

from experience-manager-65.en.

bohnertchris avatar bohnertchris commented on July 17, 2024

@yashsway was my explanation clear? Do you have any questions about the documentation?

from experience-manager-65.en.

bohnertchris avatar bohnertchris commented on July 17, 2024

Closing this issue. If you find any issues with the documentation please open a new issue.

from experience-manager-65.en.

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.