public interface DeploymentPhaseContext extends Attachable
DeploymentUnit.| Modifier and Type | Method and Description |
|---|---|
<T> void |
addDependency(org.jboss.msc.service.ServiceName serviceName,
AttachmentKey<T> attachmentKey)
Adds a dependency on the service to the next phase service.
|
<T> void |
addDependency(org.jboss.msc.service.ServiceName serviceName,
Class<T> type,
org.jboss.msc.inject.Injector<T> injector)
Adds a dependency on the service to the next phase service.
|
<T> void |
addDeploymentDependency(org.jboss.msc.service.ServiceName serviceName,
AttachmentKey<T> attachmentKey)
Adds a dependency on the service to the next phase service.
|
DeploymentUnit |
getDeploymentUnit()
Get the persistent deployment unit context for this deployment unit.
|
Phase |
getPhase()
Get the phase that this processor applies to.
|
org.jboss.msc.service.ServiceName |
getPhaseServiceName()
Get the service name of the current deployment phase.
|
org.jboss.msc.service.ServiceRegistry |
getServiceRegistry()
Get the service registry for the container, which may be used to look up services.
|
org.jboss.msc.service.ServiceTarget |
getServiceTarget()
Get the service target into which this phase should install services.
|
addToAttachmentList, getAttachment, getAttachmentList, hasAttachment, putAttachment, removeAttachmentorg.jboss.msc.service.ServiceName getPhaseServiceName()
org.jboss.msc.service.ServiceTarget getServiceTarget()
getPhaseServiceName() method.org.jboss.msc.service.ServiceRegistry getServiceRegistry()
DeploymentUnit getDeploymentUnit()
Phase getPhase()
<T> void addDependency(org.jboss.msc.service.ServiceName serviceName,
AttachmentKey<T> attachmentKey)
DeploymentPhaseContext for the phase.
If the attachment represents an AttachmentList type then the value is added to the attachment list.T - the type of the injected valueserviceName - The service name to add to Attachments.NEXT_PHASE_DEPSattachmentKey - The AttachmentKey to attach the service result under.IllegalStateException - If this is the last phase<T> void addDependency(org.jboss.msc.service.ServiceName serviceName,
Class<T> type,
org.jboss.msc.inject.Injector<T> injector)
T - the type of the injected valueserviceName - the service name to add to Attachments.NEXT_PHASE_DEPStype - the type to injectinjector - the injector into which the dependency value is injectedIllegalStateException - If this is the last phase<T> void addDeploymentDependency(org.jboss.msc.service.ServiceName serviceName,
AttachmentKey<T> attachmentKey)
DeploymentUnit. This attachment will be removed when the phase service for the next phase stops.
If the attachment represents an AttachmentList type then the value is added to the attachment list.T - The type of the injected valueserviceName - The service name to add to Attachments.NEXT_PHASE_DEPSattachmentKey - The AttachmentKey to attach the service result under.IllegalStateException - If this is the last phaseCopyright © 2018 JBoss by Red Hat. All rights reserved.