[slf4j-user] Marker for object identification?
Ceki Gülcü
listid at qos.ch
Thu Feb 8 22:01:23 CET 2007
Hi Boris,
At 09:36 PM 2/8/2007, Boris Unckel wrote:
>just for my understanding:
>
>Is it necessary that two markers with the same name are the same objects?
>Or in other words
>Marker a = Marker.getMarker("Boris");
>Marker b = Marker.getMarker("Boris");
>a.equals(b) == true
>==> a == b ?
Yes, a==b needs to hold.
>If a == b is allowed to be false:
>The markers could be hold with soft references and the JVM can decide
>whether to garbagecollect them or not.
Markers can have children, so they are a bit more than plain old strings.
>Regards
>Boris
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the slf4j-user
mailing list