buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public ArchiveEntry getNextEntry() throws IOException {
java.util.zip.ZipEntry entry = input.getNextEntry();
if(entry == null) {
return null;
}
return (ArchiveEntry)new ZipArchiveEntry(entry);
}
| public ArchiveEntry getNextEntry() throws IOException {
java.util.zip.ZipEntry entry = input.getNextEntry();
if(entry == null) {
return null;
}
return (ArchiveEntry)new ZipEntry(entry);
}
|
public void putArchiveEntry(ArchiveEntry entry) throws IOException {
zipOut.putNextEntry((ZipArchiveEntry) entry);
}
| public void putArchiveEntry(ArchiveEntry entry) throws IOException {
zipOut.putNextEntry((ZipEntry) entry);
}
|
private static PersistenceUnitMetadata getPersistenceUnit(DeploymentUnit current, final String absolutePath, String puName) {
final String path;
if (absolutePath.startsWith("../")) {
path = absolutePath.substring(3);
} else {
path = absolutePath;
}
fin... | private static PersistenceUnitMetadata getPersistenceUnit(DeploymentUnit current, final String absolutePath, String puName) {
final String path;
if (absolutePath.startsWith("../")) {
path = absolutePath.substring(3);
} else {
path = absolutePath;
}
fin... |
protected Set<Resource> doFindPathMatchingJarResources(Resource rootDirResource, String subPattern)
throws IOException {
URLConnection con = rootDirResource.getURL().openConnection();
JarFile jarFile;
String jarFileUrl;
String rootEntryPath;
boolean newJarFile = false;
if (con instanceof JarURLConnect... | protected Set<Resource> doFindPathMatchingJarResources(Resource rootDirResource, String subPattern)
throws IOException {
URLConnection con = rootDirResource.getURL().openConnection();
JarFile jarFile;
String jarFileUrl;
String rootEntryPath;
boolean newJarFile = false;
if (con instanceof JarURLConnect... |
protected void writeValue(TagWriter tagWriter) throws JspException {
if (this.showPassword) {
super.writeValue(tagWriter);
} else {
tagWriter.writeAttribute("value", "");
}
}
| protected void writeValue(TagWriter tagWriter) throws JspException {
if (this.showPassword) {
super.writeValue(tagWriter);
} else {
tagWriter.writeAttribute("value", processFieldValue(getName(), "", getType()));
}
}
|
@Message(id = 15817, value = "%n %s is missing: %s")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is fr... | @Message(id = 15817, value = "%n %s is missing: %s")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is fr... |
private int loadPersistenceUnits(final ModuleLoader moduleLoader, final DeploymentUnit deploymentUnit, final Set<String> moduleDependencies, final PersistenceUnitMetadataHolder holder) throws DeploymentUnitProcessingException {
int defaultProviderCount = 0;
if (holder != null) {
for (Per... | private int loadPersistenceUnits(final ModuleLoader moduleLoader, final DeploymentUnit deploymentUnit, final Set<String> moduleDependencies, final PersistenceUnitMetadataHolder holder) throws DeploymentUnitProcessingException {
int defaultProviderCount = 0;
if (holder != null) {
for (Per... |
public TarArchiveEntry(File file, String fileName) {
this();
this.file = file;
this.linkName = "";
if (file.isDirectory()) {
this.mode = DEFAULT_DIR_MODE;
this.linkFlag = LF_DIR;
int nameLength = fileName.length();
if (nameLength ==... | public TarArchiveEntry(File file, String fileName) {
this();
this.file = file;
this.linkName = "";
if (file.isDirectory()) {
this.mode = DEFAULT_DIR_MODE;
this.linkFlag = LF_DIR;
int nameLength = fileName.length();
if (nameLength ==... |
private TimerImpl timerFromResult(final ResultSet resultSet, final TimerServiceImpl timerService) throws SQLException {
boolean calendarTimer = resultSet.getBoolean(24);
TimerImpl.Builder builder = null;
if (calendarTimer) {
CalendarTimer.Builder cb = CalendarTimer.builder();
... | private TimerImpl timerFromResult(final ResultSet resultSet, final TimerServiceImpl timerService) throws SQLException {
boolean calendarTimer = resultSet.getBoolean(24);
TimerImpl.Builder builder = null;
if (calendarTimer) {
CalendarTimer.Builder cb = CalendarTimer.builder();
... |
public void testVersion() throws Exception {
final String persistence_xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?> " +
"<persistence xmlns=\"http://java.sun.com/xml/ns/persistence\" version=\"1.0\">" +
" <persistence-unit name=\"mypc\">" +
" ... | public void testVersion() throws Exception {
final String persistence_xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?> " +
"<persistence xmlns=\"http://java.sun.com/xml/ns/persistence\" version=\"1.0\">" +
" <persistence-unit name=\"mypc\">" +
" ... |
public <T> MappableType<T> getMappableType(T object) {
for (MappableType type : mappableTypes) {
if (type.isInstance(object)) {
return type;
}
}
throw new IllegalArgumentException("Object of type [" + object.getClass().getName()
+ "] not mappable - no suitable MappableType exists");
}
| public <T> MappableType<T> getMappableType(T object) {
for (MappableType type : mappableTypes) {
if (type.isInstance(object)) {
return type;
}
}
throw new IllegalArgumentException("Object of type [" + object.getClass().getName()
+ "] is not mappable - no suitable MappableType exists");
}
|
public void testRandom() throws Exception {
int iter = 10000;
format = CSVFormat.DEFAULT;
doRandom(iter);
format = CSVFormat.EXCEL;
doRandom(iter);
// Format for MySQL
format = new CSVFormat('\t', CSVFormat.ENCAPSULATOR_DISABLED, CSVFormat.COMMENTS_DISABLED, ... | public void testRandom() throws Exception {
int iter = 10000;
format = CSVFormat.DEFAULT;
doRandom(iter);
format = CSVFormat.EXCEL;
doRandom(iter);
// Format for MySQL
format = new CSVFormat('\t', CSVFormat.DISABLED, CSVFormat.DISABLED, '\\', false, false, ... |
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(Logger.class, Services.class, Mo... | public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(Logger.class, Services.class, Mo... |
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(Logger.class, PackageAdmin.class... | public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(Logger.class, PackageAdmin.class... |
public void registerElementHandlers(final XMLMapper mapper) {
QName messagingNamespace = new QName(Namespace.MESSAGING_1_0.getUriString(), Element.SUBSYSTEM.getLocalName());
mapper.registerRootElement(messagingNamespace, MessagingSubsystemParser.getInstance());
log.info("Registered messaging subsys... | public void registerElementHandlers(final XMLMapper mapper) {
QName messagingNamespace = new QName(Namespace.MESSAGING_1_0.getUriString(), Element.SUBSYSTEM.getLocalName());
mapper.registerRootElement(messagingNamespace, MessagingSubsystemParser.getInstance());
log.infof("Registered messaging subsy... |
public void readElement(final XMLExtendedStreamReader reader, final ParseResult<? super MessagingSubsystemElement> result) throws XMLStreamException {
log.debug("MessagingSubsystemElement.readElement, event="+reader.getEventType());
MessagingSubsystemElement msp = new MessagingSubsystemElement(reader);
... | public void readElement(final XMLExtendedStreamReader reader, final ParseResult<? super MessagingSubsystemElement> result) throws XMLStreamException {
log.debugf("MessagingSubsystemElement.readElement, event=%s", reader.getEventType());
MessagingSubsystemElement msp = new MessagingSubsystemElement(reader... |
private static final char[] HEX_CHARS =
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f',};
| private static final char[] HEX_CHARS =
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
public ModelNode getModelDescription(final Locale locale) {
final ResourceBundle bundle = getResourceBundle(locale);
final ModelNode operation = new ModelNode();
operation.get(OPERATION_NAME).set(ADD);
operation.get(DESCRIPTION).set(bundle.getString("resourceadapt... | public ModelNode getModelDescription(final Locale locale) {
final ResourceBundle bundle = getResourceBundle(locale);
final ModelNode operation = new ModelNode();
operation.get(OPERATION_NAME).set(ADD);
operation.get(DESCRIPTION).set(bundle.getString("resource-adap... |
public ManagementEjbDeploymentInformation(String ejbName, Map<String, InjectedValue<ComponentView>> componentViews, ClassLoader deploymentClassLoader) {
// FIXME ManagementEjbDeploymentInformation constructor
super(ejbName, new InjectedValue<EJBComponent>(), componentViews, deploymentClassLoader, ne... | public ManagementEjbDeploymentInformation(String ejbName, Map<String, InjectedValue<ComponentView>> componentViews, ClassLoader deploymentClassLoader) {
// FIXME ManagementEjbDeploymentInformation constructor
super(ejbName, new InjectedValue<EJBComponent>(), componentViews, null, deploymentClassLoad... |
public void testCumulativeGenerated() throws Exception {
final InputStream is = getResource("test-config01.xml");
final PatchConfig patchConfig = PatchConfigXml.parse(is);
// Patch
assertNotNull(patchConfig);
assertEquals("patch-12345", patchConfig.getPatchId());
ass... | public void testCumulativeGenerated() throws Exception {
final InputStream is = getResource("test-config01.xml");
final PatchConfig patchConfig = PatchConfigXml.parse(is);
// Patch
assertNotNull(patchConfig);
assertEquals("patch-12345", patchConfig.getPatchId());
ass... |
package org.jboss.as.jdkorb.logging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can re... | package org.jboss.as.jdkorb.logging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can re... |
public void testConstructorMessage(){
String msg = "message";
MatrixIndexException ex = new MatrixIndexException(msg);
assertEquals(msg, ex.getMessage());
}
| public void testConstructorMessage(){
String msg = "message";
MatrixIndexException ex = new MatrixIndexException(msg, new Object[0]);
assertEquals(msg, ex.getMessage());
}
|
private void processSessionBeans(final DeploymentUnit deploymentUnit, final List<AnnotationInstance> sessionBeanAnnotations, final SessionBeanType sessionBeanType) {
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION);
... | private void processSessionBeans(final DeploymentUnit deploymentUnit, final List<AnnotationInstance> sessionBeanAnnotations, final SessionBeanType sessionBeanType) {
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION);
... |
public void deploy(DeploymentPhaseContext deploymentPhase) throws DeploymentUnitProcessingException {
// get hold of the deployment unit.
DeploymentUnit deploymentUnit = deploymentPhase.getDeploymentUnit();
// get the root of the deployment unit
VirtualFile deploymentRoot = deploym... | public void deploy(DeploymentPhaseContext deploymentPhase) throws DeploymentUnitProcessingException {
// get hold of the deployment unit.
DeploymentUnit deploymentUnit = deploymentPhase.getDeploymentUnit();
// get the root of the deployment unit
VirtualFile deploymentRoot = deploym... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRI... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRI... |
package org.springframework.context.annotation;
/*
* Copyright 2002-2009 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.apache.org... | package org.springframework.context.annotation;
/*
* Copyright 2002-2009 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.apache.org... |
package org.springframework.context.annotation.support;
/*
* Copyright 2002-2009 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.ap... | package org.springframework.context.annotation.support;
/*
* Copyright 2002-2009 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.ap... |
public void execute(Map<String, ? extends Object> sourceValues) {
BindingResults bindingResults = binder.bind(sourceValues);
if (validator != null && validationDecider.shouldValidateAfter(bindingResults)) {
// TODO get validation results
validator.validate(binder.getModel(), bindingResults.successes().proper... | public void execute(Map<String, ? extends Object> sourceValues) {
BindingResults bindingResults = binder.bind(sourceValues);
if (validator != null && validationDecider.shouldValidateAfter(bindingResults)) {
// TODO get validation results
validator.validate(binder.getModel(), bindingResults.successes().proper... |
public boolean bind(String name, Object obj) {
if (name == null || name.isEmpty()) {
throw new IllegalArgumentException("Cannot bind a null or empty string as jndi name");
}
if (name.equals("java:jboss/") || name.equals("java:comp/") || name.equals("java:module/")
... | public boolean bind(String name, Object obj) {
if (name == null || name.isEmpty()) {
throw new IllegalArgumentException("Cannot bind a null or empty string as jndi name");
}
if (name.equals("java:jboss/") || name.equals("java:comp/") || name.equals("java:module/")
... |
public void testSendMessage() throws JMSException, NamingException {
final InitialContext ctx = new InitialContext();
final QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:/JmsXA");
final QueueConnection connection = factory.createQueueConnection();
connect... | public void testSendMessage() throws JMSException, NamingException {
final InitialContext ctx = new InitialContext();
final QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:/JmsXA");
final QueueConnection connection = factory.createQueueConnection();
connect... |
package org.springframework.core.io.support;
/*
* Copyright 2002-2012 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.apache.org/li... | package org.springframework.core.io.support;
/*
* Copyright 2002-2012 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.apache.org/li... |
private static UriComponents applyContributors(UriComponentsBuilder builder, Method method, Object[] args) {
CompositeUriComponentsContributor contributor = getConfiguredUriComponentsContributor();
if (contributor == null) {
logger.debug("Using default CompositeUriComponentsContributor");
contributor = defa... | private static UriComponents applyContributors(UriComponentsBuilder builder, Method method, Object[] args) {
CompositeUriComponentsContributor contributor = getConfiguredUriComponentsContributor();
if (contributor == null) {
logger.debug("Using default CompositeUriComponentsContributor");
contributor = defa... |
public void start(StartContext context) throws StartException {
InfinispanConfiguration config = load(this.resource);
Defaults defaults = new Defaults(config.parseGlobalConfiguration());
Configuration defaultConfig = config.parseDefaultConfiguration();
Map<String, Configuration> name... | public void start(StartContext context) throws StartException {
InfinispanConfiguration config = load(this.resource);
Defaults defaults = new Defaults(config.parseGlobalConfiguration());
Configuration defaultConfig = config.parseDefaultConfiguration();
Map<String, Configuration> name... |
public void registerAttributes(final ManagementResourceRegistration registry) {
final EnumSet<AttributeAccess.Flag> flags = EnumSet.of(AttributeAccess.Flag.RESTART_ALL_SERVICES);
for (AttributeDefinition attr : attributeDefinitions.values()) {
registry.registerReadWriteAttribute(attr.get... | public void registerAttributes(final ManagementResourceRegistration registry) {
final EnumSet<AttributeAccess.Flag> flags = EnumSet.of(AttributeAccess.Flag.RESTART_ALL_SERVICES);
for (AttributeDefinition attr : attributeDefinitions.values()) {
registry.registerReadWriteAttribute(attr, Ca... |
public ResourceDefinition load(TransformationTarget target) {
final ModelVersion version = target.getSubsystemVersion(subsystemName);
return TransformationUtils.loadSubsystemDefinition(subsystemName, version.getMajor(), version.getMinor());
}
});
}
| public ResourceDefinition load(TransformationTarget target) {
final ModelVersion version = target.getSubsystemVersion(subsystemName);
return TransformationUtils.loadSubsystemDefinition(subsystemName, version);
}
});
}
|
protected AbstractComponent(final ComponentConfiguration configuration, final ClassLoader deploymentClassLoader, final DeploymentReflectionIndex index) {
componentClass = configuration.getComponentClass();
resourceInjections = configuration.getResourceInjections();
postConstructInterceptors ... | protected AbstractComponent(final ComponentConfiguration configuration, final ClassLoader deploymentClassLoader, final DeploymentReflectionIndex index) {
componentClass = configuration.getComponentClass();
resourceInjections = configuration.getResourceInjections();
postConstructInterceptors ... |
public static <V> ResourceInjection create(final ResourceInjectionConfiguration resourceConfiguration, final Class<?> beanClass, final ClassReflectionIndex reflectionIndex, final Value<V> value) {
final Class<?> argClass;
try {
argClass = beanClass.getClassLoader().loadCl... | public static <V> ResourceInjection create(final ResourceInjectionConfiguration resourceConfiguration, final Class<?> beanClass, final ClassReflectionIndex<?> reflectionIndex, final Value<V> value) {
final Class<?> argClass;
try {
argClass = beanClass.getClassLoader().loa... |
protected void processComponentConfig(DeploymentUnit deploymentUnit, DeploymentPhaseContext phaseContext, ComponentConfiguration componentConfiguration) throws DeploymentUnitProcessingException {
final Class<?> componentClass = componentConfiguration.getComponentClass();
final DeploymentReflectionI... | protected void processComponentConfig(DeploymentUnit deploymentUnit, DeploymentPhaseContext phaseContext, ComponentConfiguration componentConfiguration) throws DeploymentUnitProcessingException {
final Class<?> componentClass = componentConfiguration.getComponentClass();
final DeploymentReflectionI... |
public static WebArchive createSecondDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class);
war.addClasses(MappedNameInjectionTestCase.class, MappedNameBean.class);
war.addAsWebInfResource("injection/mappedname/web.xml");
war.toString(true);
return war;
}
| public static WebArchive createSecondDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class);
war.addClasses(MappedNameInjectionTestCase.class, MappedNameBean.class);
war.addAsWebInfResource(MappedNameInjectionTestCase.class.getPackage(), "/web.xml","/web.xml");
war.toStr... |
public static WebArchive createWebDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "resource-injection-test.war");
war.addPackage(SimpleSLSB.class.getPackage());
war.addAsWebInfResource("injection/web.xml");
logger.info("War created: " + war.toString(true));
... | public static WebArchive createWebDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "resource-injection-test.war");
war.addPackage(SimpleSLSB.class.getPackage());
war.addAsWebInfResource(ResourceInjectionTestCase.class.getPackage(), "web.xml", "web.xml");
logg... |
public static JavaArchive getBeanFactoryJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "bean-factory.jar");
archive.addPackage(TFactory.class.getPackage());
archive.addAsManifestResource("pojo/bf-jboss-beans.xml", "bf-jboss-beans.xml");
return archive;
}
| public static JavaArchive getBeanFactoryJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "bean-factory.jar");
archive.addPackage(TFactory.class.getPackage());
archive.addAsManifestResource(BeanFactoryTestCase.class.getPackage(), "bf-jboss-beans.xml", "bf-jboss-beans.xml");
... |
public static JavaArchive getCallbackBeansJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callback-beans.jar");
archive.addPackage(TOwner.class.getPackage());
archive.addAsManifestResource("pojo/callback-jboss-beans.xml", "callback-jboss-beans.xml");
return archiv... | public static JavaArchive getCallbackBeansJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callback-beans.jar");
archive.addPackage(TOwner.class.getPackage());
archive.addAsManifestResource(CallbackBeansTestCase.class.getPackage(), "callback-jboss-beans.xml", "callback-jbo... |
public static JavaArchive getCycleBeansJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "collections-beans.jar");
archive.addPackage(TFactory.class.getPackage());
archive.addAsManifestResource("pojo/collections-jboss-beans.xml", "collections-jboss-beans.xml");
retur... | public static JavaArchive getCycleBeansJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "collections-beans.jar");
archive.addPackage(TFactory.class.getPackage());
archive.addAsManifestResource(CollectionsBeansTestCase.class.getPackage(), "collections-jboss-beans.xml", "coll... |
public static JavaArchive getCycleBeansJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "type-beans.jar");
archive.addPackage(TFactory.class.getPackage());
archive.addAsManifestResource("pojo/type-jboss-beans.xml", "type-jboss-beans.xml");
return archive;
}
| public static JavaArchive getCycleBeansJar() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "type-beans.jar");
archive.addPackage(TFactory.class.getPackage());
archive.addAsManifestResource(TypeBeansTestCase.class.getPackage(), "type-jboss-beans.xml", "type-jboss-beans.xml");
... |
public static Archive createDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejb.jar");
ejbJar.addClass(NoOpEJB.class);
logger.info(ejbJar.toString(true));
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, "helloworld.rar");
rar.addP... | public static Archive createDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejb.jar");
ejbJar.addClass(NoOpEJB.class);
logger.info(ejbJar.toString(true));
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, "helloworld.rar");
rar.addP... |
public static JavaArchive createDeployment() throws Exception {
final JavaArchive sar = ShrinkWrap.create(JavaArchive.class, "injection.sar");
sar.addPackage(A.class.getPackage());
sar.addAsManifestResource("sar/injection/jboss-service.xml", "jboss-service.xml");
return sar;
}
| public static JavaArchive createDeployment() throws Exception {
final JavaArchive sar = ShrinkWrap.create(JavaArchive.class, "injection.sar");
sar.addPackage(A.class.getPackage());
sar.addAsManifestResource(SarInjectionTestCase.class.getPackage(), "jboss-service.xml", "jboss-service.xml");
... |
protected double filterStep(final double h, final boolean forward, final boolean acceptSmall)
throws IntegratorException {
double filteredH = h;
if (Math.abs(h) < minStep) {
if (acceptSmall) {
filteredH = forward ? minStep : -minStep;
} else {
throw new... | protected double filterStep(final double h, final boolean forward, final boolean acceptSmall)
throws IntegratorException {
double filteredH = h;
if (Math.abs(h) < minStep) {
if (acceptSmall) {
filteredH = forward ? minStep : -minStep;
} else {
throw new... |
private void addDepdenency(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier) {
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, moduleIdentifier, false, false, false));
}
| private void addDepdenency(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier) {
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, moduleIdentifier, false, false, true));
}
|
package org.jboss.as.testsuite.integration.jaxrs.packaging.ear;
/*
* 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.testsuite.integration.jaxrs.packaging.ear;
/*
* 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.testsuite.integration.jaxrs.packaging.ear;
/*
* 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.testsuite.integration.jaxrs.packaging.ear;
/*
* 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 ... |
public void includes() throws Exception {
MediaType textPlain = new MediaType("text", "plain");
assertTrue("Equal types is not inclusive", textPlain.includes(textPlain));
MediaType allText = new MediaType("text");
assertTrue("All subtypes is not inclusive", allText.includes(textPlain));
assertFalse("All subt... | public void includes() throws Exception {
MediaType textPlain = MediaType.TEXT_PLAIN;
assertTrue("Equal types is not inclusive", textPlain.includes(textPlain));
MediaType allText = new MediaType("text");
assertTrue("All subtypes is not inclusive", allText.includes(textPlain));
assertFalse("All subtypes is no... |
public void initialize(final ExtensionContext context) {
log.debugf("Initializing ResourceAdapters Extension");
// Register the remoting subsystem
final SubsystemRegistration registration = context.registerSubsystem(RESOURCEADAPTERS);
registration.registerXMLElementWriter(ResourceAd... | public void initialize(final ExtensionContext context) {
log.debugf("Initializing ResourceAdapters Extension");
// Register the remoting subsystem
final SubsystemRegistration registration = context.registerSubsystem(RESOURCEADAPTERS);
registration.registerXMLElementWriter(ResourceAd... |
public static Object readField(final Object target, final String fieldName, final boolean forceAccess) throws IllegalAccessException {
Validate.isTrue(target != null, "target object must not be null");
final Class<?> cls = target.getClass();
final Field field = getField(cls, fieldName, force... | public static Object readField(final Object target, final String fieldName, final boolean forceAccess) throws IllegalAccessException {
Validate.isTrue(target != null, "target object must not be null");
final Class<?> cls = target.getClass();
final Field field = getField(cls, fieldName, force... |
private static void sendError(HttpServerExchange exchange, boolean encode, ModelNode msg, int errorCode) {
if(encode) {
try {
ModelNode response = new ModelNode();
response.set(msg);
ByteArrayOutputStream bout = new ByteArrayOutputStream();
... | private static void sendError(HttpServerExchange exchange, boolean encode, ModelNode msg, int errorCode) {
if(encode) {
try {
ModelNode response = new ModelNode();
response.set(msg);
ByteArrayOutputStream bout = new ByteArrayOutputStream();
... |
public void testTransformedBuffer_decorateTransform() {
final Buffer originalBuffer = new ArrayStack();
final Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"};
for (final Object el : els) {
originalBuffer.add(el);
}
final Buffer buffer = Transformed... | public void testTransformedBuffer_decorateTransform() {
final Buffer originalBuffer = new ArrayStack();
final Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"};
for (final Object el : els) {
originalBuffer.add(el);
}
final Buffer<?> buffer = Transfor... |
public void testRepeatedNext() {
for (final String element : array) {
iterator.next();
}
verifyNoMoreElements();
}
| public void testRepeatedNext() {
for (@SuppressWarnings("unused") final String element : array) {
iterator.next();
}
verifyNoMoreElements();
}
|
@Message(id = 10979, value = "%s recognizes only %s as children: %s")
/*
* 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.
*
* ... | @Message(id = 10979, value = "%s recognizes only %s as children: %s")
/*
* 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.
*
* ... |
public ManagedReference getReference() {
PersistenceUnitService service = (PersistenceUnitService)deploymentUnit.getServiceRegistry().getRequiredService(puServiceName).getValue();
EntityManagerFactory emf = service.getEntityManagerFactory();
EntityManager entityManager;
... | public ManagedReference getReference() {
PersistenceUnitService service = (PersistenceUnitService)deploymentUnit.getServiceRegistry().getRequiredService(puServiceName).getValue();
EntityManagerFactory emf = service.getEntityManagerFactory();
EntityManager entityManager;
... |
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
// add the singleton component instance associating interceptor
config... | public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
// add the singleton component instance associating interceptor
config... |
private long nextPoisson(double meanPoisson) {
final double pivot = 40.0d;
if (meanPoisson < pivot) {
double p = FastMath.exp(-meanPoisson);
long n = 0;
double r = 1.0d;
double rnd = 1.0d;
while (n < 1000 * meanPoisson) {
r... | private long nextPoisson(double meanPoisson) {
final double pivot = 40.0d;
if (meanPoisson < pivot) {
double p = FastMath.exp(-meanPoisson);
long n = 0;
double r = 1.0d;
double rnd = 1.0d;
while (n < 1000 * meanPoisson) {
r... |
public NonPassivatingBackingCacheEntry<K, V> release(K key) {
NonPassivatingBackingCacheEntry<K, V> entry = cache.get(key);
if (entry == null) {
EjbLogger.ROOT_LOGGER.cacheEntryNotFound(key);
return null;
}
if (!entry.isInUse()) {
throw EjbMessages... | public NonPassivatingBackingCacheEntry<K, V> release(K key) {
NonPassivatingBackingCacheEntry<K, V> entry = cache.get(key);
if (entry == null) {
log.debug("SFSB instance with session ID " + key + " not available in cache");
return null;
}
if (!entry.isInUse())... |
public E release(K key) {
this.trace("release(%s)", key);
E entry = store.get(key, false);
if (entry == null) {
EjbLogger.ROOT_LOGGER.cacheEntryNotFound(key);
return null;
}
entry.lock();
try {
entry.decreaseUsageCount();
... | public E release(K key) {
this.trace("release(%s)", key);
E entry = store.get(key, false);
if (entry == null) {
log.debug("SFSB instance with session ID " + key + " not available in cache");
return null;
}
entry.lock();
try {
entry... |
public Object processInvocation(InterceptorContext context) throws Exception {
StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class);
// TODO: this is a contract with the client interceptor
SessionID sessionId = this.sessionIdReference.get();
if (... | public Object processInvocation(InterceptorContext context) throws Exception {
StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class);
// TODO: this is a contract with the client interceptor
SessionID sessionId = this.sessionIdReference.get();
if (... |
public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceContainer().getService(DeploymentScannerService.getServiceName(path));
if(controller == null) {
resultHandler.handleF... | public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceRegistry().getService(DeploymentScannerService.getServiceName(path));
if(controller == null) {
resultHandler.handleFa... |
public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceContainer().getService(DeploymentScannerService.getServiceName(name));
if(controller == null) {
resultHandler.handleF... | public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceRegistry().getService(DeploymentScannerService.getServiceName(name));
if(controller == null) {
resultHandler.handleFa... |
public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceContainer().getService(DeploymentScannerService.getServiceName(path));
if(controller == null) {
resultHandler.handleS... | public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceRegistry().getService(DeploymentScannerService.getServiceName(path));
if(controller == null) {
resultHandler.handleSu... |
public <P> void applyUpdate(UpdateContext updateContext,
UpdateResultHandler<? super Void, P> resultHandler, P param) {
if (redeploy) {
ServerDeploymentStartStopHandler startStopHandler = new ServerDeploymentStartStopHandler();
startStopHandler.redeploy(deploymentUniqueNa... | public <P> void applyUpdate(UpdateContext updateContext,
UpdateResultHandler<? super Void, P> resultHandler, P param) {
if (redeploy) {
ServerDeploymentStartStopHandler startStopHandler = new ServerDeploymentStartStopHandler();
startStopHandler.redeploy(deploymentUniqueNa... |
public <P> void applyUpdate(UpdateContext updateContext, org.jboss.as.model.UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = updateContext.getServiceContainer().getService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName));
if(... | public <P> void applyUpdate(UpdateContext updateContext, org.jboss.as.model.UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = updateContext.getServiceRegistry().getService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName));
if(c... |
public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceContainer().getService(AbstractPathService.pathNameOf(name));
if(controller == null) {
resultHandler.handleSuccess(nu... | public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = context.getServiceRegistry().getService(AbstractPathService.pathNameOf(name));
if(controller == null) {
resultHandler.handleSuccess(nul... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = updateContext.getServiceContainer().getService(SocketBinding.JBOSS_BINDING_NAME.append(name));
if(controller == null) {
result... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceController<?> controller = updateContext.getServiceRegistry().getService(SocketBinding.JBOSS_BINDING_NAME.append(name));
if(controller == null) {
resultH... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(JMXConnectorService.SERVICE_NAME);
if(service == null) {
resultHandler.handleSuccess(null, pa... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(JMXConnectorService.SERVICE_NAME);
if(service == null) {
resultHandler.handleSuccess(null, par... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final ServiceController<?> controller = updateContext.getServiceContainer().getRequiredService(LogServices.handlerName(name));
controller.setMode(ServiceCo... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final ServiceController<?> controller = updateContext.getServiceRegistry().getRequiredService(LogServices.handlerName(name));
controller.setMode(ServiceCon... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final ServiceController<?> controller = updateContext.getServiceContainer().getRequiredService(LogServices.loggerHandlerName(loggerName, handlerName));
... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final ServiceController<?> controller = updateContext.getServiceRegistry().getRequiredService(LogServices.loggerHandlerName(loggerName, handlerName));
... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final ServiceController<?> controller = updateContext.getServiceContainer().getRequiredService(LogServices.loggerName(name));
controller.setMode(ServiceCon... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final ServiceController<?> controller = updateContext.getServiceRegistry().getRequiredService(LogServices.loggerName(name));
controller.setMode(ServiceCont... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service;
try {
service = updateContext.getServiceContainer().getRequiredService(LogServices.ROOT_LOGGER);
} catch (ServiceNotFound... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service;
try {
service = updateContext.getServiceRegistry().getRequiredService(LogServices.ROOT_LOGGER);
} catch (ServiceNotFoundE... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(MessagingSubsystemElement.CORE_QUEUE_BASE.append(name));
if(service == null) {
resultHandler.... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(MessagingSubsystemElement.CORE_QUEUE_BASE.append(name));
if(service == null) {
resultHandler.h... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(JMSSubsystemElement.JMS_CF_BASE.append(cfName));
if(service == null) {
handler.handleSuccess(null, ... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(JMSSubsystemElement.JMS_CF_BASE.append(cfName));
if(service == null) {
handler.handleSuccess(null, p... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(JMSSubsystemElement.JMS_QUEUE_BASE.append(queueName));
if(service == null) {
handler.handleSuccess(... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(JMSSubsystemElement.JMS_QUEUE_BASE.append(queueName));
if(service == null) {
handler.handleSuccess(n... |
protected <P> void applyRemove(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(JMS_MANAGER);
if(service == null) {
resultHandler.handleSuccess(null, param);
} else ... | protected <P> void applyRemove(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(JMS_MANAGER);
if(service == null) {
resultHandler.handleSuccess(null, param);
} else {... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(JMSSubsystemElement.JMS_TOPIC_BASE.append(topicName));
if(service == null) {
handler.handleSuccess(... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(JMSSubsystemElement.JMS_TOPIC_BASE.append(topicName));
if(service == null) {
handler.handleSuccess(n... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> controller = updateContext.getServiceContainer().getService(ConnectorElement.connectorName(name));
if(controller == null) {
resultHandler.... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> controller = updateContext.getServiceRegistry().getService(ConnectorElement.connectorName(name));
if(controller == null) {
resultHandler.h... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> controller = updateContext.getServiceContainer().getService(ThreadsServices.executorName(name));
if (controller == null) {
han... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> controller = updateContext.getServiceRegistry().getService(ThreadsServices.executorName(name));
if (controller == null) {
hand... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> service = updateContext.getServiceContainer().getService(ThreadsServices.threadFactoryName(name));
if (service == null) {
hand... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> service = updateContext.getServiceRegistry().getService(ThreadsServices.threadFactoryName(name));
if (service == null) {
handl... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> service = updateContext.getServiceContainer().getService(ThreadsServices.threadFactoryName(name));
if (service == null) {
hand... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> service = updateContext.getServiceRegistry().getService(ThreadsServices.threadFactoryName(name));
if (service == null) {
handl... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> controller = updateContext.getServiceContainer().
getService(ThreadsServices.threadFactoryName(name));
if (controller == n... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> controller = updateContext.getServiceRegistry().
getService(ThreadsServices.threadFactoryName(name));
if (controller == nu... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> service = updateContext.getServiceContainer().getService(ThreadsServices.threadFactoryName(name));
if (service == null) {
hand... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ServiceController<?> service = updateContext.getServiceRegistry().getService(ThreadsServices.threadFactoryName(name));
if (service == null) {
handl... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceContainer().getService(WebSubsystemElement.JBOSS_WEB_CONNECTOR.append(name));
if(service == null) {
resultHandler.ha... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = context.getServiceRegistry().getService(WebSubsystemElement.JBOSS_WEB_CONNECTOR.append(name));
if(service == null) {
resultHandler.han... |
protected <P> void applyRemove(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = updateContext.getServiceContainer().getService(WebSubsystemElement.JBOSS_WEB);
if(service == null) {
resultHandler.handleSuccess... | protected <P> void applyRemove(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = updateContext.getServiceRegistry().getService(WebSubsystemElement.JBOSS_WEB);
if(service == null) {
resultHandler.handleSuccess(... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = updateContext.getServiceContainer().getService(WebSubsystemElement.JBOSS_WEB_HOST.append(name));
if(service == null) {
resultHan... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceController<?> service = updateContext.getServiceRegistry().getService(WebSubsystemElement.JBOSS_WEB_HOST.append(name));
if(service == null) {
resultHand... |
public void setUp() {
caller = new Caller();
ControlledProcessState processState = new ControlledProcessState(false);
processState.setRunning();
environment = new Environment(processState, ProcessType.EMBEDDED_SERVER);
authorizer = new ManagementPermissionAuthorizer(new TestP... | public void setUp() {
//caller = new Caller();
ControlledProcessState processState = new ControlledProcessState(false);
processState.setRunning();
environment = new Environment(processState, ProcessType.EMBEDDED_SERVER);
authorizer = new ManagementPermissionAuthorizer(new Tes... |
public void setUp() {
caller = new Caller();
ControlledProcessState processState = new ControlledProcessState(false);
processState.setRunning();
environment = new Environment(processState, ProcessType.EMBEDDED_SERVER);
}
| public void setUp() {
//caller = new Caller();
ControlledProcessState processState = new ControlledProcessState(false);
processState.setRunning();
environment = new Environment(processState, ProcessType.EMBEDDED_SERVER);
}
|
public static List<String> getJmsResources(ModelControllerClient client, String profile, String type) {
DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
final ModelNode request;
try {
if(profile != null) {
builder.addNode("profile", ... | public static List<String> getJmsResources(ModelControllerClient client, String profile, String type) {
DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
final ModelNode request;
try {
if(profile != null) {
builder.addNode("profile", ... |
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException {
DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
ParsedArguments args = ctx.getParsedArguments();
if(ctx.isDomainMode()) {
String profile = this.profile.getValue(arg... | public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException {
DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
ParsedArguments args = ctx.getParsedArguments();
if(ctx.isDomainMode()) {
String profile = this.profile.getValue(arg... |
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException {
final String name = this.name.getValue(ctx.getParsedArguments(), true);
DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
if(ctx.isDomainMode()) {
final String profile... | public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException {
final String name = this.name.getValue(ctx.getParsedArguments(), true);
DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
if(ctx.isDomainMode()) {
final String profile... |
public void testMessageNumber() {
Assert.assertEquals(316, LocalizedFormats.values().length);
}
| public void testMessageNumber() {
Assert.assertEquals(317, LocalizedFormats.values().length);
}
|
public boolean atLeast(JavaVersion requiredVersion) {
return this.value >= requiredVersion.value;
}
// helper for static importing
static JavaVersion getJavaVersion(final String nom) {
return getJavaVersion(nom);
}
static JavaVersion get(final String nom) {
if("0.9".equa... | public boolean atLeast(JavaVersion requiredVersion) {
return this.value >= requiredVersion.value;
}
// helper for static importing
static JavaVersion getJavaVersion(final String nom) {
return get(nom);
}
static JavaVersion get(final String nom) {
if("0.9".equals(nom)) {
... |
public interface LinearOptimizer {
/*
* 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, Vers... | public interface LinearOptimizer {
/*
* 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, Vers... |
public interface RandomData {
/*
* 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, Version 2... | public interface RandomData {
/*
* 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, Version 2... |
public interface RandomGenerator {
/*
* 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, Vers... | public interface RandomGenerator {
/*
* 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, Vers... |
public double apply(UnivariateStatistic stat) {
return stat.evaluate(eDA.getValues(), eDA.start(), eDA.getNumElements());
}
| public double apply(UnivariateStatistic stat) {
return stat.evaluate(eDA.getInternalValues(), eDA.start(), eDA.getNumElements());
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.