buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected String autogenerateId() throws JspException { String path = getPropertyPath(); if ("".equals(path)) { path = (String) this.pageContext.getAttribute( FormTag.MODEL_ATTRIBUTE_VARIABLE_NAME, PageContext.REQUEST_SCOPE); } return StringUtils.deleteAny(path, "[]") + ".errors"; }
protected String autogenerateId() throws JspException { String path = getPropertyPath(); if ("".equals(path) || "*".equals(path)) { path = (String) this.pageContext.getAttribute( FormTag.MODEL_ATTRIBUTE_VARIABLE_NAME, PageContext.REQUEST_SCOPE); } return StringUtils.deleteAny(path, "[]") + ".errors"; ...
public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { System.out.println("Running"); final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget(); final LookupService rebindService = new LookupService("BeanWithSimpleInje...
public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { System.out.println("Running"); final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget(); final LookupService rebindService = new LookupService("BeanWithSimpleInje...
protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final ComponentConfiguration componentConfiguration) { final ClassInfo classInfo = index.getClassByName(DotName.createSimple(componentConfiguration.getBeanClass()...
protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final ComponentConfiguration componentConfiguration) { final ClassInfo classInfo = index.getClassByName(DotName.createSimple(componentConfiguration.getComponentCl...
protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final ComponentConfiguration componentConfiguration) { final ClassInfo classInfo = index.getClassByName(DotName.createSimple(componentConfiguration.getBeanClass()...
protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final ComponentConfiguration componentConfiguration) { final ClassInfo classInfo = index.getClassByName(DotName.createSimple(componentConfiguration.getComponentCl...
public void afterPropertiesSet() throws Exception { if (this.enabled) { Assert.state(this.dataSource != null, "DataSource must be provided"); Assert.state(this.databasePopulator != null, "DatabasePopulator must be provided"); try { Connection connection = this.dataSource.getConnection(); try { ...
public void afterPropertiesSet() throws Exception { if (this.enabled) { Assert.state(this.dataSource != null, "DataSource must be provided"); Assert.state(this.databasePopulator != null, "DatabasePopulator must be provided"); try { Connection connection = this.dataSource.getConnection(); try { ...
private static final Object[][] CONTENTS = { // org.apache.commons.math.util.MathUtils { "must have n >= k for binomial coefficient (n,k), got n = {0}, k = {1}", "n doit \u00eatre sup\u00e9rieur ou \u00e9gal \u00e0 k " + "pour le coefficient du bin\u00f4me (n,k), or n = {0}, k = {1}" }, { "mu...
private static final Object[][] CONTENTS = { // org.apache.commons.math.util.MathUtils { "must have n >= k for binomial coefficient (n,k), got n = {0}, k = {1}", "n doit \u00eatre sup\u00e9rieur ou \u00e9gal \u00e0 k " + "pour le coefficient du bin\u00f4me (n,k), or n = {0}, k = {1}" }, { "mu...
private void qrDecomposition() throws OptimizationException { // initializations for (int k = 0; k < cols; ++k) { permutation[k] = k; double norm2 = 0; for (int i = 0; i < jacobian.length; ++i) { double akk = jacobian[i][k]; norm2 ...
private void qrDecomposition() throws OptimizationException { // initializations for (int k = 0; k < cols; ++k) { permutation[k] = k; double norm2 = 0; for (int i = 0; i < jacobian.length; ++i) { double akk = jacobian[i][k]; norm2 ...
void addDeploymentProcessor(Phase phase, int priority, DeploymentUnitProcessor processor); /* * 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...
void addDeploymentProcessor(Phase phase, int priority, DeploymentUnitProcessor processor); /* * 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...
public void testCSVFile() throws Exception { String line = readTestData(); assertNotNull("file must contain config line", line); final String[] split = line.split(" "); assertTrue(testName+" require 1 param", split.length >= 1); // first line starts with csv data file name ...
public void testCSVFile() throws Exception { String line = readTestData(); assertNotNull("file must contain config line", line); final String[] split = line.split(" "); assertTrue(testName+" require 1 param", split.length >= 1); // first line starts with csv data file name ...
public void testNextToken6() throws IOException { /* file: a;'b and \' more * ' * !comment;;;; * ;; */ final String code = "a;'b and '' more\n'\n!comment;;;;\n;;"; final CSVFormat format = CSVFormat.DEFAULT.withDelimiter(';').withEncapsulator...
public void testNextToken6() throws IOException { /* file: a;'b and \' more * ' * !comment;;;; * ;; */ final String code = "a;'b and '' more\n'\n!comment;;;;\n;;"; final CSVFormat format = CSVFormat.DEFAULT.withDelimiter(';').withQuoteChar('\...
public void testBackslashEscaping() throws IOException { // To avoid confusion over the need for escaping chars in java code, // We will test with a forward slash as the escape char, and a single // quote as the encapsulator. final String code = "one,two,three\n" //...
public void testBackslashEscaping() throws IOException { // To avoid confusion over the need for escaping chars in java code, // We will test with a forward slash as the escape char, and a single // quote as the encapsulator. final String code = "one,two,three\n" //...
protected boolean doReceiveAndExecute( Object invoker, Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException { Connection conToClose = null; Session sessionToClose = null; MessageConsumer consumerToClose = null; try { Session sessionToUse = session; boolean trans...
protected boolean doReceiveAndExecute( Object invoker, Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException { Connection conToClose = null; Session sessionToClose = null; MessageConsumer consumerToClose = null; try { Session sessionToUse = session; boolean trans...
public void execute(RuntimeTaskContext context) throws OperationFailedException { final ServiceTarget target = context.getServiceTarget(); // XATerminator has no deps, so just add it in there final XATerminatorService xaTerminatorService = new...
public void execute(RuntimeTaskContext context) throws OperationFailedException { final ServiceTarget target = context.getServiceTarget(); // XATerminator has no deps, so just add it in there final XATerminatorService xaTerminatorService = new...
public void testMessageNumber() { Assert.assertEquals(311, LocalizedFormats.values().length); }
public void testMessageNumber() { Assert.assertEquals(310, LocalizedFormats.values().length); }
public BeanDefinitionBuilder addDependsOn(String beanName) { if (this.beanDefinition.getDependsOn() == null) { this.beanDefinition.setDependsOn(new String[] {beanName}); } else { String[] added = (String[]) ObjectUtils.addObjectToArray(this.beanDefinition.getDependsOn(), beanName); this.beanDefinition.s...
public BeanDefinitionBuilder addDependsOn(String beanName) { if (this.beanDefinition.getDependsOn() == null) { this.beanDefinition.setDependsOn(new String[] {beanName}); } else { String[] added = ObjectUtils.addObjectToArray(this.beanDefinition.getDependsOn(), beanName); this.beanDefinition.setDependsOn...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(BasicDeployment10TestCase.class, "basic10.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.CURRENT.getUriString(), new ResourceAdapterSubsystemParser());...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(BasicDeployment10TestCase.class, "basic10.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_0.getUriString(), new ResourceAdapterSubsys...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(BasicDeployment15TestCase.class, "basic15.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.CURRENT.getUriString(), new ResourceAdapterSubsystemParser());...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(BasicDeployment15TestCase.class, "basic15.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_0.getUriString(), new ResourceAdapterSubsys...
private <T> void addBean(final ServiceTarget serviceTarget, BeanMetaDataConfig beanConfig, Class<T> clazz, DeploymentReflectionIndex deploymentIndex) throws ClassNotFoundException { final ClassReflectionIndex<T> index = deploymentIndex.getClassIndex(clazz); final Constructor<T> constructor = index.g...
private <T> void addBean(final ServiceTarget serviceTarget, BeanMetaDataConfig beanConfig, Class<T> clazz, DeploymentReflectionIndex deploymentIndex) throws ClassNotFoundException { final ClassReflectionIndex<T> index = deploymentIndex.getClassIndex(clazz); final Constructor<T> constructor = index.g...
public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { try { // prepare for invocation this.onBeforeInvocation(wsInvocation); final SessionBeanComponent ejbContainer = this.getEjb3Container(); final Method seiMethod = wsInvocation.get...
public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { try { // prepare for invocation this.onBeforeInvocation(wsInvocation); final SessionBeanComponent ejbContainer = this.getEjb3Container(); final Method seiMethod = wsInvocation.get...
public enum AuthenticationMechanism { /* * Values are ordered in priority order, do not re-order unless deliberately changing priority order. */ LOCAL, CLIENT_CERT, DIGEST, PLAIN; }
public enum AuthMechanism { /* * Values are ordered in priority order, do not re-order unless deliberately changing priority order. */ LOCAL, CLIENT_CERT, DIGEST, PLAIN; }
protected void manageTransaction() throws Throwable { final Transaction transaction = this.transactionsRepository.removeTransaction(this.userTransactionID); if(transaction != null) { this.resumeTransaction(transaction); this.transactionsRepository.getTransactionManager().comm...
protected void manageTransaction() throws Throwable { final Transaction transaction = this.transactionsRepository.removeUserTransaction(this.userTransactionID); if(transaction != null) { this.resumeTransaction(transaction); this.transactionsRepository.getTransactionManager()....
protected void manageTransaction() throws Throwable { final Transaction transaction = this.transactionsRepository.removeTransaction(this.userTransactionID); if(transaction != null) { this.resumeTransaction(transaction); this.transactionsRepository.getTransactionManager().roll...
protected void manageTransaction() throws Throwable { final Transaction transaction = this.transactionsRepository.removeUserTransaction(this.userTransactionID); if(transaction != null) { this.resumeTransaction(transaction); this.transactionsRepository.getTransactionManager()....
protected void manageTransaction() throws Throwable { // first associate the tx on this thread, by resuming the tx final Transaction transaction = this.transactionsRepository.removeTransaction(this.xidTransactionID); if(transaction == null) { if(EjbLogger.EJB3_INVOCATION_LOGGER.i...
protected void manageTransaction() throws Throwable { // first associate the tx on this thread, by resuming the tx final Transaction transaction = this.transactionsRepository.getImportedTransaction(this.xidTransactionID); if(transaction == null) { if(EjbLogger.EJB3_INVOCATION_LOG...
protected void manageTransaction() throws Throwable { final Transaction transaction = this.transactionsRepository.removeTransaction(this.xidTransactionID); if(transaction == null) { if(EjbLogger.EJB3_INVOCATION_LOGGER.isDebugEnabled()) { //this happens if no ejb invocatio...
protected void manageTransaction() throws Throwable { final Transaction transaction = this.transactionsRepository.getImportedTransaction(this.xidTransactionID); if(transaction == null) { if(EjbLogger.EJB3_INVOCATION_LOGGER.isDebugEnabled()) { //this happens if no ejb invo...
* <li>Bean methods must be non-void, non-final, non-private * <li>Bean methods may not accept any arguments * <li>Bean methods may throw any exception, which will be caught and handled * by the Spring container on processing of the declaring {@link Configuration} class. * </ul> * * <h3>Usage</h3> ...
* <li>Bean methods must be non-void, non-final, non-private * <li>Bean methods may not accept any arguments * <li>Bean methods may throw any exception, which will be caught and handled * by the Spring container on processing of the declaring {@link Configuration} class. * </ul> * * <h3>Usage</h3> ...
public Resource getResource(final String path) throws IOException { Resource res = deploymentResourceManager.getResource(path); if (res != null) { return res; } String p = path; if (p.startsWith("/")) { p = p.substring(1); } if(overlays...
public Resource getResource(final String path) throws IOException { Resource res = deploymentResourceManager.getResource(path); if (res != null) { return res; } String p = path; if (p.startsWith("/")) { p = p.substring(1); } if(overlays...
public static ServiceController<ModelController> addService(final ServiceTarget serviceTarget, final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl, ...
public static ServiceController<ModelController> addService(final ServiceTarget serviceTarget, final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl, ...
public HostControllerConfigurationPersister(final HostControllerEnvironment environment, final LocalHostControllerInfo localHostControllerInfo, final ExecutorService executorService, final ExtensionRegistry extensionRegistry) { this.environment = environment; ...
public HostControllerConfigurationPersister(final HostControllerEnvironment environment, final LocalHostControllerInfo localHostControllerInfo, final ExecutorService executorService, final ExtensionRegistry extensionRegistry) { this.environment = environment; ...
public static void main(String[] args) throws Exception { DeploymentUtils utils = null; final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999); try { utils = new DeploymentUtils(); utils.addWarDeployment("wa...
public static void main(String[] args) throws Exception { DeploymentUtils utils = null; final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999); try { utils = new DeploymentUtils(); utils.addWarDeployment("wa...
private String readString() throws IOException { StringBuilder line = new StringBuilder(); //synchronized (processOut) { while (true) { String subline = processOut.readLine(); if(subline==null) throw new RuntimeException("Pipe to subpr...
private String readString() throws IOException { StringBuilder line = new StringBuilder(); //synchronized (processOut) { while (true) { String subline = processOut.readLine(); if(subline==null) throw new RuntimeException("Pipe to subpr...
private ArArchiveEntry readGNUStringTable(byte[] length) throws IOException { int bufflen = asInt(length); // Assume length will fit in an int namebuffer = new byte[bufflen]; int read = read(namebuffer, 0, bufflen); if (read != bufflen){ throw new IOException("Failed to r...
private ArArchiveEntry readGNUStringTable(byte[] length) throws IOException { int bufflen = asInt(length); // Assume length will fit in an int namebuffer = new byte[bufflen]; int read = IOUtils.readFully(this, namebuffer, 0, bufflen); if (read != bufflen){ throw new IOExc...
public void testRequestDataValueProcessorHooks() throws Exception { String action = "/my/form?foo=bar"; RequestDataValueProcessor processor = getMockRequestDataValueProcessor(); expect(processor.processAction(this.request, action)).andReturn(action); expect(processor.getExtraHiddenFields(this.request)).andRetu...
public void testRequestDataValueProcessorHooks() throws Exception { String action = "/my/form?foo=bar"; RequestDataValueProcessor processor = getMockRequestDataValueProcessor(); expect(processor.processAction(this.request, action)).andReturn(action); expect(processor.getExtraHiddenFields(this.request)).andRetu...
public void invoke(int state, InvocationContext context) { // HttpMetadata is guaratied to be available because we registered // this type as required input HttpMetadata metadata = context.getAttachment(HttpMetadata.class); // Register HttpMetadata on STARTING if (state == B...
public void invoke(int state, InvocationContext context) { // HttpMetadata is guaratied to be available because we registered // this type as required input HttpMetadata metadata = context.getAttachment(HttpMetadata.class); // Register HttpMetadata on STARTING if (state == B...
if (!discardChecker.isDiscardExpressions() && attributeValue.getType() == ModelType.EXPRESSION) { /* * JBoss, Home of Professional Open Source. * Copyright 2013, 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 ind...
if (!discardChecker.isDiscardExpressions() && attributeValue.getType() == ModelType.EXPRESSION) { /* * JBoss, Home of Professional Open Source. * Copyright 2013, 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 ind...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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 ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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 ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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 ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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 ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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 ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.bean; /* * 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 ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.remote.failover; /* * 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. ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.remote.failover; /* * 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. ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.remote.failover; /* * 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. ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.remote.failover; /* * 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. ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.remote.failover; /* * 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. ...
package org.jboss.as.test.clustering.cluster.ejb3.stateful.remote.failover; /* * 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. ...
package org.jboss.as.test.clustering.cluster.jsf; /* * 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 softwar...
package org.jboss.as.test.clustering.cluster.jsf; /* * 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 softwar...
package org.jboss.as.test.clustering.cluster.jsf; /* * 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 softwar...
package org.jboss.as.test.clustering.cluster.jsf; /* * 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 softwar...
public static ServiceController<?> install(final ServiceTarget serviceTarget, final ServiceListener<Object> listener) { final ServiceBuilder<EndpointRegistry> builder = serviceTarget.addService(WSServices.REGISTRY_SERVICE, INSTANCE); builder.addDependency(DependencyType.REQUIRED, MBEAN_SERVER_NAME, ...
public static ServiceController<?> install(final ServiceTarget serviceTarget, final ServiceListener<Object> listener) { final ServiceBuilder<EndpointRegistry> builder = serviceTarget.addService(WSServices.REGISTRY_SERVICE, INSTANCE); builder.addDependency(DependencyType.OPTIONAL, MBEAN_SERVER_NAME, ...
public static ServiceController<?> install(final ServiceTarget serviceTarget, final ServerConfigImpl serverConfig, final ServiceListener<Object> listener) { final ServiceBuilder<ServerConfig> builder = serviceTarget.addService(WSServices.CONFIG_SERVICE, new ServerConfigService(serverConfig)); builde...
public static ServiceController<?> install(final ServiceTarget serviceTarget, final ServerConfigImpl serverConfig, final ServiceListener<Object> listener) { final ServiceBuilder<ServerConfig> builder = serviceTarget.addService(WSServices.CONFIG_SERVICE, new ServerConfigService(serverConfig)); builde...
public TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException { try { if (argsRequiringConversion != null && arguments != null) { ReflectionHelper.convertArguments(this.ctor.getParameterTypes(), this.ctor.isVarArgs(), context.getTypeConverter(), this.argsRequirin...
public TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException { try { if (argsRequiringConversion != null && arguments != null) { ReflectionHelper.convertArguments(this.ctor.getParameterTypes(), this.ctor.isVarArgs(), context.getTypeConverter(), this.argsRequirin...
public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException { if (!name.equals("flibbles")) throw new RuntimeException("Assertion Failed! name should be flibbles"); try { flibbles = (Integer) context.getTypeConverter().convertValue(newValue, TypeD...
public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException { if (!name.equals("flibbles")) throw new RuntimeException("Assertion Failed! name should be flibbles"); try { flibbles = (Integer) context.getTypeConverter().convertValue(newValue, TypeD...
public void testStandardTypeConverter() throws EvaluationException { TypeConverter tc = new StandardTypeConverter(); tc.convertValue(3, TypeDescriptor.valueOf(Double.class)); }
public void testStandardTypeConverter() throws EvaluationException { TypeConverter tc = new StandardTypeConverter(); tc.convertValue(3, TypeDescriptor.forObject(3), TypeDescriptor.valueOf(Double.class)); }
module.setProperty("jboss.api", "private"); module.setProperty("prop", VALUE); module.setMainClass("o.r.g.MainClass"); module.addResource(new ResourceRoot("a.jar")); module.addResource(new ResourceRoot("another.jar")); module.addDependency(new ModuleDependency("a.modul...
module.setProperty("jboss.api", "private"); module.setProperty("prop", VALUE); module.setMainClass("o.r.g.MainClass"); module.addResource(new ResourceRoot("a.jar")); module.addResource(new ResourceRoot("another.jar")); module.addDependency(new ModuleDependency("a.modul...
private String marshall(SubsystemParser subsystemParser) throws Exception { StringWriter stringWriter = new StringWriter(); XMLOutputFactory factory = XMLOutputFactory.newFactory(); FormattingXMLStreamWriter writer = new FormattingXMLStreamWriter(factory.createXMLStreamWriter(stringWriter));...
private String marshall(SubsystemParser subsystemParser) throws Exception { StringWriter stringWriter = new StringWriter(); XMLOutputFactory factory = XMLOutputFactory.newInstance(); FormattingXMLStreamWriter writer = new FormattingXMLStreamWriter(factory.createXMLStreamWriter(stringWriter))...
public String modelToXml(String subsystemName, String childType, XMLElementWriter<SubsystemMarshallingContext> parser) throws Exception { final ModelNode address = new ModelNode(); address.add("subsystem", subsystemName); address.protect(); final ModelNode operation = new ModelNode(...
public String modelToXml(String subsystemName, String childType, XMLElementWriter<SubsystemMarshallingContext> parser) throws Exception { final ModelNode address = new ModelNode(); address.add("subsystem", subsystemName); address.protect(); final ModelNode operation = new ModelNode(...
public void testLogGamma() { final int ulps = 130; for (int i = 0; i < LOG_GAMMA_REF.length; i++) { final double[] data = LOG_GAMMA_REF[i]; final double x = data[0]; final double expected = data[1]; final double actual = Gamma.logGamma(x); ...
public void testLogGamma() { final int ulps = 3; for (int i = 0; i < LOG_GAMMA_REF.length; i++) { final double[] data = LOG_GAMMA_REF[i]; final double x = data[0]; final double expected = data[1]; final double actual = Gamma.logGamma(x); fi...
public void testSolveBadEndpoints() throws MathException { try { // bad endpoints UnivariateRealSolverUtils.solve(sin,0.0, 4.0, 4.0); fail("Expecting IllegalArgumentException"); } catch (IllegalArgumentException ex) { // expected } }
public void testSolveBadEndpoints() throws MathException { try { // bad endpoints UnivariateRealSolverUtils.solve(sin, -0.1, 4.0, 4.0); fail("Expecting IllegalArgumentException"); } catch (IllegalArgumentException ex) { // expected } }
private synchronized boolean shouldContract() { if (expansionMode == MULTIPLICATIVE_MODE) { return (internalArray.length / numElements) > contractionCriteria; } else { return (internalArray.length - numElements) > contractionCriteria; } }
private synchronized boolean shouldContract() { if (expansionMode == MULTIPLICATIVE_MODE) { return (internalArray.length / ((float) numElements)) > contractionCriteria; } else { return (internalArray.length - numElements) > contractionCriteria; } }
private final ExtensionRegistry extensionRegistry; TestModelControllerService7_1_2(ProcessType processType, RunningModeControl runningModeControl, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, TestModelType type, ModelInitializer modelInitializer, Descr...
private final ExtensionRegistry extensionRegistry; TestModelControllerService7_1_2(ProcessType processType, RunningModeControl runningModeControl, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, TestModelType type, ModelInitializer modelInitializer, Descr...
public void testSocketBindingGroupsTransformer() throws Exception { boolean below14 = modelVersion.getMajor() == 1 && modelVersion.getMinor() <= 3; KernelServicesBuilder builder = createKernelServicesBuilder(TestModelType.DOMAIN) .setXmlResource(below14 ? "domain-transformers-1.3.x...
public void testSocketBindingGroupsTransformer() throws Exception { boolean below14 = ModelVersion.compare(ModelVersion.create(1, 4, 0), modelVersion) < 0; KernelServicesBuilder builder = createKernelServicesBuilder(TestModelType.DOMAIN) .setXmlResource(below14 ? "domain-transforme...
public enum Quote { /** * Quotes all fields. */ ALL, /** * Quotes fields which contain special characters such as a delimiter, quote character or any of the characters in * line separator. */ MINIMAL, /** * Quotes all non-numeric fields. */ NON_NUMERIC, ...
public enum QuoteMode { /** * Quotes all fields. */ ALL, /** * Quotes fields which contain special characters such as a delimiter, quote character or any of the characters in * line separator. */ MINIMAL, /** * Quotes all non-numeric fields. */ NON_NUMERIC, ...
protected Object runInvocation() throws Exception { setSecurityContextOnAssociation(securityContext); try { return view.invoke(interceptorContext); } finally { clearSecurit...
protected Object runInvocation() throws Exception { setSecurityContextOnAssociation(securityContext); try { return view.invoke(interceptorContext); } finally { clearSecurit...
public interface WebDeploymentController { package org.jboss.as.web.host; /** * @author Stuart Douglas */ public interface CommonWebDeployment { void create() throws Exception; void start() throws Exception; void stop() throws Exception; void destroy() throws Exception; }
public interface WebDeploymentController { package org.jboss.as.web.host; /** * @author Stuart Douglas */ public interface WebDeploymentController { void create() throws Exception; void start() throws Exception; void stop() throws Exception; void destroy() throws Exception; }
public ServiceRegistry getServiceRegistry(final boolean modify) throws UnsupportedOperationException { assert Thread.currentThread() == initiatingThread; Stage currentStage = this.currentStage; if (currentStage == null) { throw new IllegalStateException("Operation already complet...
public ServiceRegistry getServiceRegistry(final boolean modify) throws UnsupportedOperationException { assert Thread.currentThread() == initiatingThread; Stage currentStage = this.currentStage; if (currentStage == null) { throw new IllegalStateException("Operation already complet...
public double evaluate(final double[] values,final int begin, final int length) { // Initialize the skewness double skew = Double.NaN; if (test(values, begin, length) && length > 2 ){ Mean mean = new Mean(); // Get the mean and the standard deviation ...
public double evaluate(final double[] values,final int begin, final int length) { // Initialize the skewness double skew = Double.NaN; if (test(values, begin, length) && length > 2 ){ Mean mean = new Mean(); // Get the mean and the standard deviation ...
public synchronized void freeBatchId(int id) { ids.remove(id); } }; }
public synchronized void freeBatchId(int id) { ids.remove(id); } } }
private RemoteFileRepository(final File localDeploymentFolder) { this.localDeploymentFolder = localDeploymentFolder; this.remoteFileRepositoryExecutor = remoteFileRepositoryExecutor; localRepository = new LocalDeploymentFileRepository(localDeploymentFolder); }
private RemoteFileRepository(final File localDeploymentFolder) { this.localDeploymentFolder = localDeploymentFolder; // this.remoteFileRepositoryExecutor = remoteFileRepositoryExecutor; localRepository = new LocalDeploymentFileRepository(localDeploymentFolder); }
new ModelNode().set(false /*TODO should be ConfigurationImpl.DEFAULT_FAILOVER_ON_SERVER_SHUTDOWN but field is private*/), ModelType.BOOLEAN, true); SimpleAttributeDefinition FILTER = new SimpleAttributeDefinition("filter", ModelType.STRING, true); SimpleAttributeDefinition FORWARD_WHEN_NO_CONSUME...
new ModelNode().set(false /*TODO should be ConfigurationImpl.DEFAULT_FAILOVER_ON_SERVER_SHUTDOWN but field is private*/), ModelType.BOOLEAN, true); SimpleAttributeDefinition FILTER = new SimpleAttributeDefinition("filter", ModelType.STRING, true); SimpleAttributeDefinition FORWARD_WHEN_NO_CONSUME...
public static ServiceController<SocketBinding> installBindingService(OperationContext context, ModelNode config, String name) throws UnknownHostException, OperationFailedException { final ServiceTarget serviceTarget = context.getServiceTarget(); final ModelNode intfNode = AbstractSocket...
public static ServiceController<SocketBinding> installBindingService(OperationContext context, ModelNode config, String name) throws UnknownHostException, OperationFailedException { final ServiceTarget serviceTarget = context.getServiceTarget(); final ModelNode intfNode = AbstractSocket...
private void parsePOAConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse the poa config attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.POA_MONITORING, Attribute.POA_QUEUE_WAIT, Attribute.POA_QUEUE_MIN, Attribute.POA_Q...
private void parsePOAConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse the poa config attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.POA_MONITORING, Attribute.POA_QUEUE_WAIT, Attribute.POA_QUEUE_MIN, Attribute.POA_Q...
public void handleEvent(final StreamConnection channel) { if (channel instanceof SslConnection) { adaptor.adapt(new AssembledConnectedSslStreamChannel((SslConnection) channel, channel.getSourceChannel(), channel.getSinkChannel())); } else {...
public void handleEvent(final StreamConnection channel) { if (channel instanceof SslConnection) { adaptor.adapt(new AssembledConnectedSslStreamChannel((SslConnection) channel, channel.getSourceChannel(), channel.getSinkChannel())); } else {...
private void testAddXaDataSource() throws Exception { // add data source cli.sendLine("xa-data-source add --profile=" + profileNames[0] + " --jndi-name=java:jboss/datasources/TestXADS --name=java:jboss/datasources/TestXADS --driver-name=h2"); //check the data source is list...
private void testAddXaDataSource() throws Exception { // add data source cli.sendLine("xa-data-source add --profile=" + profileNames[0] + " --jndi-name=java:jboss/datasources/TestXADS --name=java:jboss/datasources/TestXADS --driver-name=h2 --xa-datasource-properties=ServerName=local...
public void rollback() { delegate.rollback(); } }; } void acquireLock(final boolean interruptibly) throws InterruptedException { if (interruptibly) { //noinspection LockAcquiredButNotSafelyReleased writeLock.lockInterruptibly(); ...
public void rollback() { delegate.rollback(); } }; } void acquireLock(final boolean interruptibly) throws InterruptedException { if (interruptibly) { //noinspection LockAcquiredButNotSafelyReleased writeLock.lockInterruptibly(); ...
public ModelNode resolveExpressions(ModelNode node) { return primaryContext.resolveExpressions(node); } }
public ModelNode resolveExpressions(ModelNode node) throws OperationFailedException { return primaryContext.resolveExpressions(node); } }
private String unmaskPassword(OperationContext context, ModelNode model) { if (!model.hasDefined(CommonAttributes.SSL)) { return null; } if (!model.get(CommonAttributes.SSL).hasDefined(CommonAttributes.PASSWORD)) { return null; } return context.resolve...
private String unmaskPassword(OperationContext context, ModelNode model) throws OperationFailedException { if (!model.hasDefined(CommonAttributes.SSL)) { return null; } if (!model.get(CommonAttributes.SSL).hasDefined(CommonAttributes.PASSWORD)) { return null; ...
public void testJdbcTx2() throws InterruptedException { //Thread.sleep(2000); assertEquals("Any previous tx must have been rolled back", 0, countRowsInTable("person")); //insertPerson("foo"); executeSqlScript("/sql/insertPerson.sql", false); }
public void testJdbcTx2() throws InterruptedException { //Thread.sleep(2000); assertEquals("Any previous tx must have been rolled back", 0, countRowsInTable("person")); //insertPerson("foo"); executeSqlScript("/org/springframework/orm/jpa/insertPerson.sql", false); }
public void testComparableComparatorIllegalArgs() { Comparator c = new ComparableComparator(); Object o1 = new Object(); Object o2 = new Object(); try { c.compare(o1, o2); } catch (IllegalArgumentException e) { return; } fail("Comparator should have thrown a cce"); }
public void testComparableComparatorIllegalArgs() { Comparator c = new ComparableComparator(); Object o1 = new Object(); Object o2 = new Object(); try { c.compare(o1, o2); } catch (ClassCastException e) { return; } fail("Comparator should have thrown a cce"); }
import org.springframework.web.socket.WebSocketExtension; /* * 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 at * * http://www.apach...
import org.springframework.web.socket.WebSocketExtension; /* * 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 at * * http://www.apach...
public static void assertEquals(String message, Calendar cal1, Calendar cal2, long delta) { if (Math.abs(cal1.getTime().getTime() - cal2.getTime().getTime()) > delta) { throw new AssertionFailedError( message + " expected " + cal1.getTime() + " but got " + cal2.getTime()); ...
private static void assertEquals(String message, Calendar cal1, Calendar cal2, long delta) { if (Math.abs(cal1.getTime().getTime() - cal2.getTime().getTime()) > delta) { throw new AssertionFailedError( message + " expected " + cal1.getTime() + " but got " + cal2.getTime()); ...
public void start(final StartContext context) throws StartException { super.start(context); RemotingConnectorBindingInfoService.install(context.getChildTarget(), context.getController().getName().getSimpleName(), getSocketBinding(), Protocols.REMOTE); }
public void start(final StartContext context) throws StartException { super.start(context); RemotingConnectorBindingInfoService.install(context.getChildTarget(), context.getController().getName().getSimpleName(), getSocketBinding(), Protocol.REMOTE.toString()); }
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) throws Exception { HttpServletRequest servletRequest = request.getNativeRequest(HttpServletRequest.class); if (!isMultipartRequest(servletRequest)) { thr...
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) throws Exception { HttpServletRequest servletRequest = request.getNativeRequest(HttpServletRequest.class); if (!isMultipartRequest(servletRequest)) { thr...
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception { Object arg = readWithMessageConverters(webRequest, parameter, parameter.getParameterType()); Annotation[] annotations = parameter.getP...
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception { Object arg = readWithMessageConverters(webRequest, parameter, parameter.getParameterType()); Annotation[] annotations = parameter.getP...
private Object[] resolveHandlerArguments(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel) throws Exception { Class[] paramTypes = handlerMethod.getParameterTypes(); Object[] args = new Object[paramTypes.length]; for (int i = 0; i < args.length; i++) { Met...
private Object[] resolveHandlerArguments(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel) throws Exception { Class[] paramTypes = handlerMethod.getParameterTypes(); Object[] args = new Object[paramTypes.length]; for (int i = 0; i < args.length; i++) { Met...
protected void validateIfApplicable(WebDataBinder binder, MethodParameter parameter) { Annotation[] annotations = parameter.getParameterAnnotations(); for (Annotation annot : annotations) { if ("Valid".equals(annot.annotationType().getSimpleName())) { Object hints = AnnotationUtils.getValue(annot); bind...
protected void validateIfApplicable(WebDataBinder binder, MethodParameter parameter) { Annotation[] annotations = parameter.getParameterAnnotations(); for (Annotation annot : annotations) { if (annot.annotationType().getSimpleName().startsWith("Valid")) { Object hints = AnnotationUtils.getValue(annot); ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!DeploymentTypeMarker.isType(DeploymentType.APPLICATION_CLIENT, deploymentUnit)) { return; } fina...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!DeploymentTypeMarker.isType(DeploymentType.APPLICATION_CLIENT, deploymentUnit)) { return; } fina...
public void testConfiguration() throws Exception { //Initialize some additional constraints new SensitiveTargetAccessConstraintDefinition(new SensitivityClassification("play", "security-realm", true, true, true)); new ApplicationTypeAccessConstraintDefinition(new ApplicationTypeConfig("play"...
public void testConfiguration() throws Exception { //Initialize some additional constraints new SensitiveTargetAccessConstraintDefinition(new SensitivityClassification("play", "security-realm", true, true, true)); new ApplicationTypeAccessConstraintDefinition(new ApplicationTypeConfig("play"...
public void testFailInDAOCalls() throws Exception { SLSB1 slsb1 = lookup("SLSB1", SLSB1.class); slsb1.addEmployee(); String message = slsb1.failAfterCalls(); assertEquals("DB should be unchanged, which we indicate by returning 'success'","success", message); message = slsb1.failInSec...
public void testFailInDAOCalls() throws Exception { SLSB1 slsb1 = lookup("SLSB1", SLSB1.class); slsb1.addEmployee(); String message = slsb1.failInFirstCall(); assertEquals("DB should be unchanged, which we indicate by returning 'success'","success", message); message = slsb1.failInSe...
protected Object readInternal(Class<?> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException { JavaType javaType = getJavaType(clazz); try { return this.objectMapper.readValue(inputMessage.getBody(), javaType); } catch (JsonProcessingException ex) { throw new HttpM...
protected Object readInternal(Class<?> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException { JavaType javaType = getJavaType(clazz); try { return this.objectMapper.readValue(inputMessage.getBody(), javaType); } catch (IOException ex) { throw new HttpMessageNotRea...
protected KernelServices boot() throws Exception { final KernelServices kernelServices = createKernelServicesBuilder(LoggingTestEnvironment.get()).setSubsystemXml(getSubsystemXml()).build(); final Throwable bootError = kernelServices.getBootError(); Assert.assertTrue("Failed to boot: " + Str...
protected KernelServices boot() throws Exception { final KernelServices kernelServices = createKernelServicesBuilder(createAdditionalInitialization()).setSubsystemXml(getSubsystemXml()).build(); final Throwable bootError = kernelServices.getBootError(); Assert.assertTrue("Failed to boot: " +...
public Object[][] getContents() { return contents; }
public Object[][] getContents() { return (Object[][]) contents.clone(); }
public Matrix(int rows, int columns, double[] data) { // sanity check if (rows <= 0 || columns <= 0) { throw new IllegalArgumentException("cannot build a matrix" + " with negative or null dimension"); } this.rows = rows; this.columns = columns; ...
public Matrix(int rows, int columns, double[] data) { // sanity check if (rows <= 0 || columns <= 0) { throw new IllegalArgumentException("cannot build a matrix" + " with negative or null dimension"); } this.rows = rows; this.columns = columns; ...
public double[] integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException { EnhancedSimpsonIntegratorSampler sampler = new EnhancedSimpsonIntegratorSampler(iter); double[] sum = null; try { while (true) { sum = sampler.nextSamplePoint().getY(); ...
public double[] integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException { EnhancedSimpsonIntegratorSampler sampler = new EnhancedSimpsonIntegratorSampler(iter); double[] sum = null; try { while (true) { sum = sampler.nextSamplePoint().y; }...
public double[] integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException { RiemannIntegratorSampler sampler = new RiemannIntegratorSampler(iter); double[] sum = null; try { while (true) { sum = sampler.nextSamplePoint().getY(); } } catch(Exha...
public double[] integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException { RiemannIntegratorSampler sampler = new RiemannIntegratorSampler(iter); double[] sum = null; try { while (true) { sum = sampler.nextSamplePoint().y; } } catch(Exhausted...
public double[] integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException { TrapezoidIntegratorSampler sampler = new TrapezoidIntegratorSampler(iter); double[] sum = null; try { while (true) { sum = sampler.nextSamplePoint().getY(); } } ...
public double[] integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException { TrapezoidIntegratorSampler sampler = new TrapezoidIntegratorSampler(iter); double[] sum = null; try { while (true) { sum = sampler.nextSamplePoint().y; } } catch...
public void testSolve() throws SingularMatrixException { DiagonalMatrix d = new DiagonalMatrix(6); for (int i = 0; i < d.getRows(); ++i) { d.setElement(i, i, i + 1.0); } GeneralMatrix b = new GeneralMatrix(6, 3); for (int i = 0; i < b.getRows(); ++i) { b.setElement(i, 0, i + 1.0)...
public void testSolve() throws SingularMatrixException { DiagonalMatrix d = new DiagonalMatrix(6); for (int i = 0; i < d.getRows(); ++i) { d.setElement(i, i, i + 1.0); } GeneralMatrix b = new GeneralMatrix(6, 3); for (int i = 0; i < b.getRows(); ++i) { b.setElement(i, 0, i + 1.0)...
public void setup() { MessageChannel channel = Mockito.mock(MessageChannel.class); this.webSocketHandler = new SubProtocolWebSocketHandler(channel); this.queueSuffixResolver = new SimpleUserQueueSuffixResolver(); TaskScheduler taskScheduler = Mockito.mock(TaskScheduler.class); this.registry = new ServletStom...
public void setup() { MessageChannel channel = Mockito.mock(MessageChannel.class); this.webSocketHandler = new SubProtocolWebSocketHandler(channel); this.queueSuffixResolver = new SimpleUserQueueSuffixResolver(); TaskScheduler taskScheduler = Mockito.mock(TaskScheduler.class); this.registry = new ServletStom...
protected void applyOperation(final OperationContext context, ModelNode operation, String attributeName, ServiceController<?> service, boolean forRollback) throws OperationFailedException { final ThreadFactoryService tf = (ThreadFactoryService) service.getService(); ...
protected void applyOperation(final OperationContext context, ModelNode operation, String attributeName, ServiceController<?> service, boolean forRollback) throws OperationFailedException { final ThreadFactoryService tf = (ThreadFactoryService) service.getService(); ...
private <T> void addDependency(ServiceBuilder<?> builder, Dependency<T> dependency) { ServiceName name = dependency.getName(); Injector<T> injector = dependency.getInjector(); if (injector != null) { builder.addDependency(name, dependency.getType(), injector); } else { ...
private <T> void addDependency(ServiceBuilder<?> builder, Dependency<T> dependency) { ServiceName name = dependency.getName(); Injector<T> injector = dependency.getInjector(); if (injector != null) { builder.addDependency(name, dependency.getType(), injector); } else { ...
public static String concat(String basePath, String fullFilenameToAdd) { int prefix = getPrefixLength(fullFilenameToAdd); if (prefix < 0) { return null; } if (prefix > 0) { return normalize(fullFilenameToAdd); } if (basePath == null) { ...
public static String concat(String basePath, String fullFilenameToAdd) { int prefix = getPrefixLength(fullFilenameToAdd); if (prefix < 0) { return null; } if (prefix > 0) { return normalize(fullFilenameToAdd); } if (basePath == null) { ...
public void actionPerformed(ActionEvent ae) { JTextComponent cmdText = GuiMain.getCommandLine().getCmdText(); ModelNode requestProperties = opDescription.get("result", "request-properties"); if ((requestProperties == null) || (!requestProperties.isDefined()) || requestPropert...
public void actionPerformed(ActionEvent ae) { JTextComponent cmdText = GuiMain.getCommandLine().getCmdText(); ModelNode requestProperties = opDescription.get("result", "request-properties"); if ((requestProperties == null) || (!requestProperties.isDefined()) || requestPropert...
public DeploymentStructureDescriptorParser() { mapper = XMLMapper.Factory.create(); mapper.registerRootElement(ROOT_1_0, JBossDeploymentStructureParser10.INSTANCE); mapper.registerRootElement(ROOT_1_1, JBossDeploymentStructureParser11.INSTANCE); mapper.registerRootElement(ROOT_1_2, J...
public DeploymentStructureDescriptorParser() { mapper = XMLMapper.Factory.create(); mapper.registerRootElement(ROOT_1_0, JBossDeploymentStructureParser10.INSTANCE); mapper.registerRootElement(ROOT_1_1, JBossDeploymentStructureParser11.INSTANCE); mapper.registerRootElement(ROOT_1_2, J...
public static final char[] US_ENGLISH_MAPPING = US_ENGLISH_MAPPING_STRING.toCharArray();
public static final String US_ENGLISH_MAPPING_STRING = "01230120022455012623010202"; /** * This is a default mapping of the 26 letters used in US English. A value of <code>0</code> for a letter position * means do not encode. * * @see Soundex#Soundex(char[]) */ static final char[]...
protected void populateModel(ModelNode existingModel, ModelNode newModel) throws OperationFailedException { copyModel(existingModel, newModel, ModelKeys.JNDI_NAME, ModelKeys.PASSWORD, ModelKeys.USERNAME, ModelKeys.DEBUG); if (existingModel.hasDefined(ModelKeys.SMTP_SERVER)) { newModel.ge...
protected void populateModel(ModelNode existingModel, ModelNode newModel) throws OperationFailedException { copyModel(existingModel, newModel, ModelKeys.JNDI_NAME, ModelKeys.DEBUG); if (existingModel.hasDefined(ModelKeys.SMTP_SERVER)) { newModel.get(ModelKeys.SMTP_SERVER).set(existingMod...
void start(DataInput input, ClassLoaderProvider classLoaderProvider) throws IOException; /* * 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 c...
void start(DataInput input, ClassLoaderProvider classLoaderProvider) throws IOException; /* * 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 c...