Comments (3)
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.
from experience-manager-65.en.
@yashsway was my explanation clear? Do you have any questions about the documentation?
from experience-manager-65.en.
Closing this issue. If you find any issues with the documentation please open a new issue.
from experience-manager-65.en.
Related Issues (20)
- The WAR files listed in the documentation are currently not provided. HOT 3
- Authentication details to be updated HOT 3
- pdf rasterizer HOT 3
- Instructions should be changed to create OAuth credential HOT 5
- Newer maintenance tasks missing from the 6.5 Maintenance Operations list HOT 3
- Reconsider NRPE recommendation for monitoring AEM HOT 4
- Does not mention known issue relating to notifications HOT 3
- dictionary discrepancies HOT 3
- AEMaaCS: The first time Page Help Wizard links to AEM 6.5 docs? HOT 3
- Missing/unclear sentence under "How can I customize the error messages..." HOT 4
- Clarify how "Inclusion rules" work in package manager, with examples. HOT 4
- No instruction to stop HOT 4
- API key? HOT 5
- Add a note about live copies of Experience Fragments HOT 2
- The Using JavaScript link points to HTL Java Use-API page HOT 3
- Oak version in AEM 6.5.11-13 Release Notes is not correct HOT 3
- Password wrong for Keystore HOT 3
- Instructions to have better control and safety, never work HOT 2
- "Adobe Acrobat and Adobe Reader" is in the wrong place. HOT 4
- Suggest mentioning the OAK-9481 fixes in the AEM 6.5 SP21 release notes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from experience-manager-65.en.