buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static void checkFailedTransformedBootOperations(ModelTestKernelServices<?> mainServices, ModelVersion modelVersion, List<ModelNode> operations, FailedOperationTransformationConfig config) throws OperationFailedException { for (ModelNode op : operations) { ModelTestUtils.checkOutcome(main...
public static void checkFailedTransformedBootOperations(ModelTestKernelServices<?> mainServices, ModelVersion modelVersion, List<ModelNode> operations, FailedOperationTransformationConfig config) throws OperationFailedException { for (ModelNode op : operations) { ModelTestUtils.checkOutcome(main...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { ModelNode model = context.getSubModel(); model.get(ENABLED).set(true); ModelNode compensatingOp = DeploymentUndeployHandler.getOperation(operation.get...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { ModelNode model = context.getSubModel(); model.get(ENABLED).set(true); ModelNode compensatingOp = DeploymentUndeployHandler.getOperation(operation.get...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { ModelNode model = context.getSubModel(); ModelNode compensatingOp = Util.getEmptyOperation(OPERATION_NAME, operation.get(OP_ADDR)); final String name ...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { ModelNode model = context.getSubModel(); ModelNode compensatingOp = Util.getEmptyOperation(OPERATION_NAME, operation.get(OP_ADDR)); final String name ...
public void testHttpServletRequestFromPolicyContext(@ArquillianResource URL webAppURL) throws Exception { String externalFormURL = webAppURL.toExternalForm(); String servletURL = externalFormURL.substring(0, externalFormURL.length() - 1) + PolicyContextTestServlet.SERVLET_PATH; LOGGER.info("...
public void testHttpServletRequestFromPolicyContext(@ArquillianResource URL webAppURL) throws Exception { String externalFormURL = webAppURL.toExternalForm(); String servletURL = externalFormURL.substring(0, externalFormURL.length() - 1) + ".war" + PolicyContextTestServlet.SERVLET_PATH; LOGG...
public IfClosure(final Predicate<? super E> predicate, final Closure<? super E> trueClosure) { this(predicate, trueClosure, NOPClosure.INSTANCE); }
public IfClosure(final Predicate<? super E> predicate, final Closure<? super E> trueClosure) { this(predicate, trueClosure, NOPClosure.nopClosure()); }
public void setup(final EmbeddedContainerConfiguration config) { // Call super implementation super.setup(config); // Create the module loader final String modulePath = config.getModulePath(); final File modulesDir = new File(modulePath); if (!modulesDir.isDirectory...
public void setup(final EmbeddedContainerConfiguration config) { // Call super implementation super.setup(config); // Create the module loader final String modulePath = config.getModulePath(); final File modulesDir = new File(modulePath); if (!modulesDir.isDirectory...
public void setupController(ControllerInitializer controllerInitializer) { controllerInitializer.addSocketBinding("registry1", 12345); controllerInitializer.addSocketBinding("server1", 12346); } }; KernelServices servicesA = super.installInControl...
public void setupController(ControllerInitializer controllerInitializer) { controllerInitializer.addSocketBinding("registry1", 12345); controllerInitializer.addSocketBinding("server1", 12346); } }; KernelServices servicesA = super.installInControl...
void initializeExtraSubystemsAndModel(ExtensionContext extensionContext, Resource rootResource, ManagementResourceRegistration rootRegistration); package org.jboss.as.subsystem.test; import org.jboss.as.controller.ExtensionContext; import org.jboss.as.controller.OperationContext; import org.jboss.as.controller.regist...
void initializeExtraSubystemsAndModel(ExtensionContext extensionContext, Resource rootResource, ManagementResourceRegistration rootRegistration); package org.jboss.as.subsystem.test; import org.jboss.as.controller.ExtensionContext; import org.jboss.as.controller.OperationContext; import org.jboss.as.controller.regist...
protected static void writeAttribute(XMLExtendedStreamWriter writer, Attribute attribute, String value) throws XMLStreamException { writeAttribute(writer, attribute, value); }
protected static void writeAttribute(XMLExtendedStreamWriter writer, Attribute attribute, String value) throws XMLStreamException { writer.writeAttribute(attribute.getLocalName(), value); }
private void initIndexLookupPath(ResourceUrlProvider urlProvider) { if (this.indexLookupPath == null) { String requestUri = urlProvider.getPathHelper().getRequestUri(this.request); String lookupPath = urlProvider.getPathHelper().getLookupPathForRequest(this.request); this.indexLookupPath = requestUri.i...
private void initIndexLookupPath(ResourceUrlProvider urlProvider) { if (this.indexLookupPath == null) { String requestUri = urlProvider.getPathHelper().getRequestUri(this.request); String lookupPath = urlProvider.getPathHelper().getLookupPathForRequest(this.request); this.indexLookupPath = requestUri.l...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools....
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools....
private static PatchGenerator parse(String[] args) { File patchConfig = null; File oldFile = null; File newFile = null; File patchFile = null; final int argsLength = args.length; for (int i = 0; i < argsLength; i++) { final String arg = args[i]; ...
private static PatchGenerator parse(String[] args) { File patchConfig = null; File oldFile = null; File newFile = null; File patchFile = null; final int argsLength = args.length; for (int i = 0; i < argsLength; i++) { final String arg = args[i]; ...
public List<AccessConstraintDefinition> getAccessConstraints() { return resourceRegistration.getAccessConstraints();//accessConstraintDefinitions; }
public List<AccessConstraintDefinition> getAccessConstraints() { return accessConstraintDefinitions; }
public HeaderNameState() { super(ID); setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER); setLeaveOnWhitespace(true); setDefaultHandler(WordCharacterHandler.IGNORE_LB_ESCAPE_ON); putHandler(';', GlobalCharacterHandlers.LEAVE_STATE_HANDLER); putHandler(...
public HeaderNameState() { super(ID); setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER); setLeaveOnWhitespace(true); setDefaultHandler(WordCharacterHandler.LB_LEAVE_ESCAPE_ON); putHandler(';', GlobalCharacterHandlers.LEAVE_STATE_HANDLER); putHandler('...
public static final ObjectName ROOT_MODEL_NAME; static { try { ROOT_MODEL_NAME = ObjectName.getInstance(Constants.DOMAIN, "type", "root"); } catch (MalformedObjectNameException e) { throw new RuntimeException(e); } }
public static final ObjectName ROOT_MODEL_NAME; static { try { ROOT_MODEL_NAME = ObjectName.getInstance(Constants.DOMAIN, "management-root", "server"); } catch (MalformedObjectNameException e) { throw new RuntimeException(e); } }
public static ValidatorMetaData parse(XMLStreamReader reader) throws XMLStreamException { ValidatorMetaData validator = new ValidatorMetaData(); // Handle attributes final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++) { final String value = rea...
public static ValidatorMetaData parse(XMLStreamReader reader) throws XMLStreamException { ValidatorMetaData validator = new ValidatorMetaData(); // Handle attributes final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++) { final String value = rea...
public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final File configDir) { HostXml hostXml = new HostXml(Module.getSystemModuleLoader()); return new TempHackConfigurationPersister(getFile(configDir, HOST_XML), new QName(Namespace.CURRENT.getUriString(), "host"), hostX...
public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final File configDir) { HostXml hostXml = new HostXml(Module.getSystemModuleLoader()); return new BackupXmlConfigurationPersister(getFile(configDir, HOST_XML), new QName(Namespace.CURRENT.getUriString(), "host"), host...
public void execute(final JndiViewExtensionContext context) throws OperationFailedException { final ModelNode applicationsNode = context.getResult().get("applications"); final ServiceRegistry serviceRegistry = context.getOperationContext().getServiceRegistry(false); final Set<Resource.Res...
public void execute(final JndiViewExtensionContext context) throws OperationFailedException { final ModelNode applicationsNode = context.getResult().get("applications"); final ServiceRegistry serviceRegistry = context.getOperationContext().getServiceRegistry(false); final Set<Resource.Res...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); // Register the root subsystem resource. final Mana...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); // Register the root subsystem resource. final Mana...
public void asyncCancel() { futureResult.asyncCancel(true); } }
public void asyncCancel() { futureResult.asyncCancel(false); } }
public void test() throws Exception { final PathAddress extension = PathAddress.pathAddress(PathElement.pathElement(EXTENSION, VersionedExtensionCommon.EXTENSION_NAME)); final PathAddress address = PathAddress.pathAddress(PathElement.pathElement(PROFILE, "default"), PathElement.pathE...
public void test() throws Exception { final PathAddress extension = PathAddress.pathAddress(PathElement.pathElement(EXTENSION, VersionedExtensionCommon.EXTENSION_NAME)); final PathAddress address = PathAddress.pathAddress(PathElement.pathElement(PROFILE, "default"), PathElement.pathE...
PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You u...
PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You u...
public void testRosenbrock() { Rosenbrock rosenbrock = new Rosenbrock(); SimplexOptimizer underlying = new SimplexOptimizer(new SimpleScalarValueChecker(-1, 1.0e-3)); NelderMeadSimplex simplex = new NelderMeadSimplex(new double[][] { { -1.2, 1.0 }, { 0.9, 1.2 } ,...
public void testRosenbrock() { Rosenbrock rosenbrock = new Rosenbrock(); SimplexOptimizer underlying = new SimplexOptimizer(new SimpleScalarValueChecker(-1, 1.0e-3)); NelderMeadSimplex simplex = new NelderMeadSimplex(new double[][] { { -1.2, 1.0 }, { 0.9, 1.2 } ,...
public static void main(String[] args) { String port = "9990"; String host = "localhost"; try { CommandLine line = parser.parse(options, args, true); if (line.hasOption("help")) { formatter.printHelp(usage, options); return; ...
public static void main(String[] args) { String port = "9990"; String host = "localhost"; try { CommandLine line = parser.parse(options, args, false); if (line.hasOption("help")) { formatter.printHelp(usage, options); return; ...
public void testAdd() { assertEquals("[]",list.toString()); assertTrue(list.add((E) Integer.valueOf(1))); assertEquals("[1]",list.toString()); assertTrue(list.add((E) Integer.valueOf(2))); assertEquals("[1, 2]",list.toString()); assertTrue(list.add((E) Integer.valueOf...
public void testAdd() { assertEquals("[]",list.toString()); assertTrue(list.add((E) Integer.valueOf(1))); assertEquals("[1]",list.toString()); assertTrue(list.add((E) Integer.valueOf(2))); assertEquals("[1, 2]",list.toString()); assertTrue(list.add((E) Integer.valueOf...
public String testGetEjbLocalHome(); }
public String otherMethod(); }
public void execute(final JndiViewExtensionContext context) throws OperationFailedException { final ModelNode applicationsNode = context.getResult().get("applications"); final ServiceRegistry serviceRegistry = context.getOperationContext().getServiceRegistry(false); final Set<Resource.Res...
public void execute(final JndiViewExtensionContext context) throws OperationFailedException { final ModelNode applicationsNode = context.getResult().get("applications"); final ServiceRegistry serviceRegistry = context.getOperationContext().getServiceRegistry(false); final Set<Resource.Res...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); // Register the root subsystem resource. final Mana...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); // Register the root subsystem resource. final Mana...
public void test() throws Exception { final PathAddress extension = PathAddress.pathAddress(PathElement.pathElement(EXTENSION, VersionedExtensionCommon.EXTENSION_NAME)); final PathAddress address = PathAddress.pathAddress(PathElement.pathElement(PROFILE, "default"), PathElement.pathE...
public void test() throws Exception { final PathAddress extension = PathAddress.pathAddress(PathElement.pathElement(EXTENSION, VersionedExtensionCommon.EXTENSION_NAME)); final PathAddress address = PathAddress.pathAddress(PathElement.pathElement(PROFILE, "default"), PathElement.pathE...
private ModelNode transformReadResourceResult(final OperationContext context, ModelNode original, String subsystem, final ModelVersion version) throws OperationFailedException { ModelNode rootData = original.get(ModelDescriptionConstants.RESULT); Map<PathAddress,ModelVersion> subsystemVersions = ne...
private ModelNode transformReadResourceResult(final OperationContext context, ModelNode original, String subsystem, final ModelVersion version) throws OperationFailedException { ModelNode rootData = original.get(ModelDescriptionConstants.RESULT); Map<PathAddress,ModelVersion> subsystemVersions = ne...
protected TransformationTarget create(final TransformerRegistry registry, ModelVersion version) { return TransformationTargetImpl.create(registry, version, Collections.<PathAddress, ModelVersion>emptyMap(), TransformationTarget.TransformationTargetType.HOST); }
protected TransformationTarget create(final TransformerRegistry registry, ModelVersion version) { return TransformationTargetImpl.create(registry, version, Collections.<PathAddress, ModelVersion>emptyMap(), null, TransformationTarget.TransformationTargetType.HOST); }
protected void renderMergedOutputModel( Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws IOException { String encoding = getEncoding(request); // Prepare target URL. StringBuilder targetUrl = new StringBuilder(); if (this.contextRelative && getUrl().startsWith...
protected void renderMergedOutputModel( Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws IOException { String encoding = getEncoding(request); // Prepare target URL. StringBuilder targetUrl = new StringBuilder(); if (this.contextRelative && getUrl().startsWith...
protected OperationRequestAddress getAddress(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine args = ctx.getParsedCommandLine(); final OperationRequestAddress address; if (node.isPresent(args)) { address = new DefaultOperationRequestAddress(ctx.getCurre...
protected OperationRequestAddress getAddress(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine args = ctx.getParsedCommandLine(); final OperationRequestAddress address; if (node.isPresent(args)) { address = new DefaultOperationRequestAddress(ctx.getCurre...
RuntimeException noActiveTransaction(int id); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; y...
RuntimeException noActiveTransaction(int id); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; y...
protected void boot(final BootContext context) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context.getServiceTarget(); try { super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops //Install...
protected void boot(final BootContext context) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context.getServiceTarget(); try { super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops //Install...
protected ManagementByeByeHeader(int version) { super(version); } @Override byte getType() { return ManagementProtocol.TYPE_BYE_BYE; } }
public byte getType() { return ManagementProtocol.TYPE_BYE_BYE; } }
protected ManagementPingHeader(int version) { super(version); } @Override byte getType() { return ManagementProtocol.TYPE_PONG; } }
public byte getType() { return ManagementProtocol.TYPE_PONG; } }
protected ManagementPongHeader(int version) { super(version); } @Override byte getType() { return ManagementProtocol.TYPE_PING; } }
public byte getType() { return ManagementProtocol.TYPE_PING; } }
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final Manifest manifest = ManifestAttachment.getManifestAttachment(context); if(manifest == null) return; final String dependencyString = manifest.getMainAttributes().getValue...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final Manifest manifest = ManifestAttachment.getManifestAttachment(context); if(manifest == null) return; final String dependencyString = manifest.getMainAttributes().getValue...
private void initializeHeader(CSVFormat format) throws IOException { if (format.getHeader() != null) { headerMapping = new HashMap<String, Integer>(); String[] header = null; if (format.getHeader().length == 0) { // read the header from the first line of ...
private void initializeHeader(CSVFormat format) throws IOException { if (format.getHeader() != null) { headerMapping = new HashMap<String, Integer>(); String[] header = null; if (format.getHeader().length == 0) { // read the header from the first line of ...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) { final BatchBuilder builder = updateContext.getBatchBuilder(); final ConnectorSubsystemConfiguration config = new ConnectorSubsystemConfiguration()...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) { final BatchBuilder builder = updateContext.getBatchBuilder(); final ConnectorSubsystemConfiguration config = new ConnectorSubsystemConfiguration()...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final LoggerService service = new LoggerService(name); service.setLevel(level); service.setUseParentHandlers(useParentHandlers); final BatchServiceBuilder<Logger...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final LoggerService service = new LoggerService(name); service.setLevel(level); service.setUseParentHandlers(useParentHandlers); final BatchServiceBuilder<Logger...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final RootLoggerService service = new RootLoggerService(); service.setLevel(level); final BatchServiceBuilder<Logger> builder = updateContext.getBatchBuilder().addServic...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final RootLoggerService service = new RootLoggerService(); service.setLevel(level); final BatchServiceBuilder<Logger> builder = updateContext.getBatchBuilder().addServic...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final HornetQService hqservice = new HornetQService(); final Configuration hqConfig = new ConfigurationImpl(); if (clustered != null) { hqConfig.setClustere...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final HornetQService hqservice = new HornetQService(); final Configuration hqConfig = new ConfigurationImpl(); if (clustered != null) { hqConfig.setClustere...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) { final QueueService service = new QueueService(address, name, filter, durable != null ? true : durable, false); context.getBatchBuilder().addService(MessagingSubsystemElement.CORE_QUEU...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) { final QueueService service = new QueueService(address, name, filter, durable != null ? true : durable, false); context.getBatchBuilder().addService(MessagingSubsystemElement.CORE_QUEU...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ConnectionFactoryService service = new ConnectionFactoryService(transform()); final ServiceName serviceName = JMSSubsystemElement.JMS_CF_BASE.append(cf.getName()); context.get...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ConnectionFactoryService service = new ConnectionFactoryService(transform()); final ServiceName serviceName = JMSSubsystemElement.JMS_CF_BASE.append(cf.getName()); context.get...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final JMSQueueService service = new JMSQueueService(name, selector, durableDefault(), jndiBindings()); final ServiceName serviceName = JMSSubsystemElement.JMS_QUEUE_BASE.append(name); ...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final JMSQueueService service = new JMSQueueService(name, selector, durableDefault(), jndiBindings()); final ServiceName serviceName = JMSSubsystemElement.JMS_QUEUE_BASE.append(name); ...
public static void addService(final BatchBuilder builder) { final JMSService service = new JMSService(); builder.addService(JMSSubsystemElement.JMS_MANAGER, service) .addDependency(MessagingSubsystemElement.JBOSS_MESSAGING, HornetQServer.class, service.getHornetQServer()) .se...
public static void addService(final BatchBuilder builder) { final JMSService service = new JMSService(); builder.addService(JMSSubsystemElement.JMS_MANAGER, service) .addDependency(MessagingSubsystemElement.JBOSS_MESSAGING, HornetQServer.class, service.getHornetQServer()) .se...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final JMSTopicService service = new JMSTopicService(name, jndiBindings()); final ServiceName serviceName = JMSSubsystemElement.JMS_TOPIC_BASE.append(name); context.getBatchBuilder()...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final JMSTopicService service = new JMSTopicService(name, jndiBindings()); final ServiceName serviceName = JMSSubsystemElement.JMS_TOPIC_BASE.append(name); context.getBatchBuilder()...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { log.infof("Activating OSGi Subsystem"); // TODO: Hack, which registers the framework module with the {@link ModularURLStreamHandlerFactory} String value = SystemPropert...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { log.infof("Activating OSGi Subsystem"); // TODO: Hack, which registers the framework module with the {@link ModularURLStreamHandlerFactory} String value = SystemPropert...
public static void addService(final BatchBuilder batchBuilder, final OSGiSubsystemState state) { Configuration config = new Configuration(state); BatchServiceBuilder<?> serviceBuilder = batchBuilder.addService(SERVICE_NAME, config); serviceBuilder.addDependency(ServerEnvironmentService.SERVI...
public static void addService(final BatchBuilder batchBuilder, final OSGiSubsystemState state) { Configuration config = new Configuration(state); BatchServiceBuilder<?> serviceBuilder = batchBuilder.addService(SERVICE_NAME, config); serviceBuilder.addDependency(ServerEnvironmentService.SERVI...
public void setupFrameworkServices(final BatchBuilder batchBuilder) { batchBuilder.addService(MBeanServerService.SERVICE_NAME, new MBeanServerService()); TestBundleManagerService.addService(batchBuilder); FrameworkService.addService(batchBuilder, Mode.IMMEDIATE); PackageAdminService....
public void setupFrameworkServices(final BatchBuilder batchBuilder) { batchBuilder.addService(MBeanServerService.SERVICE_NAME, new MBeanServerService()); TestBundleManagerService.addService(batchBuilder); FrameworkService.addService(batchBuilder, Mode.ACTIVE); PackageAdminService.add...
public void execute(BatchBuilder batchBuilder) throws Exception { Object service = loadClass(moduleId, EchoTargetService.class.getName()).newInstance(); BatchServiceBuilder<?> serviceBuilder = batchBuilder.addService(EchoTargetService.SERVICE_NAME, (Service<?>) service); ...
public void execute(BatchBuilder batchBuilder) throws Exception { Object service = loadClass(moduleId, EchoTargetService.class.getName()).newInstance(); BatchServiceBuilder<?> serviceBuilder = batchBuilder.addService(EchoTargetService.SERVICE_NAME, (Service<?>) service); ...
public void execute(BatchBuilder batchBuilder) throws Exception { Object service = loadClass(moduleId, EchoInvokerService.class.getName()).newInstance(); BatchServiceBuilder<?> serviceBuilder = batchBuilder.addService(EchoInvokerService.SERVICE_NAME, (Service<?>) service); ...
public void execute(BatchBuilder batchBuilder) throws Exception { Object service = loadClass(moduleId, EchoInvokerService.class.getName()).newInstance(); BatchServiceBuilder<?> serviceBuilder = batchBuilder.addService(EchoInvokerService.SERVICE_NAME, (Service<?>) service); ...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final BatchBuilder batchBuilder = updateContext.getBatchBuilder(); final OptionMap.Builder builder = OptionMap.builder(); // First, apply options to option map. ...
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) { final BatchBuilder batchBuilder = updateContext.getBatchBuilder(); final OptionMap.Builder builder = OptionMap.builder(); // First, apply options to option map. ...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) { // create endpoint final EndpointService endpointService = new EndpointService(); // todo configure option map endpointService.setOptionMap(Opt...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) { // create endpoint final EndpointService endpointService = new EndpointService(); // todo configure option map endpointService.setOptionMap(Opt...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ThreadFactoryService service = new ThreadFactoryService(); service.setNamePattern(threadNamePattern); service.setPriority(priority); service.se...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ThreadFactoryService service = new ThreadFactoryService(); service.setNamePattern(threadNamePattern); service.setPriority(priority); service.se...
private EnumSet<OperationEntry.Flag> getFlagsSet(OperationEntry.Flag... vararg) { if (vararg == null || vararg.length == 0) { return EnumSet.noneOf(OperationEntry.Flag.class); } else { EnumSet<OperationEntry.Flag> result = EnumSet.noneOf(OperationEntry.Flag.class); ...
protected static EnumSet<OperationEntry.Flag> getFlagsSet(OperationEntry.Flag... vararg) { if (vararg == null || vararg.length == 0) { return EnumSet.noneOf(OperationEntry.Flag.class); } else { EnumSet<OperationEntry.Flag> result = EnumSet.noneOf(OperationEntry.Flag.class); ...
protected ModelNode initRequest(CommandContext ctx) { ModelNode request = new ModelNode(); ModelNode address = request.get(Util.ADDRESS); if(isDependsOnProfile() && ctx.isDomainMode()) { final String profileName = profile.getValue(ctx.getParsedCommandLine()); if(profi...
protected ModelNode initRequest(CommandContext ctx) { ModelNode request = new ModelNode(); ModelNode address = request.get(Util.ADDRESS); if(isDependsOnProfile() && ctx.isDomainMode()) { final String profileName = profile.getValue(ctx.getParsedCommandLine()); if(profi...
void handleError(Throwable exception, WebSocketSession session) throws Exception; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
void handleError(Throwable exception, WebSocketSession session) throws Exception; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
private static void setAnnotationIndexes( final PersistenceUnitMetadataHolder puHolder, DeploymentUnit deploymentUnit ) { final Map<URL, Index> annotationIndexes = new HashMap<URL, Index>(); boolean convertVFS = false; // convert VFS url to FILE based url if JPA_ENABLE_VFS_...
private static void setAnnotationIndexes( final PersistenceUnitMetadataHolder puHolder, DeploymentUnit deploymentUnit ) { final Map<URL, Index> annotationIndexes = new HashMap<URL, Index>(); boolean convertVFS = (false == JPAService.isDefaultVFS()); // convert VFS url to FI...
public ModelNode getModelDescription(Locale locale) { return ProfileDescription.getProfileDescription(locale); } };
public ModelNode getModelDescription(Locale locale) { return ProfileDescription.getProfileWithIncludesDescription(locale); } };
private void scanDirectory(File directory, final List<AbstractServerModelUpdate<?>> updates, Map<String, File> foundDeployed, Set<String> newlyAdded) { //TODO externalize config of filter? File[] children = directory.listFiles(filter); if (children == null) { return; } ...
private void scanDirectory(File directory, final List<AbstractServerModelUpdate<?>> updates, Map<String, File> foundDeployed, Set<String> newlyAdded) { //TODO externalize config of filter? File[] children = directory.listFiles(filter); if (children == null) { return; } ...
public static void parseDomainRootElement(final XMLExtendedStreamReader reader, final List<? super AbstractDomainModelUpdate<?>> list) throws XMLStreamException { // Read namespaces final List<NamespacePrefix> prefixes = readNamespaces(reader); if (! prefixes.isEmpty()) list.add(new DomainN...
public static void parseDomainRootElement(final XMLExtendedStreamReader reader, final List<? super AbstractDomainModelUpdate<?>> list) throws XMLStreamException { // Read namespaces final List<NamespacePrefix> prefixes = readNamespaces(reader); if (! prefixes.isEmpty()) list.add(new DomainN...
public static void combine(DomainModel domainModel, HostModel hostModel, String serverName, List<AbstractServerModelUpdate<?>> list) { // Validate the model final ServerElement serverElement = hostModel.getServer(serverName); if (serverElement == null) { throw new IllegalArgument...
public static void combine(DomainModel domainModel, HostModel hostModel, String serverName, List<AbstractServerModelUpdate<?>> list) { // Validate the model final ServerElement serverElement = hostModel.getServer(serverName); if (serverElement == null) { throw new IllegalArgument...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.api.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
package org.jboss.as.server.client.impl; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you ca...
package org.jboss.as.server.client.impl; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you ca...
package org.jboss.as.server.client.impl.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
package org.jboss.as.server.client.impl.deployment; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
public ServerModelDeploymentStartUpdate getCompensatingUpdate(ServerModel original) { ServerGroupDeploymentElement element = original.getDeployment(getDeploymentUnitName()); if (element == null) { return null; } return new ServerModelDeploymentStartUpdate(deploymentUnitNa...
public ServerModelDeploymentStartUpdate getCompensatingUpdate(ServerModel original) { ServerGroupDeploymentElement element = original.getDeployment(getDeploymentUnitName()); if (element == null) { return null; } return new ServerModelDeploymentStartUpdate(deploymentUnitNa...
public LocalRegionFactoryProxy() { RegionFactory rf = LocalSessionFactoryBean.getConfigTimeRegionFactory(); // absolutely needs thread-bound RegionFactory to initialize if (rf == null) { throw new IllegalStateException("No Hibernate RegionFactory found - " + "'cacheRegionFactory' property must be set o...
public LocalRegionFactoryProxy() { RegionFactory rf = (RegionFactory) LocalSessionFactoryBean.getConfigTimeRegionFactory(); // absolutely needs thread-bound RegionFactory to initialize if (rf == null) { throw new IllegalStateException("No Hibernate RegionFactory found - " + "'cacheRegionFactory' proper...
protected void verifyInterval(double lower, double upper) throws IllegalArgumentException { if (lower >= upper) { throw MathRuntimeException.createIllegalArgumentException( "endpoints do not specify an interval: [{0}, {1}]", lower, upper); ...
protected void verifyInterval(double lower, double upper) throws IllegalArgumentException { if (lower >= upper) { throw MathRuntimeException.createIllegalArgumentException( LocalizedFormats.ENDPOINTS_NOT_AN_INTERVAL, lower, upper); } }
protected void verifyInterval(final double lower, final double upper) { if (lower >= upper) { throw MathRuntimeException.createIllegalArgumentException( "endpoints do not specify an interval: [{0}, {1}]", lower, upper); } }
protected void verifyInterval(final double lower, final double upper) { if (lower >= upper) { throw MathRuntimeException.createIllegalArgumentException( LocalizedFormats.ENDPOINTS_NOT_AN_INTERVAL, lower, upper); } }
public Complex parse(String source) throws ParseException { ParsePosition parsePosition = new ParsePosition(0); Complex result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( parsePosition.g...
public Complex parse(String source) throws ParseException { ParsePosition parsePosition = new ParsePosition(0); Complex result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( parsePosition.g...
public BigFraction parse(final String source) throws ParseException { final ParsePosition parsePosition = new ParsePosition(0); final BigFraction result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( ...
public BigFraction parse(final String source) throws ParseException { final ParsePosition parsePosition = new ParsePosition(0); final BigFraction result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( ...
public Fraction parse(final String source) throws ParseException { final ParsePosition parsePosition = new ParsePosition(0); final Fraction result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( ...
public Fraction parse(final String source) throws ParseException { final ParsePosition parsePosition = new ParsePosition(0); final Fraction result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( ...
public Vector3D parse(String source) throws ParseException { ParsePosition parsePosition = new ParsePosition(0); Vector3D result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( parsePosition...
public Vector3D parse(String source) throws ParseException { ParsePosition parsePosition = new ParsePosition(0); Vector3D result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( parsePosition...
public BlockFieldMatrix(final int rows, final int columns, final T[][] blockData, final boolean copyArray) throws IllegalArgumentException { super(extractField(blockData), rows, columns); this.rows = rows; this.columns = columns; // number of ...
public BlockFieldMatrix(final int rows, final int columns, final T[][] blockData, final boolean copyArray) throws IllegalArgumentException { super(extractField(blockData), rows, columns); this.rows = rows; this.columns = columns; // number of ...
public ArrayRealVector parse(String source) throws ParseException { ParsePosition parsePosition = new ParsePosition(0); ArrayRealVector result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( ...
public ArrayRealVector parse(String source) throws ParseException { ParsePosition parsePosition = new ParsePosition(0); ArrayRealVector result = parse(source, parsePosition); if (parsePosition.getIndex() == 0) { throw MathRuntimeException.createParseException( ...
public static <C, K, V> AtomicMapFieldUpdater<C, K, V> newMapUpdater(AtomicReferenceFieldUpdater<C, Map> updater) { return new AtomicMapFieldUpdater<C, K, V>(updater); } @SuppressWarnings( { "unchecked" }) AtomicMapFieldUpdater(AtomicReferenceFieldUpdater<C, Map> updater) { this.updater...
public static <C, K, V> AtomicMapFieldUpdater<C, K, V> newMapUpdater(AtomicReferenceFieldUpdater<C, Map> updater) { return new AtomicMapFieldUpdater<C, K, V>(updater); } @SuppressWarnings( { "unchecked" }) AtomicMapFieldUpdater(AtomicReferenceFieldUpdater<C, Map> updater) { this.updater...
public void registerOperations(ManagementResourceRegistration resourceRegistration) { super.registerOperations(resourceRegistration); final EnumSet<OperationEntry.Flag> readOnly = EnumSet.of(OperationEntry.Flag.READ_ONLY); // Other root resource operations XmlMarshallingHandler xmh...
public void registerOperations(ManagementResourceRegistration resourceRegistration) { super.registerOperations(resourceRegistration); final EnumSet<OperationEntry.Flag> readOnly = EnumSet.of(OperationEntry.Flag.READ_ONLY); // Other root resource operations XmlMarshallingHandler xmh...
public void registerOperations(ManagementResourceRegistration resourceRegistration) { GlobalOperationHandlers.registerGlobalOperations(resourceRegistration, ProcessType.STANDALONE_SERVER); if (serverEnvironment != null) { resourceRegistration.registerOperationHandler(ValidateOperationHa...
public void registerOperations(ManagementResourceRegistration resourceRegistration) { GlobalOperationHandlers.registerGlobalOperations(resourceRegistration, ProcessType.STANDALONE_SERVER); if (serverEnvironment != null) { resourceRegistration.registerOperationHandler(ValidateOperationHa...
public ModelNode getModelDescription(Locale locale) { return new ModelNode(); } }); // Other root resource operations XmlMarshallingHandler xmh = new XmlMarshallingHandler(persister); hostReg...
public ModelNode getModelDescription(Locale locale) { return new ModelNode(); } }); // Other root resource operations XmlMarshallingHandler xmh = new XmlMarshallingHandler(persister); hostReg...
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { throw new ClassNotFoundException(SerializationUtilsTest.CLASS_NOT_FOUND_MESSAGE); } }
private void readObject(ObjectInputStream in) throws ClassNotFoundException { throw new ClassNotFoundException(SerializationUtilsTest.CLASS_NOT_FOUND_MESSAGE); } }
int VERSION = 2; // The current protocol version /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software...
int VERSION = 2; // The current protocol version /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software...
package org.jboss.as.embedded; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistri...
package org.jboss.as.embedded; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistri...
protected void execute(DeploymentProcessorTarget processorTarget) { if (deployment != null && !deployment.isEmpty()) { processorTarget.addDeploymentProcessor(Constants.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_APP_CLIENT, new ApplicationClientStructureProcessor(dep...
protected void execute(DeploymentProcessorTarget processorTarget) { if (deployment != null && !deployment.isEmpty()) { processorTarget.addDeploymentProcessor(Constants.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_APP_CLIENT, new ApplicationClientStructureProcessor(dep...
protected void execute(DeploymentProcessorTarget processorTarget) { //DUP's that are used even for app client deployments processorTarget.addDeploymentProcessor(EJB3Extension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_XML_PARSER, new JBossAllXmlParserReg...
protected void execute(DeploymentProcessorTarget processorTarget) { //DUP's that are used even for app client deployments processorTarget.addDeploymentProcessor(EJB3Extension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER, new JBossAllXmlParse...
public void undeploy(DeploymentUnit context) { context.removeAttachment(Attachments.SERVICE_MODULE_LOADER); } }); // Activate core processors for jar deployment DeployerChainAddHandler.addDeploymentProcessor(SERVER_NAME, Phase.STRU...
public void undeploy(DeploymentUnit context) { context.removeAttachment(Attachments.SERVICE_MODULE_LOADER); } }); // Activate core processors for jar deployment DeployerChainAddHandler.addDeploymentProcessor(SERVER_NAME, Phase.STRU...
protected void execute(DeploymentProcessorTarget processorTarget) { final SharedWebMetaDataBuilder sharedWebBuilder = new SharedWebMetaDataBuilder(config.clone()); final SharedTldsMetaDataBuilder sharedTldsBuilder = new SharedTldsMetaDataBuilder(config.clone()); ...
protected void execute(DeploymentProcessorTarget processorTarget) { final SharedWebMetaDataBuilder sharedWebBuilder = new SharedWebMetaDataBuilder(config.clone()); final SharedTldsMetaDataBuilder sharedTldsBuilder = new SharedTldsMetaDataBuilder(config.clone()); ...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0); subsystem.registerXMLElementWriter(MessagingSubsystemParser.getInstance()); boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); ...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0); subsystem.registerXMLElementWriter(MessagingSubsystemParser.getInstance()); boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); ...
public void testSumSinc() { final MultivariateFunction func = new SumSincFunction(-1); int dim = 2; final double[] minPoint = new double[dim]; for (int i = 0; i < dim; i++) { minPoint[i] = 0; } double[] init = new double[dim]; // Initial is mini...
public void testSumSinc() { final MultivariateFunction func = new SumSincFunction(-1); int dim = 2; final double[] minPoint = new double[dim]; for (int i = 0; i < dim; i++) { minPoint[i] = 0; } double[] init = new double[dim]; // Initial is mini...