Coinjema Configuration Options
By putting a coinjema.properties file into your context, you can
alter some basic behavior of coinjema:
- reconfigurable - If true, Coinjema will keep track of
all objects that have been configured (in a
WeakHashMap) and allow a
programmatic call to
ContextFactory.refresh(CoinjemaContext) that will
dump all cached dependency info and re-configure all objects that have been configured
previously that are still in memory. This is not a thread-safe operation, and storing
all this info adds significant overhead to Coinjema. It is a development feature that
allows a running system to reload changed dependency scripts without a restart.
- excludeDirs - Coinjema will automatically assume any child
directories of a context directory is also a context directory and Coinjema will create
a context scope for it. This allows a developer to set the root directory for Coinjema
and let Coinjema add all subdirectories on its own. But, a context, even an empty one,
costs memory, and if a filesystem is extensive, it is desirable to limit Coinjema in some
way. With a perl-like regex pattern, coinjema can be instructed to ignore certain directories.
Currently only one pattern is supported.
- includeDirs - Just like excludeDirs but causes
Coinjema to ignore all directories except those that match the given regex.