use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class JcaExtension method initialize.
@Override
public void initialize(final ExtensionContext context) {
ROOT_LOGGER.debugf("Initializing Connector Extension");
final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid();
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
subsystem.registerSubsystemModel(JcaSubsystemRootDefinition.createInstance(registerRuntimeOnly));
subsystem.registerXMLElementWriter(ConnectorSubsystemParser.INSTANCE);
if (context.isRegisterTransformers()) {
JcaSubsystemRootDefinition.registerTransformers(subsystem);
}
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class IIOPExtension method initialize.
@Override
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
final ManagementResourceRegistration subsystemRegistration = subsystem.registerSubsystemModel(IIOPRootDefinition.INSTANCE);
subsystemRegistration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
subsystem.registerXMLElementWriter(IIOPSubsystemParser_3.INSTANCE);
if (context.isRegisterTransformers()) {
IIOPRootDefinition.registerTransformers(subsystem);
}
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class PojoExtension method initialize.
/**
* {@inheritDoc}
*/
@Override
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(PojoResource.INSTANCE);
registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
subsystem.registerXMLElementWriter(parser);
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class ResourceAdaptersExtension method initialize.
@Override
public void initialize(final ExtensionContext context) {
SUBSYSTEM_RA_LOGGER.debugf("Initializing ResourceAdapters Extension");
// Register the remoting subsystem
final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
registration.registerXMLElementWriter(ResourceAdapterSubsystemParser.INSTANCE);
// Remoting subsystem description and operation handlers
registration.registerSubsystemModel(new ResourceAdaptersRootResourceDefinition(context.isRuntimeOnlyRegistrationValid()));
if (context.isRegisterTransformers()) {
ResourceAdaptersRootResourceDefinition.registerTransformers(registration);
}
}
use of org.jboss.as.controller.SubsystemRegistration in project wildfly by wildfly.
the class JdrReportExtension method initialize.
public void initialize(ExtensionContext context) {
SubsystemRegistration subsystemRegistration = context.registerSubsystem(SUBSYSTEM_NAME, CURRENT_MODEL_VERSION);
ManagementResourceRegistration root = subsystemRegistration.registerSubsystemModel(JdrReportSubsystemDefinition.INSTANCE);
root.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
if (context.isRuntimeOnlyRegistrationValid()) {
root.registerOperationHandler(JdrReportRequestHandler.DEFINITION, JdrReportRequestHandler.INSTANCE);
}
subsystemRegistration.registerXMLElementWriter(JdrReportSubsystemParser.INSTANCE);
}
Aggregations