Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-521

add warning when trying to publish an event when event not registered

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • None
    • 2.0.0
    • portal driver
    • None

    Description

      diff --git a/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java b/pluto-portal-driver-
      index 2f5669b..5d435dc 100644
      --- a/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java
      +++ b/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java
      @@ -194,6 +196,11 @@ public class EventProviderImpl implements org.apache.pluto.spi.EventProvider,
                                      LOG.warn(e);
                              }
                      }
      +               else
      +               {
      +                       LOG.warn("Context not declared as publishing event \"" + qname +
      +                               "\", so not publishing.");
      +               }
              }
      
              /**
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            astubbs Antony Stubbs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: