mariocasciaro / scatter

IoC container and out-of-the-box extensibility for Node.js applications
MIT License
154 stars 14 forks source link

What's the name property in particle.json for? #11

Closed k7sleeper closed 10 years ago

k7sleeper commented 10 years ago

Do I understand it right that the name property in particle.json is only for distinguishing a particle container (= a particle with subparticles) from a particle with modules?

mariocasciaro commented 10 years ago

The particle name is currently necessary when extending or overriding particles. In general it is good to force the naming for components, in the future that might be expanded to specify also the version and provide dependency checking at "startup" time, but that's just brainstorming.