Package org.wildfly.subsystem.service
Interface ResourceServiceInstaller
- All Known Subinterfaces:
CapabilityServiceInstaller,ServiceInstaller
- All Known Implementing Classes:
CapabilityServiceInstaller.DefaultCapabilityServiceInstaller,ServiceInstaller.DefaultServiceInstaller
public interface ResourceServiceInstaller
Installs a service into the target associated with an
OperationContext.- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceServiceInstallerAn installer that installs no services. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceServiceInstallercombine(Collection<? extends ResourceServiceInstaller> installers) Returns a compositeResourceServiceInstallerthat installs the specified installers.static ResourceServiceInstallercombine(ResourceServiceInstaller... installers) Returns a compositeResourceServiceInstallerthat installs the specified installers.Consumer<org.jboss.as.controller.OperationContext>install(org.jboss.as.controller.OperationContext context) Installs a service into the target associated with the specified operation context.
-
Field Details
-
NONE
An installer that installs no services.
-
-
Method Details
-
install
Consumer<org.jboss.as.controller.OperationContext> install(org.jboss.as.controller.OperationContext context) Installs a service into the target associated with the specified operation context.- Parameters:
context- an operation context- Returns:
- a mechanism to remove the installed service
-
combine
Returns a compositeResourceServiceInstallerthat installs the specified installers.- Parameters:
installers- a variable number of installers- Returns:
- a composite installer
-
combine
Returns a compositeResourceServiceInstallerthat installs the specified installers.- Parameters:
installers- a collection of installers- Returns:
- a composite installer
-