Class AbstractASGService

  • All Implemented Interfaces:
    net.anotheria.anoprise.metafactory.Service, ASGService
    Direct Known Subclasses:
    BaseFixtureService

    public abstract class AbstractASGService
    extends java.lang.Object
    implements ASGService

    Abstract AbstractASGService class.

    Version:
    $Id: $Id
    Author:
    another
    • Constructor Detail

      • AbstractASGService

        public AbstractASGService()
    • Method Detail

      • fireObjectCreatedEvent

        protected void fireObjectCreatedEvent​(DataObject created)
        Fires the create event. The method returns after all listeners have been notified. Exceptions from listeners are ignored (and logged).
        Parameters:
        created - the created object.
      • fireObjectUpdatedEvent

        protected void fireObjectUpdatedEvent​(DataObject oldVersion,
                                              DataObject newVersion)
        Fires the create event. The method returns after all listeners have been notified. Exceptions from listeners are ignored (and logged).
        Parameters:
        oldVersion - the previously existed object.
        newVersion - the newly updated object.
      • fireObjectDeletedEvent

        protected void fireObjectDeletedEvent​(DataObject deleted)
        Fires the delete event. The method returns after all listeners have been notified. Exceptions from listeners are ignored (and logged).
        Parameters:
        deleted - the deleted object.
      • fireObjectImportedEvent

        protected void fireObjectImportedEvent​(DataObject imported)
        Fires the import event. The method returns after all listeners have been notified. Exceptions from listeners are ignored (and logged).
        Parameters:
        imported - the imported object.
      • firePersistenceChangedEvent

        protected void firePersistenceChangedEvent()
        Fires the persistence change event. The method returns after all listeners have been notified. Exceptions from listeners are ignored (and logged).
      • addServiceListener

        public void addServiceListener​(IServiceListener listener)
        Adds a service listener to this service. Adds a service listener to this service.
        Specified by:
        addServiceListener in interface ASGService
        Parameters:
        listener - the listener to add.
      • removeServiceListener

        public void removeServiceListener​(IServiceListener listener)
        Removes the service listener from the service. Removes the service listener from the service.
        Specified by:
        removeServiceListener in interface ASGService
        Parameters:
        listener - the listener to remove.
      • hasServiceListeners

        public boolean hasServiceListeners()
        Returns true if there are service listeners connected to this service.
        Specified by:
        hasServiceListeners in interface ASGService
        Returns:
        true if there are service listeners attached.