Package org.wildfly.subsystem
Interface SubsystemConfiguration
public interface SubsystemConfiguration
Encapsulates the configuration of a subsystem.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.as.controller.SubsystemModelgetModel()Returns the subsystem model.getName()Returns the subsystem name.Returns the registrar of the subsystem.static SubsystemConfigurationof(String name, org.jboss.as.controller.SubsystemModel model, Supplier<SubsystemResourceDefinitionRegistrar> registrarFactory) Factory method creating a basic SubsystemConfiguration.static SubsystemConfigurationof(org.jboss.as.controller.SubsystemResourceRegistration registration, org.jboss.as.controller.SubsystemModel model, Supplier<SubsystemResourceDefinitionRegistrar> registrarFactory) Factory method creating a basic SubsystemConfiguration.
-
Method Details
-
getName
String getName()Returns the subsystem name.- Returns:
- the subsystem name.
-
getModel
org.jboss.as.controller.SubsystemModel getModel()Returns the subsystem model.- Returns:
- the subsystem model.
-
getRegistrar
SubsystemResourceDefinitionRegistrar getRegistrar()Returns the registrar of the subsystem.- Returns:
- the registrar of the subsystem.
-
of
static SubsystemConfiguration of(org.jboss.as.controller.SubsystemResourceRegistration registration, org.jboss.as.controller.SubsystemModel model, Supplier<SubsystemResourceDefinitionRegistrar> registrarFactory) Factory method creating a basic SubsystemConfiguration.- Parameters:
registration- a subsystem registrationcurrentModel- the current subsystem model versionregistrarFactory- a supplier of the resource definition registrar for this subsystem- Returns:
- a new subsystem configuration
-
of
static SubsystemConfiguration of(String name, org.jboss.as.controller.SubsystemModel model, Supplier<SubsystemResourceDefinitionRegistrar> registrarFactory) Factory method creating a basic SubsystemConfiguration.- Parameters:
subsystemName- the subsystem namecurrentModel- the current subsystem model versionregistrarFactory- a supplier of the resource definition registrar for this subsystem- Returns:
- a new subsystem configuration
-