buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
package org.jboss.as.ejb3.context.spi;
/*
* JBoss, Home of Professional Open Source
* Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redis... | package org.jboss.as.ejb3.context.spi;
/*
* JBoss, Home of Professional Open Source
* Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redis... |
package org.jboss.as.ejb3.context.spi;
/*
* JBoss, Home of Professional Open Source
* Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redis... | package org.jboss.as.ejb3.context.spi;
/*
* JBoss, Home of Professional Open Source
* Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redis... |
package org.jboss.as.ejb3.pool;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you ca... | package org.jboss.as.ejb3.pool;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you ca... |
package org.jboss.as.ejb3.pool;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you ca... | package org.jboss.as.ejb3.pool;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you ca... |
package org.jboss.as.ejb3.pool;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2007, Red Hat Middleware LLC, 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 c... | package org.jboss.as.ejb3.pool;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2007, Red Hat Middleware LLC, 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 c... |
package org.jboss.as.ejb3.timerservice.api;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... | package org.jboss.as.ejb3.timerservice.api;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... |
package org.jboss.as.ejb3.timerservice.api;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... | package org.jboss.as.ejb3.timerservice.api;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... |
package org.jboss.as.ejb3.timerservice.mk2.persistence;
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software... | package org.jboss.as.ejb3.timerservice.mk2.persistence;
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software... |
package org.jboss.as.ejb3.timerservice.schedule.value;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 i... | package org.jboss.as.ejb3.timerservice.schedule.value;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 i... |
package org.jboss.as.ejb3.timerservice.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... | package org.jboss.as.ejb3.timerservice.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... |
package org.jboss.as.ejb3.timerservice.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... | package org.jboss.as.ejb3.timerservice.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... |
package org.jboss.as.ejb3.timerservice.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... | package org.jboss.as.ejb3.timerservice.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Middleware LLC, 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 soft... |
public static void unescapeCsv(Writer out, String str) throws IOException {
if (str == null) {
return;
}
if (str.length() < 2) {
out.write(str);
return;
}
if ( str.charAt(0) != CSV_QUOTE || str.charAt(str.length() - 1) != CSV_QUOTE ) {
... | public static void unescapeCsv(Writer out, String str) throws IOException {
if (str == null) {
return;
}
if (str.length() < 2) {
out.write(str);
return;
}
if ( str.charAt(0) != CSV_QUOTE || str.charAt(str.length() - 1) != CSV_QUOTE ) {
... |
protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
response.getBody().write('\r');
response.getBody().write('\n');
response.getBody().flush();
}
| protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
response.getBody().write('\r');
response.getBody().write('\n');
response.flush();
}
|
protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
// we already validated the parameter..
String callback = request.getQueryParams().getFirst("c");
String html = String.format(PARTIAL_HTML_CONTENT, callback);
response.getBody().write(html.getBytes("UTF-8... | protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
// we already validated the parameter..
String callback = request.getQueryParams().getFirst("c");
String html = String.format(PARTIAL_HTML_CONTENT, callback);
response.getBody().write(html.getBytes("UTF-8... |
protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
for (int i=0; i < 2048; i++) {
response.getBody().write('h');
}
response.getBody().write('\n');
response.getBody().flush();
}
| protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
for (int i=0; i < 2048; i++) {
response.getBody().write('h');
}
response.getBody().write('\n');
response.flush();
}
|
private ComponentInstance instance;
public ApplicationClientStartService(final Method mainMethod, final String[] parameters, final InjectedEENamespaceContextSelector namespaceContextSelectorInjectedValue, final ClassLoader classLoader, final List<SetupAction> setupActions, final String hostUrl, final Callback... | private ComponentInstance instance;
public ApplicationClientStartService(final Method mainMethod, final String[] parameters, final InjectedEENamespaceContextSelector namespaceContextSelectorInjectedValue, final ClassLoader classLoader, final List<SetupAction> setupActions, final String hostUrl, final Callback... |
public double cumulativeProbability(int x) {
double ret;
if (x < 0) {
ret = 0.0;
} else {
ret = Beta.regularizedBeta(probabilityOfSuccess,
numberOfSuccesses, x + 1);
}
return ret;
}
| public double cumulativeProbability(int x) {
double ret;
if (x < 0) {
ret = 0.0;
} else {
ret = Beta.regularizedBeta(probabilityOfSuccess,
numberOfSuccesses, x + 1.0);
}
return ret;
}
|
public void testChildFirst() throws ClassNotFoundException {
Assert.assertEquals(Stateless.class.getClassLoader(), getClass().getClassLoader());
}
| public void testChildFirst() throws ClassNotFoundException {
Assert.assertNotSame(Stateless.class.getClassLoader(), getClass().getClassLoader());
}
|
public int isMatch(char[] text, int textLen, int pos) {
int len = chars.length;
if (pos + len >= textLen) {
return 0;
}
for (int i = 0; i < chars.length; i++, pos++) {
if (chars[i] != text[pos]) {
return 0;
... | public int isMatch(char[] text, int textLen, int pos) {
int len = chars.length;
if (pos + len > textLen) {
return 0;
}
for (int i = 0; i < chars.length; i++, pos++) {
if (chars[i] != text[pos]) {
return 0;
... |
private RequestOptions createRequestOptions() {
return new RequestOptions(ResponseMode.GET_ALL, this.timeout, false, FILTER);
}
| private RequestOptions createRequestOptions() {
return new RequestOptions(ResponseMode.GET_ALL, this.timeout, false, FILTER, Message.Flag.DONT_BUNDLE);
}
|
private void removeDeploymentScanner() throws Exception {
// remove deployment scanner
cli.sendLine("/subsystem=deployment-scanner/scanner=testScanner:remove()", false);
CLIOpResult result = cli.readAllAsOpResult(WAIT_TIMEOUT);
assertTrue(result.isIsOutcomeSuccess());
... | private void removeDeploymentScanner() throws Exception {
// remove deployment scanner
cli.sendLine("/subsystem=deployment-scanner/scanner=testScanner:remove()", false);
CLIOpResult result = cli.readAllAsOpResult(WAIT_TIMEOUT, WAIT_LINETIMEOUT);
assertTrue(result.isIsOutcome... |
public void getType() {
assertSame(Connector.Type.AJP, new UndertowConnector(new AjpListenerService("", "", 0)).getType());
assertSame(Connector.Type.HTTP, new UndertowConnector(new HttpListenerService("", "", 0, false)).getType());
assertSame(Connector.Type.HTTPS, new UndertowConnector(new ... | public void getType() {
assertSame(Connector.Type.AJP, new UndertowConnector(new AjpListenerService("", "", 0)).getType());
assertSame(Connector.Type.HTTP, new UndertowConnector(new HttpListenerService("", "", 0)).getType());
assertSame(Connector.Type.HTTPS, new UndertowConnector(new HttpsLi... |
public HttpsListenerService(final String name, String serverName, long maxUploadSize) {
super(name, serverName, maxUploadSize, false);
this.maxUploadSize = maxUploadSize;
}
| public HttpsListenerService(final String name, String serverName, long maxUploadSize) {
super(name, serverName, maxUploadSize);
this.maxUploadSize = maxUploadSize;
}
|
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode resolvedValue, ModelNode currentValue, HandbackHolder<Void> voidHandback) {
ModelNode submodel = context.readResource(PathAddress.EMPTY_ADDRESS).getModel();
if ((submodel.hasDefined(... | protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode resolvedValue, ModelNode currentValue, HandbackHolder<Void> voidHandback) {
ModelNode submodel = context.readResource(PathAddress.EMPTY_ADDRESS).getModel();
if ((submodel.hasDefined(... |
public ModelNode getModelDescription(Locale locale) {
ModelNode result = new ModelNode();
final ResourceBundle bundle = descriptionResolver.getResourceBundle(locale);
final ResourceBundle attributeBundle = attributeDescriptionResolver.getResourceBundle(locale);
result.get(OPERATION_... | public ModelNode getModelDescription(Locale locale) {
ModelNode result = new ModelNode();
final ResourceBundle bundle = descriptionResolver.getResourceBundle(locale);
final ResourceBundle attributeBundle = attributeDescriptionResolver.getResourceBundle(locale);
result.get(OPERATION_... |
public boolean isServerInRunningState() {
try { ModelNode op = Util.getEmptyOperation(READ_ATTRIBUTE_OPERATION, PathAddress.EMPTY_ADDRESS.toModelNode());
op.get(NAME).set("server-state");
ModelNode rsp = client.execute(op);
return SUCCESS.equals(rsp.ge... | public boolean isServerInRunningState() {
try { ModelNode op = Util.getEmptyOperation(READ_ATTRIBUTE_OPERATION, PathAddress.EMPTY_ADDRESS.toModelNode());
op.get(NAME).set("server-state");
ModelNode rsp = client.execute(op);
return SUCCESS.equals(rsp.ge... |
protected void describe(final Resource resource, final ModelNode address, ModelNode result, final ImmutableManagementResourceRegistration registration) {
if(registration.isRemote() || registration.isRuntimeOnly() || resource.isProxy() || resource.isRuntime()) {
return;
}
final Se... | protected void describe(final Resource resource, final ModelNode address, ModelNode result, final ImmutableManagementResourceRegistration registration) {
if(resource == null || registration.isRemote() || registration.isRuntimeOnly() || resource.isProxy() || resource.isRuntime()) {
return;
... |
private void testAddXaDataSource() throws Exception {
// add data source
cli.sendLine("xa-data-source add --name=TestXADS --jndi-name=java:jboss/datasources/TestXADS --driver-name=h2");
//check the data source is listed
cli.sendLine("cd /subsystem=datasources/xa-data-source");
... | private void testAddXaDataSource() throws Exception {
// add data source
cli.sendLine("xa-data-source add --name=TestXADS --jndi-name=java:jboss/datasources/TestXADS --driver-name=h2 --xa-datasource-properties=ServerName=localhost,PortNumber=50011");
//check the data source is listed
... |
public void start() throws Exception {
// TODO BootstrapListener
// The first default services are registered before the bootstrap operations are executed.
final ServiceTarget serviceTarget = serviceContainer;
// Install the process controller client
final ProcessControlle... | public void start() throws Exception {
// TODO BootstrapListener
// The first default services are registered before the bootstrap operations are executed.
final ServiceTarget serviceTarget = serviceContainer;
// Install the process controller client
final NewProcessContro... |
public void testEvents()
throws MathUserException, IntegratorException {
TestProblem4 pb = new TestProblem4();
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-10;
double scalRelativeTolerance = 0.01 * scalAbsoluteTolerance;
... | public void testEvents()
throws MathUserException, IntegratorException {
TestProblem4 pb = new TestProblem4();
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-10;
double scalRelativeTolerance = 0.01 * scalAbsoluteTolerance;
... |
public List<AccessConstraintDefinition> getAccessConstraints() {
return accessConstraints;
}
};
registerSubModels(registration.registerSubModel(profile), resolvePathHandler, false);
if (context.isRegisterTransformers()) {
registerTransformers... | public List<AccessConstraintDefinition> getAccessConstraints() {
return accessConstraints;
}
};
registerSubModels(registration.registerSubModel(profile), resolvePathHandler, false);
if (context.isRegisterTransformers()) {
registerTransformers... |
private JTree makeTree() {
ManagementModelNode root = new ManagementModelNode("/", false);
root.explore();
JTree tree = new CommandBuilderTree(new DefaultTreeModel(root));
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeExpansi... | private JTree makeTree() {
ManagementModelNode root = new ManagementModelNode();
root.explore();
JTree tree = new CommandBuilderTree(new DefaultTreeModel(root));
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeExpansionListener... |
public static boolean isThreadWaiting(Thread t) {
if(!simulating.get()) throw new IllegalStateException("Must be in simulation mode");
AtomicLong time;
synchronized(sleepTimesLock) {
time = threadSleepTimes.get(t);
}
return time!=null && currentTimeMillis() < time... | public static boolean isThreadWaiting(Thread t) {
if(!simulating.get()) throw new IllegalStateException("Must be in simulation mode");
AtomicLong time;
synchronized(sleepTimesLock) {
time = threadSleepTimes.get(t);
}
return !t.isAlive() || time!=null && currentTim... |
package org.springframework.web.socket.config.annotation;
/*
* 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... | package org.springframework.web.socket.config.annotation;
/*
* 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... |
package org.springframework.web.socket.config.annotation;
/*
* 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... | package org.springframework.web.socket.config.annotation;
/*
* 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... |
package org.springframework.web.socket.config.annotation;
/*
* 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... | package org.springframework.web.socket.config.annotation;
/*
* 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 ContentModification modifyModule(File patchDir, String patchElementID, byte[] existingHash, Module newModule) throws IOException {
File baseDir = newFile(patchDir, patchElementID, MODULES);
File mainDir = newModule.writeToDisk(baseDir);
byte[] newHash = hashFile(mainDir);
... | public static ContentModification modifyModule(File patchDir, String patchElementID, byte[] existingHash, Module newModule) throws IOException {
File baseDir = newFile(patchDir, patchElementID, MODULES);
File mainDir = newModule.writeToDisk(baseDir);
byte[] newHash = hashFile(mainDir);
... |
public Configuration defineConfiguration(String cacheName, Configuration configurationOverride) {
return this.defineConfiguration(cacheName, this.defaultCache, configurationOverride);
}
| public Configuration defineConfiguration(String cacheName, Configuration configurationOverride) {
return this.container.defineConfiguration(this.getCacheName(cacheName), configurationOverride);
}
|
public void finish() throws IOException {
ensureOpen();
if (this.finished) {
return;
}
if (this.entry != null) {
closeArchiveEntry();
}
this.entry = new CpioArchiveEntry(this.entryFormat);
this.entry.setName(CPIO_TRAILER);
this... | public void finish() throws IOException {
ensureOpen();
if (this.finished) {
return;
}
if (this.entry != null) {
throw new IOException("This archives contains unclosed entries.");
}
this.entry = new CpioArchiveEntry(this.entryFormat);
... |
protected String getType(OperationContext context, ModelNode model) throws OperationFailedException {
return getHandlerType(context, model);
}
}, OperationContext.Stage.MODEL);
}
static String getHandlerType(OperationContext context, ModelNode elementNode) throws... | public static String getHandlerType(OperationContext context, ModelNode elementNode) throws OperationFailedException {
ModelNode classNameNode = CLASS_NAME.resolveModelAttribute(context, elementNode);
ModelNode codeNode = CODE.resolveModelAttribute(context, elementNode);
if (classNameNode.i... |
void validate(String topologyName, Map topologyConf, StormTopology topology)
package backtype.storm.nimbus;
import backtype.storm.generated.InvalidTopologyException;
import backtype.storm.generated.StormTopology;
import java.util.Map;
public interface ITopologyValidator {
void prepare(Map StormConf);
void va... | void validate(String topologyName, Map topologyConf, StormTopology topology)
package backtype.storm.nimbus;
import backtype.storm.generated.InvalidTopologyException;
import backtype.storm.generated.StormTopology;
import java.util.Map;
public interface ITopologyValidator {
void prepare(Map StormConf);
void va... |
protected void processBridge(XMLExtendedStreamReader reader, ModelNode address, List<ModelNode> updates) throws XMLStreamException {
requireSingleAttribute(reader, CommonAttributes.NAME);
String name = reader.getAttributeValue(0);
ModelNode bridgeAdd = org.jboss.as.controller.operations.co... | protected void processBridge(XMLExtendedStreamReader reader, ModelNode address, List<ModelNode> updates) throws XMLStreamException {
requireSingleAttribute(reader, CommonAttributes.NAME);
String name = reader.getAttributeValue(0);
ModelNode bridgeAdd = org.jboss.as.controller.operations.co... |
public void testUPlus() {
UnicodeUnescaper uu = new UnicodeUnescaper();
String input = "\\u+0047";
try {
uu.translate(input);
fail("Default behaviour should not parse u+");
} catch(IllegalArgumentException iae) {
// expected
}
uu.... | public void testUPlus() {
UnicodeUnescaper uu = new UnicodeUnescaper();
String input = "\\u+0047";
try {
uu.translate(input);
fail("Default behaviour should not parse u+");
} catch(IllegalArgumentException iae) {
// expected
}
uu ... |
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
if (context.isResourceServiceRestartAllowed()) {
EJB3RemoteServiceAdd.INSTANCE.installRuntimeServices(context, model, null);
} else {
context.rever... | protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
if (context.isResourceServiceRestartAllowed()) {
EJB3RemoteServiceAdd.INSTANCE.installRuntimeServices(context, model);
} else {
context.revertReloa... |
private RequestOptions createRequestOptions() {
return new RequestOptions(ResponseMode.GET_ALL, this.timeout, false, FILTER, Message.Flag.DONT_BUNDLE);
}
| private RequestOptions createRequestOptions() {
return new RequestOptions(ResponseMode.GET_ALL, this.timeout, false, FILTER, Message.Flag.DONT_BUNDLE, Message.Flag.OOB);
}
|
protected PathAddress getCacheContainerAddressFromOperation(ModelNode operation) {
final PathAddress cacheAddress = getCacheAddressFromOperation(operation) ;
final PathAddress containerAddress = cacheAddress.subAddress(0, cacheAddress.size()-1) ;
return containerAddress ;
}
ServiceC... | protected PathAddress getCacheContainerAddressFromOperation(ModelNode operation) {
final PathAddress cacheAddress = getCacheAddressFromOperation(operation) ;
final PathAddress containerAddress = cacheAddress.subAddress(0, cacheAddress.size()-1) ;
return containerAddress ;
}
ServiceC... |
public ServiceBuilder<T> build(ServiceContainer target, String container) {
ServiceName registryName = ServiceProviderRegistryService.getServiceName(container);
synchronized (target) {
if (target.getService(registryName) == null) {
new ServiceProviderRegistryService().bui... | public ServiceBuilder<T> build(ServiceContainer target, String container) {
ServiceName registryName = ServiceProviderRegistryService.getServiceName(container);
synchronized (target) {
if (target.getService(registryName) == null) {
new ServiceProviderRegistryService().bui... |
private boolean matchStrings(String pattern, String str, Map<String, String> uriTemplateVariables) {
AntPatchStringMatcher matcher = new AntPatchStringMatcher(pattern, str, uriTemplateVariables);
return matcher.matchStrings();
}
| private boolean matchStrings(String pattern, String str, Map<String, String> uriTemplateVariables) {
AntPathStringMatcher matcher = new AntPathStringMatcher(pattern, str, uriTemplateVariables);
return matcher.matchStrings();
}
|
private void writeServers(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException {
writer.writeStartElement(Element.SERVERS.getLocalName());
for (Property prop : modelNode.asPropertyList()) {
final ModelNode server = prop.getValue();
writ... | private void writeServers(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException {
writer.writeStartElement(Element.SERVERS.getLocalName());
for (Property prop : modelNode.asPropertyList()) {
final ModelNode server = prop.getValue();
writ... |
public void afterTest() throws Exception {
StringBuilder buf = null;
for(File f : appFiles) {
ctx.handleSafe("undeploy " + f.getName());
if(ctx.getExitCode() == 0) {
if(!afterTestDeployments.remove(f.getName())) {
if(buf == null) {
... | public void afterTest() throws Exception {
StringBuilder buf = null;
for(File f : appFiles) {
ctx.handleSafe("undeploy " + f.getName());
if(ctx.getExitCode() == 0) {
if(!afterTestDeployments.remove(f.getName())) {
if(buf == null) {
... |
private static <T> void addDependency(ServiceBuilder<?> builder, Dependency<T> dependency) {
final ServiceName name = dependency.getName();
final Injector<T> injector = dependency.getInjector();
if (injector != null) {
builder.addDependency(name, dependency.getType(), injector);
... | private static <T> void addDependency(ServiceBuilder<?> builder, Dependency<T> dependency) {
final ServiceName name = dependency.getName();
final Injector<T> injector = dependency.getInjector();
if (injector != null) {
builder.addDependency(name, dependency.getType(), injector);
... |
public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields("id");
}
| public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"});
}
|
public static void addService(DeploymentPhaseContext phaseContext, Deployment deployment) {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final BundleInstallService service = new BundleInstallService(deployment);
final String contextName = deploymentUnit.getName();
... | public static void addService(DeploymentPhaseContext phaseContext, Deployment deployment) {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final BundleInstallService service = new BundleInstallService(deployment);
final String contextName = deploymentUnit.getName();
... |
public static void addService(DeploymentPhaseContext phaseContext, Module module, OSGiMetaData metadata) {
final ModuleRegisterService service = new ModuleRegisterService(module, metadata);
final ServiceName serviceName = getServiceName(module.getIdentifier());
final ServiceTarget serviceTar... | public static void addService(DeploymentPhaseContext phaseContext, Module module, OSGiMetaData metadata) {
final ModuleRegisterService service = new ModuleRegisterService(module, metadata);
final ServiceName serviceName = getServiceName(module.getIdentifier());
final ServiceTarget serviceTar... |
import org.jboss.as.controller.client.ResultHandler;
/*
* 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 soft... | import org.jboss.as.controller.client.ResultHandler;
/*
* 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 soft... |
package org.jboss.as.services.net;
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it a... | package org.jboss.as.services.net;
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it a... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
String name = JcaDistrib... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
String name = JcaDistrib... |
private void testTransformer(String subsystemXml, ModelTestControllerVersion controllerVersion, ModelVersion modelVersion) throws Exception {
//Use the non-runtime version of the extension which will happen on the HC
KernelServicesBuilder builder = createKernelServicesBuilder(AdditionalInitializatio... | private void testTransformer(String subsystemXml, ModelTestControllerVersion controllerVersion, ModelVersion modelVersion) throws Exception {
//Use the non-runtime version of the extension which will happen on the HC
KernelServicesBuilder builder = createKernelServicesBuilder(AdditionalInitializatio... |
private NewRemoteProxyController setupProxyHandlers(MockModelController controller) {
ManagementChannel serverChannel = channels.getServerChannel();
ManagementChannel clientChannel = channels.getClientChannel();
clientChannel.startReceiving();
NewTransactionalModelControllerOperatio... | private NewRemoteProxyController setupProxyHandlers(MockModelController controller) {
ManagementChannel serverChannel = channels.getServerChannel();
ManagementChannel clientChannel = channels.getClientChannel();
clientChannel.startReceiving();
NewTransactionalModelControllerOperatio... |
public Object fromMessage(Message<?> message, Type objectType) {
JavaType javaType = (objectType != null) ?
this.objectMapper.constructType(objectType) :
this.objectMapper.constructType(this.defaultObjectType);
Object payload = message.getPayload();
try {
if (payload instanceof byte[]) {
return... | public Object fromMessage(Message<?> message, Type objectType) {
JavaType javaType = (objectType != null) ?
this.objectMapper.constructType(objectType) :
this.objectMapper.constructType(this.defaultObjectType);
Object payload = message.getPayload();
try {
if (payload instanceof byte[]) {
return... |
public void eventPublication() {
TestPublisher publisher = new TestPublisher();
UserSessionRegistry registry = new DefaultUserSessionRegistry();
this.protocolHandler.setUserSessionRegistry(registry);
this.protocolHandler.setApplicationEventPublisher(publisher);
this.protocolHandler.afterSessionStarted(this... | public void eventPublication() {
TestPublisher publisher = new TestPublisher();
UserSessionRegistry registry = new DefaultUserSessionRegistry();
this.protocolHandler.setUserSessionRegistry(registry);
this.protocolHandler.setApplicationEventPublisher(publisher);
this.protocolHandler.afterSessionStarted(this... |
private void emitRankings(BasicOutputCollector collector) {
collector.emit(new Values(rankings));
getLogger().debug("Rankings: " + rankings);
}
| private void emitRankings(BasicOutputCollector collector) {
collector.emit(new Values(rankings.copy()));
getLogger().debug("Rankings: " + rankings);
}
|
private void registerTransformers(SubsystemRegistration subsystem) {
ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
GlobalModulesRejecterConverter globalModulesRejecterConverter = new GlobalModulesRejecterConverter();
... | private void registerTransformers(SubsystemRegistration subsystem) {
ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
GlobalModulesRejecterConverter globalModulesRejecterConverter = new GlobalModulesRejecterConverter();
... |
public interface CommonAttributes {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can red... | public interface CommonAttributes {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can red... |
private List<InterceptorConfiguration> processInterceptors(final Index index, final Map<DotName, List<AnnotationTarget>> beanClassAnnotations, final Class<?> beanClass) throws DeploymentUnitProcessingException {
final List<AnnotationTarget> interceptorTargets = beanClassAnnotations.get(INTERCEPTORS_ANNOTATI... | private List<InterceptorConfiguration> processInterceptors(final Index index, final Map<DotName, List<AnnotationTarget>> beanClassAnnotations, final Class<?> beanClass) throws DeploymentUnitProcessingException {
final List<AnnotationTarget> interceptorTargets = beanClassAnnotations.get(INTERCEPTORS_ANNOTATI... |
public ModelNode execute(final ModelNode operation, final OperationMessageHandler handler, final OperationTransactionControl control, final OperationAttachments attachments) {
final ModelNode headers = operation.has(OPERATION_HEADERS) ? operation.get(OPERATION_HEADERS) : null;
final boolean rollback... | public ModelNode execute(final ModelNode operation, final OperationMessageHandler handler, final OperationTransactionControl control, final OperationAttachments attachments) {
final ModelNode headers = operation.has(OPERATION_HEADERS) ? operation.get(OPERATION_HEADERS) : null;
final boolean rollback... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
ServiceRegistry registry = context.getServiceRegistry(false);
final ServiceName ... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
ServiceRegistry registry = context.getServiceRegistry(false);
final ServiceName ... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
... |
public void start(StartContext context) throws StartException {
GlobalConfigurationBuilder builder = new GlobalConfigurationBuilder();
ModuleLoader moduleLoader = this.dependencies.getModuleLoader();
builder.serialization().classResolver(ModularClassResolver.getInstance(moduleLoader));
... | public void start(StartContext context) throws StartException {
GlobalConfigurationBuilder builder = new GlobalConfigurationBuilder();
ModuleLoader moduleLoader = this.dependencies.getModuleLoader();
builder.serialization().classResolver(ModularClassResolver.getInstance(moduleLoader));
... |
public static final SimpleAttributeDefinition TYPE = new SimpleAttributeDefinitionBuilder(ModelKeys.TYPE, ModelType.STRING, false)
.setXmlName(Attribute.TYPE.getLocalName())
| public void registerChildren(ManagementResourceRegistration registration) {
registration.registerSubModel(PropertyResourceDefinition.INSTANCE);
}
} |
CacheNodeFactory getNodeFactory();
/*
* 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 individual contributors.
*
* This is free software; you can redi... | CacheNodeFactory getNodeFactory();
/*
* 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 individual contributors.
*
* This is free software; you can redi... |
public interface CacheServiceNameFactory extends ChannelServiceNameFactory {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014, 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 interface CacheServiceNameFactory extends ChannelServiceNameFactory {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014, 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 void establishTopology(String containerName, String cacheName, String... nodes) throws InterruptedException {
Set<String> expectedMembers = new TreeSet<>();
if (nodes != null) {
for (String name: nodes) {
expectedMembers.add(name + "/ee");
}
}
... | public void establishTopology(String containerName, String cacheName, String... nodes) throws InterruptedException {
Set<String> expectedMembers = new TreeSet<>();
if (nodes != null) {
for (String name: nodes) {
expectedMembers.add(name + "/" + containerName);
... |
public void test() throws Exception {
String cluster = "ee";
String nodeNameFormat = "%s/%s";
String nodeName1 = String.format(nodeNameFormat, NODE_1, cluster);
String nodeName2 = String.format(nodeNameFormat, NODE_2, cluster);
ContextSelector<EJBClientContext> selector = EJ... | public void test() throws Exception {
String cluster = "server";
String nodeNameFormat = "%s/%s";
String nodeName1 = String.format(nodeNameFormat, NODE_1, cluster);
String nodeName2 = String.format(nodeNameFormat, NODE_2, cluster);
ContextSelector<EJBClientContext> selector ... |
public void test() throws Exception {
String cluster = "ee";
String nodeNameFormat = "%s/%s";
String nodeName1 = String.format(nodeNameFormat, NODE_1, cluster);
String nodeName2 = String.format(nodeNameFormat, NODE_2, cluster);
ContextSelector<EJBClientContext> selector = E... | public void test() throws Exception {
String cluster = "server";
String nodeNameFormat = "%s/%s";
String nodeName1 = String.format(nodeNameFormat, NODE_1, cluster);
String nodeName2 = String.format(nodeNameFormat, NODE_2, cluster);
ContextSelector<EJBClientContext> selector... |
private static void install(ServiceName name, int quorum, ServiceActivatorContext context) {
InjectedValue<ServerEnvironment> env = new InjectedValue<>();
MyService service = new MyService(env);
ServiceController<?> factoryService = context.getServiceRegistry().getRequiredService(SingletonSe... | private static void install(ServiceName name, int quorum, ServiceActivatorContext context) {
InjectedValue<ServerEnvironment> env = new InjectedValue<>();
MyService service = new MyService(env);
ServiceController<?> factoryService = context.getServiceRegistry().getRequiredService(SingletonSe... |
public static ServiceBuilder<io.undertow.security.impl.SingleSignOnManager> build(ServiceTarget target, ServiceName name, ServiceName hostName) {
ServiceName factoryName = name.append("factory");
DistributableSingleSignOnManagerFactoryBuilder builder = new DistributableSingleSignOnManagerFactoryBuil... | public static ServiceBuilder<io.undertow.security.impl.SingleSignOnManager> build(ServiceTarget target, ServiceName name, ServiceName hostName) {
ServiceName factoryName = name.append("factory");
DistributableSingleSignOnManagerFactoryBuilder builder = new DistributableSingleSignOnManagerFactoryBuil... |
private void setupNoRandPartC() throws IOException {
if (this.su_j2 < this.su_z) {
int su_ch2Shadow = this.su_ch2;
this.currentChar = su_ch2Shadow;
this.crc.updateCRC(su_ch2Shadow);
this.su_j2++;
this.currentState = NO_RAND_PART_C_STATE;
} ... | private void setupNoRandPartC() throws IOException {
if (this.su_j2 < this.su_z) {
int su_ch2Shadow = this.su_ch2;
this.currentChar = su_ch2Shadow;
this.crc.updateCRC(su_ch2Shadow);
this.su_j2++;
this.currentState = NO_RAND_PART_C_STATE;
} ... |
public void run() {
final InputStream socketIn = socketConnection.getInputStream();
final OutputStream socketOut = socketConnection.getOutputStream();
try {
final SimpleDataInput input = new SimpleDataInput(Marshalling.createByteInput(socketIn));
... | public void run() {
final InputStream socketIn = socketConnection.getInputStream();
final OutputStream socketOut = socketConnection.getOutputStream();
try {
final SimpleDataInput input = new SimpleDataInput(Marshalling.createByteInput(socketIn));
... |
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) {
Boolean replacement = deploymentUnit.getAttachment(Attachments.SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT);
if (replacement != null && replacement) {
final PropertyResolver propertyResolver = deploymentUnit.... | public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) {
Boolean replacement = deploymentUnit.getAttachment(Attachments.SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT);
if (replacement == null || replacement) {
final PropertyResolver propertyResolver = deploymentUnit.... |
public static final SimpleAttributeDefinition SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT = new SimpleAttributeDefinition("spec-descriptor-property-replacement",
"spec-descriptor-property-replacement", new ModelNode().set(false), ModelType.BOOLEAN, true, true, null);
| public static final SimpleAttributeDefinition SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT = new SimpleAttributeDefinition("spec-descriptor-property-replacement",
"spec-descriptor-property-replacement", new ModelNode().set(true), ModelType.BOOLEAN, true, true, null);
|
protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException {
return controller.boot(bootOperations, OperationMessageHandler.logging, ModelController.OperationTransactionControl.COMMIT, false);
}
| protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException {
return controller.boot(bootOperations, OperationMessageHandler.logging, ModelController.OperationTransactionControl.COMMIT, rollbackOnRuntimeFailure);
}
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**")
.addResourceLocations("classpath:org/springframework/web/servlet/resource/test/")
.addContentVersionStrategy("/**");
}
}
| public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**")
.addResourceLocations("classpath:org/springframework/web/servlet/resource/test/")
.addResolver(new VersionResourceResolver().addContentVersionStrategy("/**"));
}
}
|
private void initCommands() {
cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn");
cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls");
cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command");
cmdRegistry.registerHandler(new ConnectHa... | private void initCommands() {
cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn");
cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls");
cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command");
cmdRegistry.registerHandler(new ConnectHa... |
private final Map<ListenerCacheKey, ListenerRetriever> retrieverCache =
new ConcurrentHashMap<ListenerCacheKey, ListenerRetriever>();
| private final Map<ListenerCacheKey, ListenerRetriever> retrieverCache =
new ConcurrentHashMap<ListenerCacheKey, ListenerRetriever>(64);
|
private void testTransformers_1_0_0(ModelTestControllerVersion controllerVersion) throws Exception {
ModelVersion modelVersion = ModelVersion.create(1, 0, 0);
KernelServicesBuilder builder = createKernelServicesBuilder(createAdditionalInitialization());
builder.createLegacyKernelServicesBui... | private void testTransformers_1_0_0(ModelTestControllerVersion controllerVersion) throws Exception {
ModelVersion modelVersion = ModelVersion.create(1, 0, 0);
KernelServicesBuilder builder = createKernelServicesBuilder(createAdditionalInitialization());
builder.createLegacyKernelServicesBui... |
private Object createChildClassLoaderKernelServices(String mainSubsystemName, String extensionClassName, AdditionalInitialization additionalInit, ModelTestOperationValidatorFilter validateOpsFilter,
List<ModelNode> bootOperations, ModelVersion legacyModelVersion, boolean persistXml){
try {
... | private Object createChildClassLoaderKernelServices(String mainSubsystemName, String extensionClassName, AdditionalInitialization additionalInit, ModelTestOperationValidatorFilter validateOpsFilter,
List<ModelNode> bootOperations, ModelVersion legacyModelVersion, boolean persistXml){
try {
... |
public static void doExtraInitialization(AdditionalInitialization additionalInit, ControllerInitializer controllerInitializer, ExtensionRegistry extensionRegistry, Resource rootResource, ManagementResourceRegistration rootRegistration) {
//TODO
//controllerInitializer.setTestModelControllerService(t... | public static void doExtraInitialization(AdditionalInitialization additionalInit, ControllerInitializer controllerInitializer, ExtensionRegistry extensionRegistry, Resource rootResource, ManagementResourceRegistration rootRegistration) {
//TODO
//controllerInitializer.setTestModelControllerService(t... |
private void testMarkReset(final String csName) throws Exception {
final InputStream r = new CharSequenceInputStream("test", csName);
try {
r.skip(2);
r.mark(0);
assertEquals(csName, 's', r.read());
assertEquals(csName, 't', r.read());
asse... | private void testMarkReset(final String csName) throws Exception {
final InputStream r = new CharSequenceInputStream("test", csName);
try {
assertEquals(2, r.skip(2));
r.mark(0);
assertEquals(csName, 's', r.read());
assertEquals(csName, 't', r.read());... |
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
if (deployed) {
SimpleAttributeDefinition runtimeAttribute = new SimpleAttributeDefinitionBuilder(Constants.CONNECTION_PROPERTY_VALUE).setFlags(AttributeAccess.Flag.STORAGE_RUNTIME).build();
resourc... | public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
if (deployed) {
SimpleAttributeDefinition runtimeAttribute = new SimpleAttributeDefinitionBuilder(Constants.CONNECTION_PROPERTY_VALUE).setFlags(AttributeAccess.Flag.STORAGE_RUNTIME).build();
resourc... |
public LdapEntry[] search(DirContext dirContext, LdapEntry entry) throws IOException, NamingException {
Set<LdapEntry> foundEntries = new HashSet<LdapEntry>();
// Load the list of group.
Attributes groups = dirContext.getAttributes(entry.getDistinguishedName(), new String[] {... | public LdapEntry[] search(DirContext dirContext, LdapEntry entry) throws IOException, NamingException {
Set<LdapEntry> foundEntries = new HashSet<LdapEntry>();
// Load the list of group.
Attributes groups = dirContext.getAttributes(entry.getDistinguishedName(), new String[] {... |
public PrefixHandler(String command) {
super(command, true);
nodePath = new ArgumentWithValue(this, OperationRequestCompleter.INSTANCE, 0, "--node-path");
}
| public PrefixHandler(String command) {
super(command, true);
nodePath = new ArgumentWithValue(this, OperationRequestCompleter.ARG_VALUE_COMPLETER, 0, "--node-path");
}
|
public void toNode(String nodeName) {
if(nodes.isEmpty())
throw new IllegalStateException("The prefix should end with the node type before going to a specific node name.");
nodes.get(nodes.size() - 1).name = nodeName;
}
| public void toNode(String nodeName) {
if(nodes.isEmpty())
throw new IllegalStateException("Node name '" + nodeName + "' should follow a node type.");
nodes.get(nodes.size() - 1).name = nodeName;
}
|
public XmlAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USER),
ManagementDescription.getResourceDescriptionResolver("core.management.security-realm.authentication.xml"),
new SecurityRealm... | public XmlAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS),
ManagementDescription.getResourceDescriptionResolver("core.management.security-realm.authentication.xml"),
new SecurityReal... |
public void setUp() throws Exception {
this.beanFactory = new XmlBeanFactory(new ClassPathResource("commonsPoolTests.xml", getClass()));
}
| public void setUp() throws Exception {
this.beanFactory = new XmlBeanFactory(new ClassPathResource("org/springframework/aop/target/commonsPoolTests.xml"));
}
|
public static void main(String[] args) {
String port = "9999";
String host = "localhost";
String protocol = "http-remoting";
try {
CommandLine line = parser.parse(options, args, false);
if (line.hasOption("help")) {
formatter.printHelp(usage,... | public static void main(String[] args) {
String port = "9990";
String host = "localhost";
String protocol = "http-remoting";
try {
CommandLine line = parser.parse(options, args, false);
if (line.hasOption("help")) {
formatter.printHelp(usage,... |
public JdrReport standaloneCollect(String protocol, String host, String port) throws OperationFailedException {
String username = null;
String password = null;
if (host == null) {
host = "localhost";
}
if (port == null) {
port = "9999";
}
... | public JdrReport standaloneCollect(String protocol, String host, String port) throws OperationFailedException {
String username = null;
String password = null;
if (host == null) {
host = "localhost";
}
if (port == null) {
port = "9990";
}
... |
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 1);
final ManagementResourceRegistration subsystemRegistration = subsystem.registerSubsystemModel(JacORBSubsystemResource.INSTANCE);
subsystemRegistration.r... | public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0);
final ManagementResourceRegistration subsystemRegistration = subsystem.registerSubsystemModel(JacORBSubsystemResource.INSTANCE);
subsystemRegistration.r... |
public State execute() {
boolean direct = theConsole.getConsole() == null;
// Errors should be output in all modes.
printf(NEW_LINE, direct);
printf(" * ", direct);
printf(MESSAGES.errorHeader(), direct);
printf(" * ", direct);
printf(NEW_LINE, direct);
... | public State execute() {
boolean direct = theConsole.getConsole() == null;
// Errors should be output in all modes.
printf(NEW_LINE, direct);
printf(" * ", direct);
printf(MESSAGES.errorHeader(), direct);
printf(" * ", direct);
printf(NEW_LINE, direct);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.