buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private String getAppClientCommand() throws Exception { if (appClientCommand != null) return appClientCommand; final String tempDir = System.getProperty("java.io.tmpdir"); archiveOnDisk = new File(tempDir + File.separator + archive.getName()); if(archiveOnDisk.exists()) { ...
private String getAppClientCommand() throws Exception { if (appClientCommand != null) return appClientCommand; final String tempDir = System.getProperty("java.io.tmpdir"); archiveOnDisk = new File(tempDir + File.separator + archive.getName()); if(archiveOnDisk.exists()) { ...
private static String getCliCommand() throws Exception { if (cliCommand != null) { return cliCommand; } String asDist = System.getProperty("jboss.dist"); String asInst = System.getProperty("jboss.inst"); String javaExec = System.getProperty("java.home") + File.s...
private static String getCliCommand() throws Exception { if (cliCommand != null) { return cliCommand; } String asDist = System.getProperty("jboss.dist"); String asInst = System.getProperty("jboss.inst"); String javaExec = System.getProperty("java.home") + File.s...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; package org.jboss.as.domain.client.api; import java.util.UUID; /** * Encapsulates the results of performing a configuration modification on an individual * server. * * @param R the type of the object returned by the update when it was * applied to ...
package org.jboss.as.controller.client.helpers.domain; package org.jboss.as.controller.client.helpers.domain; import java.util.UUID; /** * Encapsulates the results of performing a configuration modification on an individual * server. * * @param R the type of the object returned by the update when it was * ...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain; /* * 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 so...
package org.jboss.as.controller.client.helpers.domain.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 fr...
package org.jboss.as.controller.client.helpers.domain.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 fr...
package org.jboss.as.controller.client.helpers.domain.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 fr...
package org.jboss.as.controller.client.helpers.domain.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 fr...
import org.jboss.as.controller.client.helpers.domain.ServerStatus; /* * 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. * * Thi...
import org.jboss.as.controller.client.helpers.domain.ServerStatus; /* * 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. * * Thi...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName)); final ProxyController controller = context.getReso...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName)); final ProxyController controller = context.getReso...
import org.jboss.as.server.deployment.Phase; /* * 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; yo...
import org.jboss.as.server.deployment.Phase; /* * 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; yo...
public synchronized ModelNode doCommand(String command) throws CommandFormatException, IOException { System.out.println("command=" + command); parsedCmd.rootNode(0); parser.parse(command, parsedCmd); ModelNode request = parsedCmd.toOperationRequest(cmdCtx); return client.exec...
public synchronized ModelNode doCommand(String command) throws CommandFormatException, IOException { // System.out.println("command=" + command); parsedCmd.rootNode(0); parser.parse(command, parsedCmd); ModelNode request = parsedCmd.toOperationRequest(cmdCtx); return c...
public EntityBeanComponentCreateService(final ComponentConfiguration componentConfiguration, final ApplicationExceptions ejbJarConfiguration) { super(componentConfiguration, ejbJarConfiguration); final EntityBeanComponentDescription description = EntityBeanComponentDescription.class.cast(componentCo...
public EntityBeanComponentCreateService(final ComponentConfiguration componentConfiguration, final ApplicationExceptions ejbJarConfiguration) { super(componentConfiguration, ejbJarConfiguration); final EntityBeanComponentDescription description = EntityBeanComponentDescription.class.cast(componentCo...
public void testOperate() { FieldMatrix<Fraction> m = createSparseMatrix(id); assertClose("identity operate", testVector, m.operate(testVector), entryTolerance); assertClose("identity operate", testVector, m.operate( new ArrayFieldVector<Fraction>(testVector))...
public void testOperate() { FieldMatrix<Fraction> m = createSparseMatrix(id); assertClose("identity operate", testVector, m.operate(testVector), entryTolerance); assertClose("identity operate", testVector, m.operate( new ArrayFieldVector<Fraction>(testVector))...
protected boolean applyUpdateToRuntime(OperationContext context, final String handlerName, final ModelNode model, final ModelNode originalModel, final AsyncHandler handler) throws OperationFailedException { boolean requireRestart = false; final ModelNode overflowAction = OVERFLOW_ACTION.resolveModel...
protected boolean applyUpdateToRuntime(OperationContext context, final String handlerName, final ModelNode model, final ModelNode originalModel, final AsyncHandler handler) throws OperationFailedException { boolean requireRestart = false; final ModelNode overflowAction = OVERFLOW_ACTION.resolveModel...
protected void updateRuntime(final OperationContext context, final ServiceBuilder<Handler> serviceBuilder, final String name, final ConsoleHandlerService service, final ModelNode model) throws OperationFailedException { super.updateRuntime(context, serviceBuilder, name, service, model); final ModelN...
protected void updateRuntime(final OperationContext context, final ServiceBuilder<Handler> serviceBuilder, final String name, final ConsoleHandlerService service, final ModelNode model) throws OperationFailedException { super.updateRuntime(context, serviceBuilder, name, service, model); final ModelN...
protected void updateRuntime(final OperationContext context, final ServiceBuilder<Handler> serviceBuilder, final String name, final SizeRotatingFileHandlerService service, final ModelNode model) throws OperationFailedException { super.updateRuntime(context, serviceBuilder, name, service, model); fin...
protected void updateRuntime(final OperationContext context, final ServiceBuilder<Handler> serviceBuilder, final String name, final SizeRotatingFileHandlerService service, final ModelNode model) throws OperationFailedException { super.updateRuntime(context, serviceBuilder, name, service, model); fin...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) { return; // Skip non web deployments }...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) { return; // Skip non web deployments }...
public RealPointValuePair doOptimize() throws OptimizationException { final SimplexTableau tableau = new SimplexTableau(f, constraints, goalType, restrictToNonNegative, epsilon); solvePhase1(tableau); tableau.discardArtificialVariables(); while (!isOptimal(tableau...
public RealPointValuePair doOptimize() throws OptimizationException { final SimplexTableau tableau = new SimplexTableau(function, linearConstraints, goal, nonNegative, epsilon); solvePhase1(tableau); tableau.discardArtificialVariables(); while (!isOptimal(tableau)...
public static boolean isSupported(String name) { if (name == null) { return false; } try { return Charset.isSupported(name); } catch (IllegalCharsetNameException ex) { return false; } } }
public static boolean isSupported(final String name) { if (name == null) { return false; } try { return Charset.isSupported(name); } catch (IllegalCharsetNameException ex) { return false; } } }
public static String[][] invert(String[][] array) { String[][] newarray = new String[array.length][2]; for(int i = 0; i<array.length; i++) { newarray[i][0] = array[i][1]; newarray[i][1] = array[i][0]; } return newarray; } }
public static String[][] invert(final String[][] array) { String[][] newarray = new String[array.length][2]; for(int i = 0; i<array.length; i++) { newarray[i][0] = array[i][1]; newarray[i][1] = array[i][0]; } return newarray; } }
protected void roundToJanuaryFirst(Date minDate, Date maxDate, int calendarField) { assertEquals("Rounding "+ fdf.format(januaryOneDate) +" as Date with CalendarField-value "+ calendarField +" must return itself", januaryOneDate, DateUtils.round(januaryOneDate, calendarField)); assertEquals(januaryO...
protected void roundToJanuaryFirst(final Date minDate, final Date maxDate, final int calendarField) { assertEquals("Rounding "+ fdf.format(januaryOneDate) +" as Date with CalendarField-value "+ calendarField +" must return itself", januaryOneDate, DateUtils.round(januaryOneDate, calendarField)); ass...
protected DateParser getInstance(String format, TimeZone timeZone, Locale locale) { return FastDateFormat.getInstance(format, timeZone, locale); } }
protected DateParser getInstance(final String format, final TimeZone timeZone, final Locale locale) { return FastDateFormat.getInstance(format, timeZone, locale); } }
protected DatePrinter getInstance(String format, TimeZone timeZone, Locale locale) { return FastDateFormat.getInstance(format, timeZone, locale); } }
protected DatePrinter getInstance(final String format, final TimeZone timeZone, final Locale locale) { return FastDateFormat.getInstance(format, timeZone, locale); } }
public State execute() { if (stateValues.isSilentOrNonInteractive() == false) { if (!stateValues.isManagement()) { theConsole.printf(MESSAGES.rolesPrompt()); String userRoles = stateValues.getKnownRoles().get(stateValues.getUserName()); stateValues...
public State execute() { if (stateValues.isSilentOrNonInteractive() == false) { if (!stateValues.getRoleFiles().isEmpty()) { theConsole.printf(MESSAGES.rolesPrompt()); String userRoles = stateValues.getKnownRoles().get(stateValues.getUserName()); s...
public UpdatePropertiesHandler(ConsoleWrapper theConsole) { this.theConsole = theConsole; } /** * Implement the persistence handler for storing the properties */ abstract void persist(String[] entry, File file) throws IOException; /** * Customize message for update or add u...
public UpdatePropertiesHandler(ConsoleWrapper theConsole) { this.theConsole = theConsole; } /** * Implement the persistence handler for storing the properties */ abstract void persist(String[] entry, File file) throws IOException; /** * Customize message for update or add u...
private Set<ViewDescription> getViews() { final EEApplicationDescription applicationDescription = deploymentUnit.getAttachment(EE_APPLICATION_DESCRIPTION); final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT); final Set<ViewDescription> componentsForV...
private Set<ViewDescription> getViews() { final EEApplicationDescription applicationDescription = deploymentUnit.getAttachment(EE_APPLICATION_DESCRIPTION); final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT); final Set<ViewDescription> componentsForV...
public void runBare() throws Throwable { // getName will return the name of the method being run if (isDisabledInThisEnvironment(getName())) { recordDisabled(); this.logger.info("**** " + getClass().getName() + "." + getName() + " disabled in this environment: " + "Total disabled tests = " + getDisabled...
public void runBare() throws Throwable { // getName will return the name of the method being run if (isDisabledInThisEnvironment(getName())) { recordDisabled(); this.logger.info("**** " + getClass().getName() + "." + getName() + " is disabled in this environment: " + "Total disabled tests = " + getDisab...
public static final String EOF_STATEMENT_SEPARATOR = "<<< END OF SCRIPT >>>";
public static final String EOF_STATEMENT_SEPARATOR = "^^^ END OF SCRIPT ^^^";
public static ModelNode getAddSystemPropertyOperation(final Locale locale, final boolean useBoottime) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode root = new ModelNode(); root.get(OPERATION_NAME).set(SystemPropertyAddHandler.OPERATION_NAME); root.get(DES...
public static ModelNode getAddSystemPropertyOperation(final Locale locale, final boolean useBoottime) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode root = new ModelNode(); root.get(OPERATION_NAME).set(SystemPropertyAddHandler.OPERATION_NAME); root.get(DES...
public void passivate(DomainInfo domain) { // Do nothing } }
public void onEntryChosenForEviction(DomainInfo arg0) { // Do nothing } }
private int searchIndex(double c, double[] val) { final int r = Arrays.binarySearch(val, c); if (r == -1 || r == -val.length) { throw new OutOfRangeException(c, val[0], val[val.length - 1]); } if (r < 0) { // "c" in within an interpolation sub-in...
private int searchIndex(double c, double[] val) { final int r = Arrays.binarySearch(val, c); if (r == -1 || r == -val.length - 1) { throw new OutOfRangeException(c, val[0], val[val.length - 1]); } if (r < 0) { // "c" in within an interpolation su...
public Archive<?> generateDeployment(TestDeployment testDeployment, Collection<ProtocolArchiveProcessor> protocolProcessors) { final Archive<?> appArchive = testDeployment.getApplicationArchive(); if (archiveHolder.getArchive() == null) { final Collection<Archive<?>> auxArchives = testDe...
public Archive<?> generateDeployment(TestDeployment testDeployment, Collection<ProtocolArchiveProcessor> protocolProcessors) { final Archive<?> appArchive = testDeployment.getApplicationArchive(); if (archiveHolder.getArchive() == null) { final Collection<Archive<?>> auxArchives = testDe...
private JMXServiceURL getRemoteJMXURL() { try { return new JMXServiceURL("service:jmx:remote://" + mgmtAddress + ":" + mgmtPort); } catch (Exception e) { throw new RuntimeException("Could not create JMXServiceURL:" + this, e); } }
private JMXServiceURL getRemoteJMXURL() { try { return new JMXServiceURL("service:jmx:remoting-jmx://" + mgmtAddress + ":" + mgmtPort); } catch (Exception e) { throw new RuntimeException("Could not create JMXServiceURL:" + this, e); } }
public void testInstallIntoController() throws Exception { //Parse the subsystem xml and install into the controller String subsystemXml = "<subsystem xmlns=\"" + Namespace.CURRENT.getUriString() + "\">" + "<remoting-connector/>" + "</subsystem>"; ...
public void testInstallIntoController() throws Exception { //Parse the subsystem xml and install into the controller String subsystemXml = "<subsystem xmlns=\"" + Namespace.CURRENT.getUriString() + "\">" + "<remoting-connector/>" + "</subsystem>"; ...
private MBeanServerConnection setupAndGetConnection(BaseAdditionalInitialization additionalInitialization) throws Exception { // Parse the subsystem xml and install into the controller String subsystemXml = "<subsystem xmlns=\"" + Namespace.CURRENT.getUriString() + "\">" + "<show-mo...
private MBeanServerConnection setupAndGetConnection(BaseAdditionalInitialization additionalInitialization) throws Exception { // Parse the subsystem xml and install into the controller String subsystemXml = "<subsystem xmlns=\"" + Namespace.CURRENT.getUriString() + "\">" + "<show-mo...
private static MBeanServerConnection setupAndGetConnection() throws Exception { // Make sure that we can connect to the MBean server String urlString = System .getProperty("jmx.service.url", "service:jmx:remote://" + HOST + ":" + PORT); JMXServiceURL serviceURL = new JMXServi...
private static MBeanServerConnection setupAndGetConnection() throws Exception { // Make sure that we can connect to the MBean server String urlString = System .getProperty("jmx.service.url", "service:jmx:remoting-jmx://" + HOST + ":" + PORT); JMXServiceURL serviceURL = new JM...
public void testMBean() throws Exception { final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999, getCallbackHandler()); try { final MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx...
public void testMBean() throws Exception { final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999, getCallbackHandler()); try { final MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx...
private MBeanServerConnection getMBeanServerConnection() throws IOException { return JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remote://localhost:9999")).getMBeanServerConnection(); }
private MBeanServerConnection getMBeanServerConnection() throws IOException { return JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://localhost:9999")).getMBeanServerConnection(); }
private <T> T lookup(ModelControllerClient client, String name, Class<T> expected) throws Exception { //TODO Don't do this FakeJndi stuff once we have remote JNDI working MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remote://127.0.0.1:9999")).getMBea...
private <T> T lookup(ModelControllerClient client, String name, Class<T> expected) throws Exception { //TODO Don't do this FakeJndi stuff once we have remote JNDI working MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://127.0.0.1:9999")).g...
public void testMBean() throws Exception { ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999, getCallbackHandler()); try { MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remote://12...
public void testMBean() throws Exception { ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999, getCallbackHandler()); try { MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jm...
private static <T> T lookup(String name, Class<T> expected) throws Exception { ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999, getCallbackHandler()); MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("servi...
private static <T> T lookup(String name, Class<T> expected) throws Exception { ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999, getCallbackHandler()); MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("servi...
private static <T> T lookup(ModelControllerClient client, String name, Class<T> expected) throws Exception { //TODO Don't do this FakeJndi stuff once we have remote JNDI working MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remote://127.0.0.1:9999"))...
private static <T> T lookup(ModelControllerClient client, String name, Class<T> expected) throws Exception { //TODO Don't do this FakeJndi stuff once we have remote JNDI working MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://127.0.0.1:9...
private void testDeployments(ModelControllerClient client, DeploymentExecutor deploymentExecutor) throws Exception { final MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remote://127.0.0.1:9999")).getMBeanServerConnection(); final ObjectName name = new...
private void testDeployments(ModelControllerClient client, DeploymentExecutor deploymentExecutor) throws Exception { final MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://127.0.0.1:9999")).getMBeanServerConnection(); final ObjectName name...
RequiresCallback require(String id); /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 re...
RequiresCallback require(String id); /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 re...
MultivariateVectorFunction gradient(); /* * 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 under the Apache License, ...
MultivariateVectorFunction gradient(); /* * 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 under the Apache License, ...
public interface MultivariateVectorFunction { /* * 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 under the Apache Li...
public interface MultivariateVectorFunction { /* * 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 under the Apache Li...
@Message(value = "Deployment %s contains CDI annotations but no bean archive was not found. (No beans.xml nor class with bean defining annotations)", id = 16012) /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the cop...
@Message(value = "Deployment %s contains CDI annotations but no bean archive was not found. (No beans.xml nor class with bean defining annotations)", id = 16012) /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the cop...
protected String[] generateDefaultLocations(Class<?> clazz) { Assert.notNull(clazz, "Class must not be null"); String suffix = getResourceSuffix(); Assert.hasText(suffix, "Resource suffix must not be empty"); String resourcePath = SLASH + ClassUtils.convertClassNameToResourcePath(clazz.getName()) + suffix; ...
protected String[] generateDefaultLocations(Class<?> clazz) { Assert.notNull(clazz, "Class must not be null"); String suffix = getResourceSuffix(); Assert.hasText(suffix, "Resource suffix must not be empty"); String resourcePath = SLASH + ClassUtils.convertClassNameToResourcePath(clazz.getName()) + suffix; ...
protected Class<?>[] generateDefaultConfigurationClasses(Class<?> declaringClass) { Assert.notNull(declaringClass, "Declaring class must not be null"); List<Class<?>> configClasses = new ArrayList<Class<?>>(); for (Class<?> candidate : declaringClass.getDeclaredClasses()) { if (isDefaultConfigurationClassCa...
protected Class<?>[] generateDefaultConfigurationClasses(Class<?> declaringClass) { Assert.notNull(declaringClass, "Declaring class must not be null"); List<Class<?>> configClasses = new ArrayList<Class<?>>(); for (Class<?> candidate : declaringClass.getDeclaredClasses()) { if (isDefaultConfigurationClassCa...
public int readBits(final int count) throws IOException { if (count < 0 || count > MAXIMUM_CACHE_SIZE) { throw new IllegalArgumentException("count must not be negative or bigger than " + MAXIMUM_CACHE_SIZE); } while (bitsCachedSize < count) { final int nextByte = in.r...
public int readBits(final int count) throws IOException { if (count < 0 || count > MAXIMUM_CACHE_SIZE) { throw new IllegalArgumentException("count must not be negative or greater than " + MAXIMUM_CACHE_SIZE); } while (bitsCachedSize < count) { final int nextByte = in....
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { super.execute(context, operation); context.completeStep(); }
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { super.execute(context, operation); context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER); }
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { Activation val = Activation.valueOf(operation.require(ModelDescriptionConstants.VALUE).asString().toUpperCase(Locale.ENGLISH)); ModelNode node = context.readResourceForUpdate(PathAddress.EMPTY_ADDRES...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { Activation val = Activation.valueOf(operation.require(ModelDescriptionConstants.VALUE).asString().toUpperCase(Locale.ENGLISH)); ModelNode node = context.readResourceForUpdate(PathAddress.EMPTY_ADDRES...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ServiceController<?> controller = context.getServiceRegistry(false).getService(Services.START_LEVEL); if (controller != null && controller.getState() == ServiceController.State.UP) { Star...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ServiceController<?> controller = context.getServiceRegistry(false).getService(Services.START_LEVEL); if (controller != null && controller.getState() == ServiceController.State.UP) { Star...
public void testActivateOperation() throws Exception { ModelNode activateOp = new ModelNode(); activateOp.get(ModelDescriptionConstants.OP_ADDR).add(ModelDescriptionConstants.SUBSYSTEM, "osgi"); activateOp.get(ModelDescriptionConstants.OP).set(ModelConstants.ACTIVATE); ServiceContro...
public void testActivateOperation() throws Exception { ModelNode activateOp = new ModelNode(); activateOp.get(ModelDescriptionConstants.OP_ADDR).add(ModelDescriptionConstants.SUBSYSTEM, "osgi"); activateOp.get(ModelDescriptionConstants.OP).set(ModelConstants.ACTIVATE); ServiceContro...
public void testHandlerLazy() throws Exception { ModelNode targetNode = new ModelNode(); targetNode.get(ModelConstants.ACTIVATION).set("eager"); OperationContext context = Mockito.mock(OperationContext.class); Resource resource = Mockito.mock(Resource.class); Mockito.when(re...
public void testHandlerLazy() throws Exception { ModelNode targetNode = new ModelNode(); targetNode.get(ModelConstants.ACTIVATION).set("eager"); OperationContext context = Mockito.mock(OperationContext.class); Resource resource = Mockito.mock(Resource.class); Mockito.when(re...
public static long freeSpaceKb(long timeout) throws IOException { return freeSpaceKb(new File(".").getAbsolutePath(), timeout); } //----------------------------------------------------------------------- /** * Returns the free space on a drive or volume in a cross-platform manner. ...
public static long freeSpaceKb(long timeout) throws IOException { return freeSpaceKb(new File(".").getAbsolutePath(), timeout); } //----------------------------------------------------------------------- /** * Returns the free space on a drive or volume in a cross-platform manner. ...
package org.jboss.as.arquillian.container; /* * 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 ...
package org.jboss.as.arquillian.container; /* * 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 ...
package org.jboss.as.test.embedded.osgi.api; /* * 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; yo...
package org.jboss.as.test.embedded.osgi.api; /* * 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; yo...
protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception { if (logger.isDebugEnabled()) { String requestUri = new UrlPathHelper().getRequestUri(request); logger.debug("DispatcherServlet with name '" + getServletName() + "' processing request for [" + requestUri +...
protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception { if (logger.isDebugEnabled()) { String requestUri = new UrlPathHelper().getRequestUri(request); logger.debug("DispatcherServlet with name '" + getServletName() + "' processing " + request.getMethod() + " r...
public static ServiceName getServiceName(String deploymentName) { return DeploymentService.SERVICE_NAME.append(deploymentName.replace('.', '_')); }
public static ServiceName getServiceName(String deploymentName) { return DeploymentService.SERVICE_NAME.append(deploymentName); }
package org.jboss.as.net; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or mod...
package org.jboss.as.net; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or mod...
public void writeJSON(String path, Map<Object, Object> data) { LOG.debug("Writing " + path + " the data " + data.toString()); writeBytes(path, JSONValue.toJSONString(data).getBytes(Charset.forName("UTF-8"))); }
public void writeJSON(String path, Map<Object, Object> data) { LOG.info("Writing " + path + " the data " + data.toString()); writeBytes(path, JSONValue.toJSONString(data).getBytes(Charset.forName("UTF-8"))); }
public DomainRootDefinition( final DomainController domainController, final HostControllerEnvironment environment, final ExtensibleConfigurationPersister configurationPersister, final ContentRepository contentRepo, final HostFileRepository fileRepository, final boolea...
public DomainRootDefinition( final DomainController domainController, final HostControllerEnvironment environment, final ExtensibleConfigurationPersister configurationPersister, final ContentRepository contentRepo, final HostFileRepository fileRepository, final boolea...
public ServerRootResourceDefinition( final ContentRepository contentRepository, final ExtensibleConfigurationPersister extensibleConfigurationPersister, final ServerEnvironment serverEnvironment, final ControlledProcessState processState, final RunningMode...
public ServerRootResourceDefinition( final ContentRepository contentRepository, final ExtensibleConfigurationPersister extensibleConfigurationPersister, final ServerEnvironment serverEnvironment, final ControlledProcessState processState, final RunningMode...
public void testArchive() throws Exception{ @SuppressWarnings("unchecked") ArrayList<String> expected= (ArrayList<String>) fileList.clone(); try { checkArchiveContent(file, expected); } catch (ArchiveException e) { fail("Problem checking "+file); } ...
public void testArchive() throws Exception{ @SuppressWarnings("unchecked") // fileList is correct type already ArrayList<String> expected= (ArrayList<String>) fileList.clone(); try { checkArchiveContent(file, expected); } catch (ArchiveException e) { fail("Prob...
public void testArchive() throws Exception { @SuppressWarnings("unchecked") ArrayList<String> expected = (ArrayList<String>) fileList.clone(); String name = file.getName(); if ("minotaur.jar".equals(name) || "minotaur-0.jar".equals(name)){ expected.add("META-INF/"); ...
public void testArchive() throws Exception { @SuppressWarnings("unchecked") // fileList is of correct type ArrayList<String> expected = (ArrayList<String>) fileList.clone(); String name = file.getName(); if ("minotaur.jar".equals(name) || "minotaur-0.jar".equals(name)){ e...
private <T> T convertIfNecessary(String propertyName, Object oldValue, Object newValue, Class<T> requiredType, TypeDescriptor typeDescriptor) throws IllegalArgumentException { Object convertedValue = newValue; // Custom editor for this type? PropertyEditor editor = this.propertyEditorRegistry.findCustomEdit...
private <T> T convertIfNecessary(String propertyName, Object oldValue, Object newValue, Class<T> requiredType, TypeDescriptor typeDescriptor) throws IllegalArgumentException { Object convertedValue = newValue; // Custom editor for this type? PropertyEditor editor = this.propertyEditorRegistry.findCustomEdit...
public void testCorruptedInput() throws Exception { InputStream in = null; OutputStream out = null; CompressorInputStream cin = null; try { in = new FileInputStream(getFile("bla.tgz")); out = new ByteArrayOutputStream(); IOUtils.copy(in, out); ...
public void testCorruptedInput() throws Exception { InputStream in = null; OutputStream out = null; CompressorInputStream cin = null; try { in = new FileInputStream(getFile("bla.tgz")); out = new ByteArrayOutputStream(); IOUtils.copy(in, out); ...
public void testConstructorDouble() { assertFraction(1, 2, new BigFraction(0.5)); assertFraction(6004799503160661l, 18014398509481984l, new BigFraction(1.0 / 3.0)); assertFraction(6124895493223875l, 36028797018963968l, new BigFraction(17.0 / 100.0)); assertFraction(1784551352345559l,...
public void testConstructorDouble() { assertFraction(1, 2, new BigFraction(0.5)); assertFraction(6004799503160661l, 18014398509481984l, new BigFraction(1.0 / 3.0)); assertFraction(6124895493223875l, 36028797018963968l, new BigFraction(17.0 / 100.0)); assertFraction(1784551352345559l,...
public CLIWrapper(boolean connect, String cliAddress) throws CliInitializationException { consoleOut = new ByteArrayOutputStream(); final char[] password = getPassword() == null ? null : getPassword().toCharArray(); System.setProperty("jreadline.terminal","org.jboss.jreadline.terminal.TestT...
public CLIWrapper(boolean connect, String cliAddress) throws CliInitializationException { consoleOut = new ByteArrayOutputStream(); final char[] password = getPassword() == null ? null : getPassword().toCharArray(); System.setProperty("aesh.terminal","org.jboss.aesh.terminal.TestTerminal");...
private static DeploymentAspect parseDeploymentAspect(XMLStreamReader reader) throws XMLStreamException { String deploymentAspectClass = reader.getAttributeValue(null, CLASS); if (deploymentAspectClass == null) { throw new IllegalStateException("Could not find class attribute for deploym...
private static DeploymentAspect parseDeploymentAspect(XMLStreamReader reader) throws XMLStreamException { String deploymentAspectClass = reader.getAttributeValue(null, CLASS); if (deploymentAspectClass == null) { throw new IllegalStateException("Could not find class attribute for deploym...
public InetAddressValidator(final boolean nullable, final boolean allowExpressions) { super(ModelType.STRING, nullable, allowExpressions); }
public InetAddressValidator(final boolean nullable, final boolean allowExpressions) { super(ModelType.STRING, nullable, allowExpressions, true); }
public IntRangeValidator(final int min, final int max, final boolean nullable, final boolean allowExpressions) { super(nullable, allowExpressions, ModelType.INT, ModelType.BIG_DECIMAL, ModelType.BIG_INTEGER, ModelType.DOUBLE, ModelType.LONG, ModelType.STRING); this.min = min; this.max = max;...
public IntRangeValidator(final int min, final int max, final boolean nullable, final boolean allowExpressions) { super(ModelType.INT, nullable, allowExpressions, false); this.min = min; this.max = max; }
public ListValdidator(ParameterValidator elementValidator, boolean nullable, int minSize, int maxSize) { super(ModelType.LIST, nullable, false); this.min = minSize; this.max = maxSize; this.elementValidator = elementValidator; }
public ListValdidator(ParameterValidator elementValidator, boolean nullable, int minSize, int maxSize) { super(ModelType.LIST, nullable, false, true); this.min = minSize; this.max = maxSize; this.elementValidator = elementValidator; }
public StringLengthValidator(final int min, final int max, final boolean nullable, final boolean allowExpressions) { super(ModelType.STRING, nullable, allowExpressions); this.min = min; this.max = max; }
public StringLengthValidator(final int min, final int max, final boolean nullable, final boolean allowExpressions) { super(ModelType.STRING, nullable, allowExpressions, false); this.min = min; this.max = max; }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); fi...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); fi...
public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); ...
public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); ...
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.ANNOTATION_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { final PropertyResolver propertyResolver = deploymentUnit ...
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.EJB_ANNOTATION_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { final PropertyResolver propertyResolver = deploymentUnit ...
String EJB_ANNOTATION_PROPERTY_REPLACEMENT = "ejb-annotation-property-replacement"; /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 contri...
String EJB_ANNOTATION_PROPERTY_REPLACEMENT = "ejb-annotation-property-replacement"; /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 contri...
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(Namespace.EE_2_0.getUriString(), false); ModelNode eeSubSystem = context.getModelNode(); GlobalModulesDefinition.INSTANCE.marshallAsElement...
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(Namespace.EE_2_0.getUriString(), false); ModelNode eeSubSystem = context.getModelNode(); GlobalModulesDefinition.INSTANCE.marshallAsElement...
private void applyUpdateToDeploymentUnitProcessor(final OperationContext context, ModelNode newValue, String attributeName) throws OperationFailedException { if (GlobalModulesDefinition.INSTANCE.getName().equals(attributeName)) { moduleDependencyProcessor.setGlobalModules(GlobalModulesDefinition...
private void applyUpdateToDeploymentUnitProcessor(final OperationContext context, ModelNode newValue, String attributeName) throws OperationFailedException { if (GlobalModulesDefinition.INSTANCE.getName().equals(attributeName)) { moduleDependencyProcessor.setGlobalModules(GlobalModulesDefinition...
private void testTransformers1_0_0_reject(ModelTestControllerVersion controllerVersion) throws Exception { String subsystemXml = readResource("subsystem.xml"); ModelVersion modelVersion = ModelVersion.create(1, 0, 0); //Use the non-runtime version of the extension which will happen on the HC...
private void testTransformers1_0_0_reject(ModelTestControllerVersion controllerVersion) throws Exception { String subsystemXml = readResource("subsystem.xml"); ModelVersion modelVersion = ModelVersion.create(1, 0, 0); //Use the non-runtime version of the extension which will happen on the HC...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final Com...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final Com...
private void processMessageBeans(final DeploymentUnit deploymentUnit, final Collection<AnnotationInstance> messageBeanAnnotations, final CompositeIndex compositeIndex) throws DeploymentUnitProcessingException { if (messageBeanAnnotations.isEmpty()) return; final EjbJarDescription ejbJar...
private void processMessageBeans(final DeploymentUnit deploymentUnit, final Collection<AnnotationInstance> messageBeanAnnotations, final CompositeIndex compositeIndex) throws DeploymentUnitProcessingException { if (messageBeanAnnotations.isEmpty()) return; final EjbJarDescription ejbJar...
private void processSessionBeans(final DeploymentUnit deploymentUnit, final List<AnnotationInstance> sessionBeanAnnotations, final SessionBeanComponentDescription.SessionBeanType annotatedSessionBeanType) { final EjbJarDescription ejbJarDescription = getEjbJarDescription(deploymentUnit); final Serv...
private void processSessionBeans(final DeploymentUnit deploymentUnit, final List<AnnotationInstance> sessionBeanAnnotations, final SessionBeanComponentDescription.SessionBeanType annotatedSessionBeanType) { final EjbJarDescription ejbJarDescription = getEjbJarDescription(deploymentUnit); final Serv...