Package org.jboss.weld.bootstrap
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 ofInitialized
andDestroyed
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 otherInitialized
andDestroyed
events which are delivered using an accessible notifier.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fireEvent(Type eventType, Object event, Annotation... qualifiers)
Fire an event and notify observers that belong to this module.String
getId()
Identifier of the moduleboolean
isWebModule()
Indicates whether this module represents a web moduleString
toString()
-
-
-
Method Detail
-
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
-
-
-