Skip to content

Commit

Permalink
Enabled access to announcers subscriptions. (see pharo-project#2). Re…
Browse files Browse the repository at this point in the history
…named class name in class comment
  • Loading branch information
noha committed Jul 7, 2017
1 parent eea3112 commit e384c29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
accessing
loggersOf: aClass
^ (announcer subscriptions subscriptions collect: #subscriber as: Set)
"announcments SubscriptionRegistry does not allow access to its subscriptions which
Beacon needs. So there is a hack to access the instVar directly until access to
subscriptions has been solved"
self flag: #hack.
^ ((announcer subscriptions instVarNamed: #subscriptions) collect: #subscriber as: Set)
select: [ :each | each isKindOf: aClass ]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This is an abstract class for all loggers that need to serialize objects. Basically there are two types of loggers: one that stores signals in memory and this which exports signal to the outer world. In order to do that objects need to be serialized in some way.

In order to create a new serializing logger subclasses should overwrite two methods. On the class side overwrite #defaultSerializer to select the SignalSerializer that converst an object to an external representation. Second overwrite #handleSerializedSignal: to transmit the object to the outside world
In order to create a new serializing logger subclasses should overwrite two methods. On the class side overwrite #defaultSerializer to select the SignalSerializer that converst an object to an external representation. Second overwrite #nextPutSerialized:: to transmit the object to the outside world
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"commentStamp" : "NorbertHartl 9/8/2016 22:40",
"commentStamp" : "NorbertHartl 9/14/2016 12:31",
"super" : "SignalLogger",
"category" : "Beacon-Core-Loggers",
"classinstvars" : [ ],
Expand Down

0 comments on commit e384c29

Please sign in to comment.