ManagementResourceRegistration rr = ManagementResourceRegistration.Factory.forProcessType(getProcessType()).createRegistration(rd); ModelTestUtils.checkModelAgainstDefinition(transformed, rr); return legacyModel;
ManagementResourceRegistration rr = ManagementResourceRegistration.Factory.forProcessType(getProcessType()).createRegistration(rd); ModelTestUtils.checkModelAgainstDefinition(transformed, rr); return legacyModel;
WritableAuthorizerConfiguration authorizerConfig = authorizer.getWritableAuthorizerConfiguration(); authorizerConfig.reset(); ManagementResourceRegistration rootResourceRegistration = ManagementResourceRegistration.Factory.forProcessType(processType).createRegistration(rootResourceDefinition, authorizerConfig, capabilityRegistry); final ModelControllerImpl controller = new ModelControllerImpl(container, target, rootResourceRegistration,
WritableAuthorizerConfiguration authorizerConfig = authorizer.getWritableAuthorizerConfiguration(); authorizerConfig.reset(); ManagementResourceRegistration rootResourceRegistration = ManagementResourceRegistration.Factory.forProcessType(processType).createRegistration(rootResourceDefinition, authorizerConfig, capabilityRegistry); final ModelControllerImpl controller = new ModelControllerImpl(container, target, rootResourceRegistration,
private SubsystemRegistrationImpl(String name, ModelVersion version, ManagementResourceRegistration profileRegistration, ManagementResourceRegistration deploymentsRegistration, ExtensionRegistryType extensionRegistryType, String extensionModuleName, ProcessType processType) { assert profileRegistration != null; this.name = name; this.profileRegistration = profileRegistration; if (deploymentsRegistration == null){ this.deploymentsRegistration = ManagementResourceRegistration.Factory.forProcessType(processType).createRegistration(new SimpleResourceDefinition(null, NonResolvingResourceDescriptionResolver.INSTANCE)); }else { this.deploymentsRegistration = deploymentsRegistration; } this.version = version; this.extensionRegistryType = extensionRegistryType; this.extensionModuleName = extensionModuleName; }
private SubsystemRegistrationImpl(String name, ModelVersion version, ManagementResourceRegistration profileRegistration, ManagementResourceRegistration deploymentsRegistration, ExtensionRegistryType extensionRegistryType, String extensionModuleName, ProcessType processType) { assert profileRegistration != null; this.name = name; this.profileRegistration = profileRegistration; if (deploymentsRegistration == null){ this.deploymentsRegistration = ManagementResourceRegistration.Factory.forProcessType(processType).createRegistration(new SimpleResourceDefinition(null, NonResolvingResourceDescriptionResolver.INSTANCE)); }else { this.deploymentsRegistration = deploymentsRegistration; } this.version = version; this.extensionRegistryType = extensionRegistryType; this.extensionModuleName = extensionModuleName; }
/** * Create a new root model node registration. * * @param resourceDefinition the facotry for the model description provider for the root model node * @return the new root model node registration * * @throws SecurityException if the caller does not have {@link ImmutableManagementResourceRegistration#ACCESS_PERMISSION} */ public ManagementResourceRegistration createRegistration(final ResourceDefinition resourceDefinition) { return createRegistration(resourceDefinition, null, null); }
/** * Create a new root model node registration. * * @param resourceDefinition the facotry for the model description provider for the root model node * @return the new root model node registration * * @throws SecurityException if the caller does not have {@link ImmutableManagementResourceRegistration#ACCESS_PERMISSION} */ public ManagementResourceRegistration createRegistration(final ResourceDefinition resourceDefinition) { return createRegistration(resourceDefinition, null, null); }