buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
Deployment deployment = depUnit.getAttachment(OSGiConstants.DEPLOYMENT_KEY);
XBundle bundle = depUnit.getAttachment(OSGiConstan... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
Deployment deployment = depUnit.getAttachment(OSGiConstants.DEPLOYMENT_KEY);
XBundle bundle = depUnit.getAttachment(OSGiConstan... |
private XmlBeanFactory createFactory(String resourceName) {
XmlBeanFactory fact = new XmlBeanFactory(new ClassPathResource(resourceName, getClass()));
fact.setParameterNameDiscoverer(new LocalVariableTableParameterNameDiscoverer());
return fact;
}
| private XmlBeanFactory createFactory(String resourceName) {
XmlBeanFactory fact = new XmlBeanFactory(new ClassPathResource(resourceName, getClass()));
//fact.setParameterNameDiscoverer(new LocalVariableTableParameterNameDiscoverer());
return fact;
}
|
public static ParsedSql parseSqlStatement(final String sql) {
Assert.notNull(sql, "SQL must not be null");
Set<String> namedParameters = new HashSet<String>();
String sqlToUse = sql;
List<ParameterHolder> parameterList = new ArrayList<ParameterHolder>();
char[] statement = sql.toCharArray();
int namedPar... | public static ParsedSql parseSqlStatement(final String sql) {
Assert.notNull(sql, "SQL must not be null");
Set<String> namedParameters = new HashSet<String>();
String sqlToUse = sql;
List<ParameterHolder> parameterList = new ArrayList<ParameterHolder>();
char[] statement = sql.toCharArray();
int namedPar... |
public static StandaloneServer create(final ModuleLoader moduleLoader, final File jbossHomeDir, final Properties systemProps, final Map<String, String> systemEnv) {
try {
// Load the server Module and get its ClassLoader
final ModuleIdentifier serverModuleId = ModuleIdentifier.create... | public static StandaloneServer create(final ModuleLoader moduleLoader, final File jbossHomeDir, final Properties systemProps, final Map<String, String> systemEnv) {
try {
// Load the server Module and get its ClassLoader
final ModuleIdentifier serverModuleId = ModuleIdentifier.create... |
public long getNanoTime() {
if (this.runningState == STATE_STOPPED || this.runningState == STATE_SUSPENDED) {
return this.stopTime - this.startTime;
} else if (this.runningState == STATE_UNSTARTED) {
return 0;
} else if (this.runningState == STATE_RUNNING) {
... | public long getNanoTime() {
if (this.runningState == STATE_STOPPED || this.runningState == STATE_SUSPENDED) {
return this.stopTime - this.startTime;
} else if (this.runningState == STATE_UNSTARTED) {
return 0;
} else if (this.runningState == STATE_RUNNING) {
... |
public void startServers() {
// TODO figure out concurrency controls
// hostLock.lock(); // should this be domainLock?
// try {
ServerMaker serverMaker = new ServerMaker(environment.getHomeDir().getAbsolutePath(), processManagerSlave, messageHandler);
for (ServerElemen... | public void startServers() {
// TODO figure out concurrency controls
// hostLock.lock(); // should this be domainLock?
// try {
ServerMaker serverMaker = new ServerMaker(environment, processManagerSlave, messageHandler);
for (ServerElement serverEl : hostConfig.getServ... |
protected void doBegin(Object transaction, TransactionDefinition definition) {
DataSourceTransactionObject txObject = (DataSourceTransactionObject) transaction;
Connection con = null;
try {
if (txObject.getConnectionHolder() == null ||
txObject.getConnectionHolder().isSynchronizedWithTransaction()) {
... | protected void doBegin(Object transaction, TransactionDefinition definition) {
DataSourceTransactionObject txObject = (DataSourceTransactionObject) transaction;
Connection con = null;
try {
if (txObject.getConnectionHolder() == null ||
txObject.getConnectionHolder().isSynchronizedWithTransaction()) {
... |
protected void doBegin(Object transaction, TransactionDefinition definition) {
HibernateTransactionObject txObject = (HibernateTransactionObject) transaction;
if (txObject.hasConnectionHolder() && !txObject.getConnectionHolder().isSynchronizedWithTransaction()) {
throw new IllegalTransactionStateException(
... | protected void doBegin(Object transaction, TransactionDefinition definition) {
HibernateTransactionObject txObject = (HibernateTransactionObject) transaction;
if (txObject.hasConnectionHolder() && !txObject.getConnectionHolder().isSynchronizedWithTransaction()) {
throw new IllegalTransactionStateException(
... |
protected void doBegin(Object transaction, TransactionDefinition definition) {
HibernateTransactionObject txObject = (HibernateTransactionObject) transaction;
if (txObject.hasConnectionHolder() && !txObject.getConnectionHolder().isSynchronizedWithTransaction()) {
throw new IllegalTransactionStateException(
... | protected void doBegin(Object transaction, TransactionDefinition definition) {
HibernateTransactionObject txObject = (HibernateTransactionObject) transaction;
if (txObject.hasConnectionHolder() && !txObject.getConnectionHolder().isSynchronizedWithTransaction()) {
throw new IllegalTransactionStateException(
... |
public int getTimeout() {
return timeoutToUse;
}
});
txObject.setTransactionData(transactionData);
// Register transaction timeout.
if (timeoutToUse != TransactionDefinition.TIMEOUT_DEFAULT) {
txObject.getPersistenceManagerHolder().setTimeoutInSeconds(timeoutToUse);
}
// Reg... | public int getTimeout() {
return timeoutToUse;
}
});
txObject.setTransactionData(transactionData);
// Register transaction timeout.
if (timeoutToUse != TransactionDefinition.TIMEOUT_DEFAULT) {
txObject.getPersistenceManagerHolder().setTimeoutInSeconds(timeoutToUse);
}
// Reg... |
public int getTimeout() {
return timeoutToUse;
}
});
txObject.setTransactionData(transactionData);
// Register transaction timeout.
if (timeoutToUse != TransactionDefinition.TIMEOUT_DEFAULT) {
txObject.getEntityManagerHolder().setTimeoutInSeconds(timeoutToUse);
}
// Register... | public int getTimeout() {
return timeoutToUse;
}
});
txObject.setTransactionData(transactionData);
// Register transaction timeout.
if (timeoutToUse != TransactionDefinition.TIMEOUT_DEFAULT) {
txObject.getEntityManagerHolder().setTimeoutInSeconds(timeoutToUse);
}
// Register... |
package org.wildfly.clustering.ee;
/*
* 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.
*
* This is free software; you can redi... | package org.wildfly.clustering.ee;
/*
* 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.
*
* This is free software; you can redi... |
import org.wildfly.clustering.infinispan.spi.distribution.Locality;
/*
* 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.
*
* Th... | import org.wildfly.clustering.infinispan.spi.distribution.Locality;
/*
* 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.
*
* Th... |
package org.wildfly.clustering.infinispan.spi.affinity;
/*
* 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 s... | package org.wildfly.clustering.infinispan.spi.affinity;
/*
* 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 s... |
package org.wildfly.clustering.infinispan.spi.distribution;
/*
* 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.
*
* This is fr... | package org.wildfly.clustering.infinispan.spi.distribution;
/*
* 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.
*
* This is fr... |
package org.wildfly.clustering.infinispan.spi.io;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free softwar... | package org.wildfly.clustering.infinispan.spi.io;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free softwar... |
package org.wildfly.clustering.jgroups.spi;
/*
* 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... | package org.wildfly.clustering.jgroups.spi;
/*
* 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... |
package org.wildfly.clustering.jgroups.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you... | package org.wildfly.clustering.jgroups.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you... |
package org.wildfly.clustering.jgroups.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you... | package org.wildfly.clustering.jgroups.spi;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you... |
package org.wildfly.clustering.jgroups.spi;
/*
* 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... | package org.wildfly.clustering.jgroups.spi;
/*
* 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... |
package org.wildfly.clustering.marshalling;
package org.jboss.as.clustering.marshalling;
import java.util.Collection;
public interface ClassTableContributor {
Collection<Class<?>> getKnownClasses();
} | package org.wildfly.clustering.marshalling;
package org.wildfly.clustering.marshalling;
import java.util.Collection;
public interface ClassTableContributor {
Collection<Class<?>> getKnownClasses();
} |
package org.wildfly.clustering.marshalling;
/*
* 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... | package org.wildfly.clustering.marshalling;
/*
* 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... |
package org.wildfly.clustering.marshalling;
/*
* 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... | package org.wildfly.clustering.marshalling;
/*
* 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... |
package org.wildfly.clustering.marshalling;
/*
* 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... | package org.wildfly.clustering.marshalling;
/*
* 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... |
package org.wildfly.clustering.marshalling;
/*
* 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... | package org.wildfly.clustering.marshalling;
/*
* 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... |
package org.wildfly.clustering.marshalling;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you... | package org.wildfly.clustering.marshalling;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you... |
package org.wildfly.clustering.server;
/*
* 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 ... | package org.wildfly.clustering.server;
/*
* 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 ... |
public interface CacheGroupServiceNameFactory extends GroupServiceNameFactory {
/*
* 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 contributo... | public interface CacheGroupServiceNameFactory extends GroupServiceNameFactory {
/*
* 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 contributo... |
public interface ClusteredCacheGroupBuilderProvider extends CacheGroupBuilderProvider {
/*
* 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 co... | public interface ClusteredCacheGroupBuilderProvider extends CacheGroupBuilderProvider {
/*
* 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 co... |
public interface ClusteredGroupBuilderProvider extends GroupBuilderProvider {
/*
* 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 ClusteredGroupBuilderProvider extends GroupBuilderProvider {
/*
* 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 LocalCacheGroupBuilderProvider extends CacheGroupBuilderProvider {
/*
* 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 contri... | public interface LocalCacheGroupBuilderProvider extends CacheGroupBuilderProvider {
/*
* 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 contri... |
public interface LocalGroupBuilderProvider extends GroupBuilderProvider {
/*
* 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 LocalGroupBuilderProvider extends GroupBuilderProvider {
/*
* 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.
*... |
import org.wildfly.clustering.infinispan.spi.distribution.Locality;
/*
* 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.
*
* Th... | import org.wildfly.clustering.infinispan.spi.distribution.Locality;
/*
* 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.
*
* Th... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final PathAddress hostAddress = address.subAddress(0, address.size() - 1);
... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final PathAddress hostAddress = address.subAddress(0, address.size() - 1);
... |
ServiceBuilder<SingleSignOnManagerFactory> build(ServiceTarget target, ServiceName name, String serverName, String hostName);
/*
* 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
* distributi... | ServiceBuilder<SingleSignOnManagerFactory> build(ServiceTarget target, ServiceName name, String serverName, String hostName);
/*
* 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
* distributi... |
private static long readUint64(final DataInput in) throws IOException {
// long rather than int as it might get shifted beyond the range of an int
long firstByte = in.readUnsignedByte();
int mask = 0x80;
long value = 0;
for (int i = 0; i < 8; i++) {
if ((firstByte... | private static long readUint64(final DataInput in) throws IOException {
// long rather than int as it might get shifted beyond the range of an int
long firstByte = in.readUnsignedByte();
int mask = 0x80;
long value = 0;
for (int i = 0; i < 8; i++) {
if ((firstByte... |
public Object getValueAndReset() {
Long collectionCountP = _gcBean.getCollectionCount();
Long collectionTimeP = _gcBean.getCollectionTime();
Map ret = null;
if(_collectionCount!=null && _collectionTime!=null) {
ret = new HashMap();
... | public Object getValueAndReset() {
Long collectionCountP = _gcBean.getCollectionCount();
Long collectionTimeP = _gcBean.getCollectionCount();
Map ret = null;
if(_collectionCount!=null && _collectionTime!=null) {
ret = new HashMap();
... |
@Message(id = 13403, value = "There were problems during the transformation process for target host: '%s' %nProblems found: %n%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
* distr... | @Message(id = 13403, value = "There were problems during the transformation process for target host: '%s' %nProblems found: %n%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
* distr... |
private void reject(RejectAttributeChecker checker, String attributeName, ModelNode attributeValue) {
assert checker.getRejectionLogMessageId() != null : "Null log id";
final String id = checker.getRejectionLogMessageId();
if (failedCheckers == null) {
failedCheckers = new HashMa... | private void reject(RejectAttributeChecker checker, String attributeName, ModelNode attributeValue) {
assert checker.getRejectionLogMessageId() != null : "Null log id";
final String id = checker.getRejectionLogMessageId();
if (failedCheckers == null) {
failedCheckers = new HashMa... |
public Object createTarget(TypeDescriptor targetType) {
return BeanUtils.instantiate(targetType.getType());
}
}
| public Object createTarget(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
return BeanUtils.instantiate(targetType.getType());
}
}
|
public Object createTarget(TypeDescriptor targetType);
}
| public Object createTarget(Object source, TypeDescriptor sourceType, TypeDescriptor targetType);
}
|
public void registerChildren(ManagementResourceRegistration resourceRegistration) {
super.registerChildren(resourceRegistration);
resourceRegistration.registerSubModel(StateTransferResource.INSTANCE);
}
| public void registerChildren(ManagementResourceRegistration resourceRegistration) {
super.registerChildren(resourceRegistration);
resourceRegistration.registerSubModel(new StateTransferResource());
}
|
public String replace(Object source) {
Object result = replaceObject(source);
return (result == null) ? null : result.toString();
}
| public String replace(Object source) {
Object result = replaceObject(source);
return result == null ? null : result.toString();
}
|
private ModelControllerClient getControllerClient() throws UnknownHostException {
return ModelControllerClient.Factory.create(System.getProperty("node0", "127.0.0.1"), 9999);
}
| private ModelControllerClient getControllerClient() throws UnknownHostException {
return ModelControllerClient.Factory.create("http-remoting", System.getProperty("node0", "127.0.0.1"), 9990);
}
|
public static final SimpleAttributeDefinition PARTITION =
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.PARTITION, ModelType.STRING, true)
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.setDefault... | public static final SimpleAttributeDefinition PARTITION =
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.PARTITION, ModelType.STRING, true)
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.setDefault... |
public void afterTest() throws Exception {
// undeploy helper servlets
cli.sendLine("undeploy RolloutPlanTestCase.war --all-relevant-server-groups", true);
// remove socket binding
cli.sendLine("/socket-binding-group=standard-sockets/socket-binding=test-binding:remove", true);
... | public void afterTest() throws Exception {
// undeploy helper servlets
cli.sendLine("undeploy RolloutPlanTestCase.war --all-relevant-server-groups", true);
// remove socket binding
cli.sendLine("/socket-binding-group=standard-sockets/socket-binding=test-binding:remove(){allow-resou... |
public void initialize(final ExtensionContext context) {
WeldLogger.ROOT_LOGGER.debug("Activating Weld Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION,
MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSI... | public void initialize(final ExtensionContext context) {
WeldLogger.ROOT_LOGGER.debug("Activating Weld Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION,
MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSI... |
public synchronized void start(final StartContext context) throws StartException {
server = new RemotingConnectorServer(mBeanServer.getValue(), endpoint.getValue());
try {
server.start();
} catch (IOException e) {
throw new StartException(e);
}
}
| public synchronized void start(final StartContext context) throws StartException {
server = new RemotingConnectorServer(mBeanServer.getValue(), endpoint.getValue(), new ServerInterceptorFactory());
try {
server.start();
} catch (IOException e) {
throw new StartExcepti... |
protected void removeSubscriptionInternal(String sessionId, String subsId, Message<?> message) {
SessionSubscriptionInfo info = this.subscriptionRegistry.getSubscriptions(sessionId);
if (info != null) {
String destination = info.removeSubscription(subsId);
if (destination != null && info.getSubscriptions(des... | protected void removeSubscriptionInternal(String sessionId, String subsId, Message<?> message) {
SessionSubscriptionInfo info = this.subscriptionRegistry.getSubscriptions(sessionId);
if (info != null) {
String destination = info.removeSubscription(subsId);
if (destination != null) {
this.destinationCache... |
private void addPersistenceProviderModuleDependencies(DeploymentPhaseContext phaseContext, ModuleSpecification moduleSpecification, ModuleLoader moduleLoader) throws
DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
int defaultP... | private void addPersistenceProviderModuleDependencies(DeploymentPhaseContext phaseContext, ModuleSpecification moduleSpecification, ModuleLoader moduleLoader) throws
DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
int defaultP... |
public void send(Message<?> message) {
SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor.wrap(message);
String destination = headers.getDestination();
destination = (destination != null) ? destination : getRequiredDefaultDestination();
doSend(getRequiredDefaultDestination(), message);
}
| public void send(Message<?> message) {
SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor.wrap(message);
String destination = headers.getDestination();
destination = (destination != null) ? destination : getRequiredDefaultDestination();
doSend(destination, message);
}
|
public void configure(final DeploymentPhaseContext context, final ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
configuration.addTimeoutInterceptor(TimerCMTTxInterceptor.FACTORY, InterceptorOrder.Component.TIM... | public void configure(final DeploymentPhaseContext context, final ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
configuration.addTimeoutInterceptor(TimerCMTTxInterceptor.FACTORY, InterceptorOrder.Component.COM... |
public TransformedOperation transformOperation(final TransformationContext ctx, final PathAddress address, final ModelNode operation) throws OperationFailedException {
if(discardPolicy.discard(operation, address, ctx)) {
return OperationTransformer.DISCARD.transformOperat... | public TransformedOperation transformOperation(final TransformationContext ctx, final PathAddress address, final ModelNode operation) throws OperationFailedException {
if(discardPolicy.discard(operation, address, ctx)) {
return OperationTransformer.DISCARD.transformOperat... |
public static void deploy(ModelNode deploymentModel, NewOperationContext context, ResultHandler resultHandler,
ModelNode compensatingOp) {
if (context instanceof NewRuntimeOperationContext) {
NewRuntimeOperationContext updateContext = (NewRuntimeOperationContext) context;
... | public static void deploy(ModelNode deploymentModel, NewOperationContext context, ResultHandler resultHandler,
ModelNode compensatingOp) {
if (context instanceof NewRuntimeOperationContext) {
NewRuntimeOperationContext updateContext = (NewRuntimeOperationContext) context;
... |
private void redeploy(ModelNode model, NewOperationContext context, ResultHandler resultHandler,
ModelNode compensatingOp) {
if (context instanceof NewRuntimeOperationContext) {
NewRuntimeOperationContext updateContext = (NewRuntimeOperationContext) context;
String deploy... | private void redeploy(ModelNode model, NewOperationContext context, ResultHandler resultHandler,
ModelNode compensatingOp) {
if (context instanceof NewRuntimeOperationContext) {
NewRuntimeOperationContext updateContext = (NewRuntimeOperationContext) context;
String deploy... |
private void undeploy(ModelNode model, NewOperationContext context, ResultHandler resultHandler,
ModelNode compensatingOp) {
if (context instanceof NewRuntimeOperationContext) {
NewRuntimeOperationContext updateContext = (NewRuntimeOperationContext) context;
String deploy... | private void undeploy(ModelNode model, NewOperationContext context, ResultHandler resultHandler,
ModelNode compensatingOp) {
if (context instanceof NewRuntimeOperationContext) {
NewRuntimeOperationContext updateContext = (NewRuntimeOperationContext) context;
String deploy... |
private AdvancedUserSearchResourceDefintion() {
super(UserSearchType.ADVANCED_FILTER,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.user-search.advanced-filter"),
new SecurityRealmChildAddHandler(false, ATTRIBUTE_DEFINITIONS), new SecurityR... | private AdvancedUserSearchResourceDefintion() {
super(UserSearchType.ADVANCED_FILTER,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.user-search.advanced-filter"),
new SecurityRealmChildAddHandler(false, false, ATTRIBUTE_DEFINITIONS), new Se... |
private GroupToPrincipalResourceDefinition() {
super(GroupSearchType.GROUP_TO_PRINCIPAL,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.group-search.group-to-principal"),
new SecurityRealmChildAddHandler(false, ATTRIBUTE_DEFINITIONS), new Se... | private GroupToPrincipalResourceDefinition() {
super(GroupSearchType.GROUP_TO_PRINCIPAL,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.group-search.group-to-principal"),
new SecurityRealmChildAddHandler(false, false, ATTRIBUTE_DEFINITIONS),... |
public JaasAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.JAAS),
ControllerResolver.getResolver("core.management.security-realm.authentication.jaas"),
new SecurityRealmChildAddHandler(true... | public JaasAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.JAAS),
ControllerResolver.getResolver("core.management.security-realm.authentication.jaas"),
new SecurityRealmChildAddHandler(true... |
public LocalAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.LOCAL),
ControllerResolver.getResolver("core.management.security-realm.authentication.local"),
new SecurityRealmChildAddHandler(t... | public LocalAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.LOCAL),
ControllerResolver.getResolver("core.management.security-realm.authentication.local"),
new SecurityRealmChildAddHandler(t... |
public PlugInAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authentication.plug-in"),
new SecurityRealmChildAddHand... | public PlugInAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authentication.plug-in"),
new SecurityRealmChildAddHand... |
public PlugInAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authorization.plug-in"),
new SecurityRealmChildAddHandler... | public PlugInAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authorization.plug-in"),
new SecurityRealmChildAddHandler... |
public PlugInResourceDefinition() {
super(PathElement.pathElement(PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.plug-in"),
new SecurityRealmChildAddHandler(true),
new SecurityRealmChildRemoveHandler(true), OperationEntry.Flag.RESTART... | public PlugInResourceDefinition() {
super(PathElement.pathElement(PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.plug-in"),
new SecurityRealmChildAddHandler(false, false),
new SecurityRealmChildRemoveHandler(true), OperationEntry.Flag... |
private PrincipalToGroupResourceDefinition() {
super(GroupSearchType.PRINCIPAL_TO_GROUP,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.group-search.principal-to-group"),
new SecurityRealmChildAddHandler(false, ATTRIBUTE_DEFINITIONS), new Se... | private PrincipalToGroupResourceDefinition() {
super(GroupSearchType.PRINCIPAL_TO_GROUP,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.group-search.principal-to-group"),
new SecurityRealmChildAddHandler(false, false, ATTRIBUTE_DEFINITIONS),... |
public PropertiesAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authentication.properties"),
new SecurityRealmCh... | public PropertiesAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authentication.properties"),
new SecurityRealmCh... |
public PropertiesAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authorization.properties"),
new SecurityRealmChild... | public PropertiesAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authorization.properties"),
new SecurityRealmChild... |
public PropertyResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.PROPERTY),
ControllerResolver.getResolver("core.management.security-realm.property"),
new SecurityRealmChildAddHandler(true, VALUE),
new SecurityRealmChildRemoveHandl... | public PropertyResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.PROPERTY),
ControllerResolver.getResolver("core.management.security-realm.property"),
new SecurityRealmChildAddHandler(true, false, VALUE),
new SecurityRealmChildRemo... |
public SSLServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SSL),
ControllerResolver.getResolver("core.management.security-realm.server-identity.ssl"),
new SecurityRealmChildAddHandler(false... | public SSLServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SSL),
ControllerResolver.getResolver("core.management.security-realm.server-identity.ssl"),
new SecurityRealmChildAddHandler(false... |
public SecretServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SECRET),
ControllerResolver.getResolver("core", "management", "security-realm", "server-identity", "secret"),
new SecurityRealm... | public SecretServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SECRET),
ControllerResolver.getResolver("core", "management", "security-realm", "server-identity", "secret"),
new SecurityRealm... |
public TruststoreAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.TRUSTSTORE),
ControllerResolver.getResolver("core.management.security-realm.authentication.truststore"),
new SecurityRealmCh... | public TruststoreAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.TRUSTSTORE),
ControllerResolver.getResolver("core.management.security-realm.authentication.truststore"),
new SecurityRealmCh... |
private UserIsDnResourceDefintion() {
super(UserSearchType.USERNAME_IS_DN,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.user-search.username-to-dn"),
new SecurityRealmChildAddHandler(false, ATTRIBUTE_DEFINITIONS), new SecurityRealmChildRemoveH... | private UserIsDnResourceDefintion() {
super(UserSearchType.USERNAME_IS_DN,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.user-search.username-to-dn"),
new SecurityRealmChildAddHandler(false, false, ATTRIBUTE_DEFINITIONS), new SecurityRealmChild... |
private UserSearchResourceDefintion() {
super(UserSearchType.USERNAME_FILTER,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.user-search.username-filter"),
new SecurityRealmChildAddHandler(false, ATTRIBUTE_DEFINITIONS), new SecurityRealmChil... | private UserSearchResourceDefintion() {
super(UserSearchType.USERNAME_FILTER,
ControllerResolver.getResolver("core.management.security-realm.authorization.ldap.user-search.username-filter"),
new SecurityRealmChildAddHandler(false, false, ATTRIBUTE_DEFINITIONS), new SecurityRe... |
public XmlAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS),
ControllerResolver.getResolver("core.management.security-realm.authentication.xml"),
new SecurityRealmChildAddHandler(true)... | public XmlAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS),
ControllerResolver.getResolver("core.management.security-realm.authentication.xml"),
new SecurityRealmChildAddHandler(true,... |
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
ModelNode opAddr = operation.get(OP_ADDR);
PathAddress address = PathAddress.pathAddress(opAddr);
String name ... | public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
ModelNode opAddr = operation.get(OP_ADDR);
PathAddress address = PathAddress.pathAddress(opAddr);
String name ... |
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
String name = operation.require(NAME).asString();
String runtimeName = operation.hasDefined(RUNTIME_NAME) ? operation.... | public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
String name = operation.require(NAME).asString();
String runtimeName = operation.hasDefined(RUNTIME_NAME) ? operation.... |
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
ModelNode opAddr = operation.get(OP_ADDR);
PathAddress address = PathAddress.pathAddress(opAddr);
String name ... | public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
ModelNode opAddr = operation.get(OP_ADDR);
PathAddress address = PathAddress.pathAddress(opAddr);
String name ... |
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
String name = operation.require(NAME).asString();
String runtimeName = operation.hasDefined(RUNTIME_NAME) ? operation.... | public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
validator.validate(operation);
String name = operation.require(NAME).asString();
String runtimeName = operation.hasDefined(RUNTIME_NAME) ? operation.... |
public ModuleSpec getModuleSpec() throws ModuleLoadException {
if (moduleSpec != null)
return moduleSpec;
if (startException != null)
throw new ModuleLoadException(startException.getCause());
try {
log.tracef("waiting for: %s", ... | public ModuleSpec getModuleSpec() throws ModuleLoadException {
if (moduleSpec != null)
return moduleSpec;
if (startException != null)
throw new ModuleLoadException(startException.getCause());
try {
log.tracef("waiting for: %s", ... |
private void recordControllerOperation(ModelNode operation) {
controllerOperations.add(operation);
}
| private void recordControllerOperation(ModelNode operation) {
controllerOperations.add(operation.clone()); // clone so we don't log op nodes mutated during execution
}
|
public String nysiis(String str) {
if (str == null) {
return null;
}
// Use the same clean rules as Soundex
str = SoundexUtils.clean(str);
if (str.length() == 0) {
return str;
}
// Translate first characters of name:
// MAC -... | public String nysiis(String str) {
if (str == null) {
return null;
}
// Use the same clean rules as Soundex
str = SoundexUtils.clean(str);
if (str.length() == 0) {
return str;
}
// Translate first characters of name:
// MAC -... |
public String soundex(String str) {
if (str == null) {
return null;
}
str = SoundexUtils.clean(str);
if (str.length() == 0) {
return str;
}
StringBuffer sBuf = new StringBuffer();
sBuf.append(str.charAt(0));
char last, current... | public String soundex(String str) {
if (str == null) {
return null;
}
str = SoundexUtils.clean(str);
if (str.length() == 0) {
return str;
}
StringBuilder sBuf = new StringBuilder();
sBuf.append(str.charAt(0));
char last, curre... |
protected String encodeText(final String text, final Charset charset)
throws EncoderException
{
if (text == null) {
return null;
}
StringBuffer buffer = new StringBuffer();
buffer.append(PREFIX);
buffer.append(charset);
buffer.append(SEP);
... | protected String encodeText(final String text, final Charset charset)
throws EncoderException
{
if (text == null) {
return null;
}
StringBuilder buffer = new StringBuilder();
buffer.append(PREFIX);
buffer.append(charset);
buffer.append(SEP);
... |
private BufferPoolRootResourceDefinition() {
super(PlatformMBeanConstants.BUFFER_POOL_PATH,
PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.BUFFER_POOL));
}
| private BufferPoolRootResourceDefinition() {
super(PlatformMBeanConstants.BUFFER_POOL_PATH,
PlatformMBeanUtil.getResolver(PlatformMBeanConstants.BUFFER_POOL));
}
|
private GarbageCollectorRootResourceDefinition() {
super(PlatformMBeanConstants.GARBAGE_COLLECTOR_PATH,
PlatformMBeanDescriptions.getResolver("garbage-collectors"));
}
| private GarbageCollectorRootResourceDefinition() {
super(PlatformMBeanConstants.GARBAGE_COLLECTOR_PATH,
PlatformMBeanUtil.getResolver("garbage-collectors"));
}
|
public static final MemoryMXBeanGCHandler INSTANCE = new MemoryMXBeanGCHandler();
static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(PlatformMBeanConstants.GC, PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.MEMORY))
.setRuntimeOnly()
| public static final MemoryMXBeanGCHandler INSTANCE = new MemoryMXBeanGCHandler();
static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(PlatformMBeanConstants.GC, PlatformMBeanUtil.getResolver(PlatformMBeanConstants.MEMORY))
.setRuntimeOnly()
|
private MemoryManagerRootResourceDefinition() {
super(PlatformMBeanConstants.MEMORY_MANAGER_PATH,
PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.MEMORY_MANAGER));
}
| private MemoryManagerRootResourceDefinition() {
super(PlatformMBeanConstants.MEMORY_MANAGER_PATH,
PlatformMBeanUtil.getResolver(PlatformMBeanConstants.MEMORY_MANAGER));
}
|
private MemoryPoolRootResourceDefinition() {
super(PlatformMBeanConstants.MEMORY_POOL_PATH,
PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.MEMORY_POOL));
}
| private MemoryPoolRootResourceDefinition() {
super(PlatformMBeanConstants.MEMORY_POOL_PATH,
PlatformMBeanUtil.getResolver(PlatformMBeanConstants.MEMORY_POOL));
}
|
private RuntimeResourceDefinition() {
super(RUNTIME_PATH,
PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.RUNTIME));
}
| private RuntimeResourceDefinition() {
super(RUNTIME_PATH,
PlatformMBeanUtil.getResolver(PlatformMBeanConstants.RUNTIME));
}
|
public void convertAndSendNoMatchingConverter() {
MessageConverter converter = new CompositeMessageConverter(
Arrays.asList(new MappingJackson2MessageConverter()), new DefaultContentTypeResolver());
this.template.setMessageConverter(converter);
this.headers.put(MessageHeaders.CONTENT_TYPE, MimeTypeUtils.AP... | public void convertAndSendNoMatchingConverter() {
MessageConverter converter = new CompositeMessageConverter(
Arrays.<MessageConverter>asList(new MappingJackson2MessageConverter()), new DefaultContentTypeResolver());
this.template.setMessageConverter(converter);
this.headers.put(MessageHeaders.CONTENT_TYPE... |
public void clientInboundChannelCustomized() {
AbstractSubscribableChannel channel = this.customContext.getBean(
"clientInboundChannel", AbstractSubscribableChannel.class);
assertEquals(1, channel.getInterceptors().size());
ThreadPoolTaskExecutor taskExecutor = this.customContext.getBean(
"clientInboun... | public void clientInboundChannelCustomized() {
AbstractSubscribableChannel channel = this.customContext.getBean(
"clientInboundChannel", AbstractSubscribableChannel.class);
assertEquals(2, channel.getInterceptors().size());
ThreadPoolTaskExecutor taskExecutor = this.customContext.getBean(
"clientInboun... |
package org.apache.commons.collections4;
/*
* 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, Ve... | package org.apache.commons.collections4;
/*
* 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, Ve... |
@Target({ElementType.METHOD, ElementType.FIELD})
package org.springframework.ui.binding;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD... | @Target({ElementType.METHOD, ElementType.FIELD})
package org.springframework.ui.binding;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD... |
boolean strictBinding() default false;
package org.springframework.ui.binding;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE})
@Retentio... | boolean strictBinding() default false;
package org.springframework.ui.binding;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE})
@Retentio... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentClassIndex classIndex = deploymentUnit.getAttachment(Attachments.CLASS_INDEX);
final Module module... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentClassIndex classIndex = deploymentUnit.getAttachment(Attachments.CLASS_INDEX);
final Module module... |
private static void reportFailedResults(Method mathMethod, Object[] params, Object expected, Object actual, int[] entries){
final String methodName = mathMethod.getName();
String format = null;
long actL=0;
long expL=0;
if (expected instanceof Double) {
Double exp... | private static void reportFailedResults(Method mathMethod, Object[] params, Object expected, Object actual, int[] entries){
final String methodName = mathMethod.getName();
String format = null;
long actL=0;
long expL=0;
if (expected instanceof Double) {
Double exp... |
public void testAspectsAndAdvisorNotAppliedToPrototypeIsFastEnough() {
if (factoryLog.isTraceEnabled() || factoryLog.isDebugEnabled()) {
// Skip this test: Trace logging blows the time limit.
return;
}
ClassPathXmlApplicationContext ac = newContext("aspectsPlusAdvisor.xml");
StopWatch sw = new StopWatch(... | public void testAspectsAndAdvisorNotAppliedToPrototypeIsFastEnough() {
if (factoryLog.isTraceEnabled() || factoryLog.isDebugEnabled()) {
// Skip this test: Trace logging blows the time limit.
return;
}
ClassPathXmlApplicationContext ac = newContext("aspectsPlusAdvisor.xml");
StopWatch sw = new StopWatch(... |
public int[] batchUpdate(String sql, SqlParameterSource[] batchArgs) {
ParsedSql parsedSql = this.getParsedSql(sql);
return NamedParameterBatchUpdateUtils.executeBatchUpdateWithNamedParameters(parsedSql, batchArgs, getJdbcOperations());
}
| public int[] batchUpdate(String sql, SqlParameterSource[] batchArgs) {
ParsedSql parsedSql = getParsedSql(sql);
return NamedParameterBatchUpdateUtils.executeBatchUpdateWithNamedParameters(parsedSql, batchArgs, getJdbcOperations());
}
|
public static ServiceController<NewModelController> addService(final ServiceTarget serviceTarget,
final HostControllerEnvironment environment,
final ControlledProcessState processState) {
... | public static ServiceController<NewModelController> addService(final ServiceTarget serviceTarget,
final HostControllerEnvironment environment,
final ControlledProcessState processState) {
... |
public static String reverse(String str) {
if (str == null) {
return null;
}
return CharSequenceUtils.reverse(str).toString();
}
| public static String reverse(String str) {
if (str == null) {
return null;
}
return new StringBuilder(str).reverse().toString();
}
|
private File touch(File file) {
long lastModified = file.exists() ? file.lastModified() : 0;
try {
FileUtils.touch(file);
file = new File(file.getParent(), file.getName());
while (lastModified == file.lastModified()) {
try {
Thr... | private File touch(File file) {
long lastModified = file.exists() ? file.lastModified() : 0;
try {
FileUtils.touch(file);
file = new File(file.getParent(), file.getName());
while (lastModified == file.lastModified()) {
try {
Thr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.