Skip to content

globalmentor/csar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Csar

The Concern Separation Aspect Registrar (Csar /zɑːr/) provides access to some concern (usually cross-cutting) that may configured globally or locally to some section of the program. Csar acts like a global service locator that provides flexible, transparent local configuration. Like a "czar" in American politics, Csar governs configuration and access to program concerns.

Csar supports concerns to be configured for some local part of the program by associating a concern of a specific type, such as logging or internationalization, with some thread group. A consumer library will ask Csar for the configured concern and it will be looked up transparently, without the need for dependency injection. A global concern can also be set, which which serves as a fallback for that concern type when no thread group-specific concern is defined.

For an example of the "relatively difficult problem" Csar was meant to address, see Logging separation (Logback).

Concern Providers

  • Internationalization: Rincl
  • Logging: Clogr
  • Dependency Injection

Download

Csar is available in the Maven Central Repository in group io.csar.

Issues

Issues tracked by JIRA.

Changelog

  • 0.7.0:
    • RINCL-1: An easy way to create concerned thread groups.
  • 0.6.0: Added concern provider mechanism.
  • 0.5.0: First public release.

About

Concern Separation Aspect Registrar

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages