use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class XTSExtension method initialize.
public void initialize(ExtensionContext context) {
XtsAsLogger.ROOT_LOGGER.debug("Initializing XTS Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
subsystem.registerSubsystemModel(XTSSubsystemDefinition.INSTANCE);
subsystem.registerXMLElementWriter(parser);
if (context.isRegisterTransformers()) {
registerTransformers1x(subsystem);
}
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class BatchSubsystemExtension method initialize.
@Override
public void initialize(final ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(BatchSubsystemDefinition.NAME, CURRENT_MODEL_VERSION);
subsystem.registerSubsystemModel(new BatchSubsystemDefinition(context.isRuntimeOnlyRegistrationValid()));
subsystem.registerXMLElementWriter(new BatchSubsystemWriter());
// Register the deployment resources
if (context.isRuntimeOnlyRegistrationValid()) {
final ManagementResourceRegistration deployments = subsystem.registerDeploymentModel(new BatchDeploymentResourceDefinition());
final ManagementResourceRegistration jobRegistration = deployments.registerSubModel(BatchJobResourceDefinition.INSTANCE);
jobRegistration.registerSubModel(new BatchJobExecutionResourceDefinition());
}
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class AppClientExtension method initialize.
@Override
public void initialize(final ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(Constants.SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
subsystem.registerSubsystemModel(AppClientSubsystemResourceDefinition.INSTANCE);
subsystem.registerXMLElementWriter(parser);
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class DataSourcesExtension method initialize.
@Override
public void initialize(final ExtensionContext context) {
SUBSYSTEM_DATASOURCES_LOGGER.debugf("Initializing Datasources Extension");
boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid();
// Register the remoting subsystem
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(DataSourcesSubsystemRootDefinition.createInstance(registerRuntimeOnly));
subsystem.registerXMLElementWriter(DataSourceSubsystemParser.INSTANCE);
if (registerRuntimeOnly) {
subsystem.registerDeploymentModel(DataSourcesSubsystemRootDefinition.createDeployedInstance(registerRuntimeOnly));
}
if (context.isRegisterTransformers()) {
DataSourcesSubsystemRootDefinition.registerTransformers(subsystem);
}
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class InfinispanExtension method initialize.
@Override
public void initialize(ExtensionContext context) {
SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, InfinispanModel.CURRENT.getVersion());
new InfinispanSubsystemResourceDefinition(context.getProcessType().isServer() ? context.getPathManager() : null, context.isRuntimeOnlyRegistrationValid()).register(registration);
registration.registerXMLElementWriter(new InfinispanSubsystemXMLWriter());
}
Aggregations