[ https://jira.terracotta.org/jira//browse/CDV-136?page=all ]

Geert Bevin resolved CDV-136.
-----------------------------

    Resolution: Fixed

I added tc.active system property that is set to true when the 
ClassProcessorHelper has finished initializing.

> Added System property to indicate that TC DSO is active
> -------------------------------------------------------
>
>                 Key: CDV-136
>                 URL: https://jira.terracotta.org/jira//browse/CDV-136
>             Project: Community Development
>          Issue Type: New Feature
>          Components: DSO:L1
>            Reporter: Geert Bevin
>         Assigned To: Geert Bevin
>             Fix For: 2.4-stable0
>
>
> Sometimes it's necessary to conditionally execute code when Terracotta DSO is 
> active, or when the application is just running on a single node. A typical 
> example of this is the use of WeakHashMap instances which aren't supported by 
> TC, but are recommended to be used for rebuildable caches in single node 
> situations. Currently, the only way to somewhat detect that TC is active is 
> by simply trying to load a typical TC class. This is however quite 'hackish' 
> and doesn't even guarantee that TC is active, it just indicates that TC is 
> present in the classpath.
> Adding a system property that is set when TC is actively sharing roots would 
> make it much easier to conditionally execute code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to