Class BeanDeploymentModule

java.lang.Object
org.jboss.weld.bootstrap.BeanDeploymentModule

public final class BeanDeploymentModule extends Object
Represents an EE module that holds bean archives. This is a war, ejb jar, ear/lib or possibly a different module. This construct allows a given event to be delivered to observers in the given module only. This is used for handling of Initialized and Destroyed events for the application context. This is a special case since the payload of this particular event is module specific (ServletContext for web modules, Object otherwise). This does not apply to other Initialized and Destroyed events which are delivered using an accessible notifier.
Author:
Jozef Hartinger
  • Method Details

    • getId

      public String getId()
      Identifier of the module
      Returns:
      the identifier
    • isWebModule

      public boolean isWebModule()
      Indicates whether this module represents a web module
      Returns:
      true iff this module is a web module
    • fireEvent

      public void fireEvent(Type eventType, Object event, Annotation... qualifiers)
      Fire an event and notify observers that belong to this module.
      Parameters:
      eventType -
      event -
      qualifiers -
    • toString

      public String toString()
      Overrides:
      toString in class Object