buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public ArgumentOutsideDomainException(double argument, double lower, double upper) {
super(argument,
"Argument {0} outside domain [{1} ; {2}]",
new Object[] { new Double(argument), new Double(lower), new Double(upper) });
}
| public ArgumentOutsideDomainException(double argument, double lower, double upper) {
super(argument,
"Argument {0} outside domain [{1} ; {2}]",
new Object[] { Double.valueOf(argument), Double.valueOf(lower), Double.valueOf(upper) });
}
|
public DimensionMismatchException(int dimension1, int dimension2) {
super("dimension mismatch {0} != {1}",
new Object[] {
new Integer(dimension1), new Integer(dimension2)
});
this.dimension1 = dimension1;
this.dimension2 = dimension2;
}
| public DimensionMismatchException(int dimension1, int dimension2) {
super("dimension mismatch {0} != {1}",
new Object[] {
Integer.valueOf(dimension1), Integer.valueOf(dimension2)
});
this.dimension1 = dimension1;
this.dimension2 = dimension2;
}... |
public DuplicateSampleAbscissaException(double abscissa, int i1, int i2) {
super("Abscissa {0} is duplicated at both indices {1} and {2}",
new Object[] { new Double(abscissa), new Integer(i1), new Integer(i2) });
}
| public DuplicateSampleAbscissaException(double abscissa, int i1, int i2) {
super("Abscissa {0} is duplicated at both indices {1} and {2}",
new Object[] { Double.valueOf(abscissa), Integer.valueOf(i1), Integer.valueOf(i2) });
}
|
public MaxIterationsExceededException(int maxIterations) {
super("Maximal number of iterations ({0}) exceeded",
new Object[] { new Integer(maxIterations) });
this.maxIterations = maxIterations;
}
| public MaxIterationsExceededException(int maxIterations) {
super("Maximal number of iterations ({0}) exceeded",
new Object[] { Integer.valueOf(maxIterations) });
this.maxIterations = maxIterations;
}
|
public double transform(Object o) throws MathException{
if (o == null) {
throw new MathException("Conversion Exception in Transformation, Object is null", new Object[0]);
}
if (o instanceof Number) {
return ((Number)o).doubleValue();
}
t... | public double transform(Object o) throws MathException{
if (o == null) {
throw new MathException("Conversion Exception in Transformation, Object is null", new Object[0]);
}
if (o instanceof Number) {
return ((Number)o).doubleValue();
}
t... |
public void testEqualsAndHashCode() {
StatisticalSummaryValues u = new StatisticalSummaryValues(1, 2, 3, 4, 5, 6);
StatisticalSummaryValues t = null;
assertTrue("reflexive", u.equals(u));
assertFalse("non-null compared to null", u.equals(t));
assertFalse("wrong type", u.equa... | public void testEqualsAndHashCode() {
StatisticalSummaryValues u = new StatisticalSummaryValues(1, 2, 3, 4, 5, 6);
StatisticalSummaryValues t = null;
assertTrue("reflexive", u.equals(u));
assertFalse("non-null compared to null", u.equals(t));
assertFalse("wrong type", u.equa... |
public interface TransactionLogger extends BasicLogger {
/*
* 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 ... | public interface TransactionLogger extends BasicLogger {
/*
* 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 ... |
public interface TransactionMessages {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can ... | public interface TransactionMessages {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can ... |
public static WSRefRegistry getWSRefRegistry(final DeploymentUnit unit) {
WSRefRegistry refRegistry = unit.getAttachment(WSAttachmentKeys.WS_REFREGISTRY);
if (refRegistry == null) {
refRegistry = refRegistry.newInstance();
unit.putAttachment(WSAttachmentKeys.WS_REFREGISTRY, r... | public static WSRefRegistry getWSRefRegistry(final DeploymentUnit unit) {
WSRefRegistry refRegistry = unit.getAttachment(WSAttachmentKeys.WS_REFREGISTRY);
if (refRegistry == null) {
refRegistry = WSRefRegistry.newInstance();
unit.putAttachment(WSAttachmentKeys.WS_REFREGISTRY,... |
Object deserialize(byte[] b);
package storm.trident.state;
import java.io.Serializable;
public interface Serializer<T> extends Serializable {
byte[] serialize(T obj);
T deserialize(byte[] b);
} | Object deserialize(byte[] b);
package storm.trident.state;
import java.io.Serializable;
public interface Serializer<T> extends Serializable {
byte[] serialize(T obj);
Object deserialize(byte[] b);
} |
public OperationOutputFactory(Factory parent, Fields selfFields) {
_parent = parent;
_fieldIndex = new HashMap(parent.getFieldIndex());
int myIndex = parent.numDelegates();
for(int i=0; i<selfFields.size(); i++) {
String field = selfFields.get(i);
... | public OperationOutputFactory(Factory parent, Fields selfFields) {
_parent = parent;
_fieldIndex = parent.getFieldIndex();
int myIndex = parent.numDelegates();
for(int i=0; i<selfFields.size(); i++) {
String field = selfFields.get(i);
... |
public void execute(NewOperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceTarget serviceTarget = context.getServiceTarget();
final ServiceVerificationHandler verificationHandler = new ServiceVerificationHandler();
... | public void execute(NewOperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceTarget serviceTarget = context.getServiceTarget();
final ServiceVerificationHandler verificationHandler = new ServiceVerificationHandler();
... |
public void execute(NewOperationContext context, ModelNode operation) throws OperationFailedException {
final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>();
final ServiceVerificationHandler verificationHandler = new Ser... | public void execute(NewOperationContext context, ModelNode operation) throws OperationFailedException {
final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>();
final ServiceVerificationHandler verificationHandler = new Ser... |
public void execute(NewOperationContext context, ModelNode operation) {
final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>();
final ServiceVerificationHandler verificationHandler = new ServiceVerificationHandler();
... | public void execute(NewOperationContext context, ModelNode operation) {
final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>();
final ServiceVerificationHandler verificationHandler = new ServiceVerificationHandler();
... |
public void setUp() throws IOException {
ArrayList<File> usersPropertyFileList = new ArrayList<File>();
ArrayList<File> rolesPropertyFileList = new ArrayList<File>();
File usersPropertyFile = File.createTempFile("UpdateUser", null);
usersPropertyFile.deleteOnExit();
File ro... | public void setUp() throws IOException {
ArrayList<File> usersPropertyFileList = new ArrayList<File>();
ArrayList<File> rolesPropertyFileList = new ArrayList<File>();
File usersPropertyFile = File.createTempFile("UpdateUser", null);
usersPropertyFile.deleteOnExit();
File ro... |
protected Resource resolveRootDirResource(Resource original) throws IOException {
if (equinoxResolveMethod != null) {
URL url = original.getURL();
if (url.getProtocol().startsWith("bundle")) {
return new UrlResource((URL) ReflectionUtils.invokeMethod(equinoxResolveMethod, null, new Object[] {url}));
}
... | protected Resource resolveRootDirResource(Resource original) throws IOException {
if (equinoxResolveMethod != null) {
URL url = original.getURL();
if (url.getProtocol().startsWith("bundle")) {
return new UrlResource((URL) ReflectionUtils.invokeMethod(equinoxResolveMethod, null, url));
}
}
return ori... |
public ModelNode getFormattedDomainResult(ModelNode resultNode) {
return resultNode;
}
}
| public ModelNode getFormattedDomainResult(ModelNode resultNode) {
return resultNode.clone();
}
}
|
private void executeTwoPhaseOperation(OperationContext context, ModelNode operation, OperationRouting routing) throws OperationFailedException {
if (HOST_CONTROLLER_LOGGER.isTraceEnabled()) {
HOST_CONTROLLER_LOGGER.trace("Executing two-phase");
}
DomainOperationContext overallCo... | private void executeTwoPhaseOperation(OperationContext context, ModelNode operation, OperationRouting routing) throws OperationFailedException {
if (HOST_CONTROLLER_LOGGER.isTraceEnabled()) {
HOST_CONTROLLER_LOGGER.trace("Executing two-phase");
}
DomainOperationContext overallCo... |
public static void initOperations(final ManagementResourceRegistration root,
final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final Ser... | public static void initOperations(final ManagementResourceRegistration root,
final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final Ser... |
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_collector = collector;
Map stateConf = new HashMap(conf);
List<String> zkServers = _spoutConfig.zkServers;
if(zkServers==null) zkServers = (List<String>) conf.get(Config.STORM_ZOOKEEPER_SERVERS);
... | public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_collector = collector;
Map stateConf = new HashMap(conf);
List<String> zkServers = _spoutConfig.zkServers;
if(zkServers==null) zkServers = (List<String>) conf.get(Config.STORM_ZOOKEEPER_SERVERS);
... |
private Object resolveProvidedArgument(MethodParameter parameter, Object... providedArgs) {
if (providedArgs == null || parameter.hasParameterAnnotations()) {
return null;
}
for (Object providedArg : providedArgs) {
if (parameter.getParameterType().isInstance(providedArg)) {
return providedArg;
}
... | private Object resolveProvidedArgument(MethodParameter parameter, Object... providedArgs) {
if (providedArgs == null) {
return null;
}
for (Object providedArg : providedArgs) {
if (parameter.getParameterType().isInstance(providedArg)) {
return providedArg;
}
}
return null;
}
|
package org.apache.commons.lang3.mutable;
/*
* 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 Licens... | package org.apache.commons.lang3.mutable;
/*
* 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 Licens... |
package org.apache.commons.lang3.text;
/*
* 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, ... | package org.apache.commons.lang3.text;
/*
* 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, ... |
package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... | package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... |
package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... | package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... |
package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... | package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... |
package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... | package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... |
package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... | package org.apache.commons.lang3.reflect.testbed;
/*
* 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 Apach... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ManagementResourceRegistration registration = deploymentUnit.getAttachment(DeploymentModelUtils.MUTABLE_REGISTRATION_ATTACH... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ManagementResourceRegistration registration = deploymentUnit.getAttachment(DeploymentModelUtils.MUTABLE_REGISTRATION_ATTACH... |
public static void activate(OperationContext context, String raName, String rarName) throws OperationFailedException {
ServiceRegistry registry = context.getServiceRegistry(true);
if (rarName.contains(ConnectorServices.RA_SERVICE_NAME_SEPARATOR)) {
rarName = rarName.substring(0, rarName... | public static void activate(OperationContext context, String raName, String rarName) throws OperationFailedException {
ServiceRegistry registry = context.getServiceRegistry(true);
if (rarName.contains(ConnectorServices.RA_SERVICE_NAME_SEPARATOR)) {
rarName = rarName.substring(0, rarName... |
public void uriTemplateVariables() {
RequestMappingKey key = new RequestMappingKey(Arrays.asList("/{path1}/{path2}"), null);
MockHttpServletRequest request = new MockHttpServletRequest("GET", "/1/2");
String lookupPath = new UrlPathHelper().getLookupPathForRequest(request);
mapping.handleMatch(key, lookupPath... | public void uriTemplateVariables() {
RequestMappingInfo key = new RequestMappingInfo(Arrays.asList("/{path1}/{path2}"), null);
MockHttpServletRequest request = new MockHttpServletRequest("GET", "/1/2");
String lookupPath = new UrlPathHelper().getLookupPathForRequest(request);
mapping.handleMatch(key, lookupPa... |
private ServerModel parseServer(final Reader reader) throws ModuleLoadException {
final XMLMapper mapper = XMLMapper.Factory.create();
registerStandardServerReaders(mapper);
try {
final List<AbstractServerModelUpdate<?>> serverUpdates = new ArrayList<AbstractServerModelUpdate<?>>... | private ServerModel parseServer(final Reader reader) throws ModuleLoadException {
final XMLMapper mapper = XMLMapper.Factory.create();
registerStandardServerReaders(mapper);
try {
final List<AbstractServerModelUpdate<?>> serverUpdates = new ArrayList<AbstractServerModelUpdate<?>>... |
public double inverseCumulativeProbability(double p) throws OutOfRangeException {
if (p < 0.0 || p > 1.0) {
throw new OutOfRangeException(p, 0.0, 1.0);
} else if (p == 0) {
return Double.NEGATIVE_INFINITY;
} else if (p == 1) {
return Double.POSITIVE_INFINI... | public double inverseCumulativeProbability(double p) throws OutOfRangeException {
if (p < 0.0 || p > 1.0) {
throw new OutOfRangeException(p, 0.0, 1.0);
} else if (p == 0) {
return 0.0;
} else if (p == 1) {
return Double.POSITIVE_INFINITY;
}
... |
public void configureDependency(final ServiceBuilder<?> serviceBuilder, ComponentStartService service) {
serviceBuilder.addDependency(appContextServiceName, NamingStore.class, appInjector);
serviceBuilder.addDependency(moduleContextServiceName, NamingStore.class, moduleInject... | public void configureDependency(final ServiceBuilder<?> serviceBuilder, ComponentStartService service) {
serviceBuilder.addDependency(appContextServiceName, NamingStore.class, appInjector);
serviceBuilder.addDependency(moduleContextServiceName, NamingStore.class, moduleInject... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
return;
}
EEModuleDescription ... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
return;
}
EEModuleDescription ... |
private void copyConfigSettingsToConsole(InputStream consoleInput, OutputStream consoleOutput) {
if(consoleInput != null)
Settings.getInstance().setInputStream(consoleInput);
if(consoleOutput != null)
Settings.getInstance().setOutputStream(consoleOutput);
Settings.ge... | private void copyConfigSettingsToConsole(InputStream consoleInput, OutputStream consoleOutput) {
if(consoleInput != null)
Settings.getInstance().setInputStream(consoleInput);
if(consoleOutput != null)
Settings.getInstance().setStdOut(consoleOutput);
Settings.getInsta... |
public TypeDescriptor(Property property) {
Assert.notNull(property, "Property must not be null");
this.resolvableType = ResolvableType.forMethodParameter(property.getMethodParameter());
this.type = this.resolvableType.resolve(Object.class);
this.annotations = nullSafeAnnotations(property.getAnnotations());
}
| public TypeDescriptor(Property property) {
Assert.notNull(property, "Property must not be null");
this.resolvableType = ResolvableType.forMethodParameter(property.getMethodParameter());
this.type = this.resolvableType.resolve(property.getType());
this.annotations = nullSafeAnnotations(property.getAnnotations()... |
public Set<E> uniqueSet() {
if (uniqueSet == null) {
uniqueSet = UnmodifiableSet.<E> decorate(map.keySet());
}
return uniqueSet;
}
| public Set<E> uniqueSet() {
if (uniqueSet == null) {
uniqueSet = UnmodifiableSet.<E> unmodifiableSet(map.keySet());
}
return uniqueSet;
}
|
public static <T> DefaultEquator<T> instance() {
return (DefaultEquator<T>) DefaultEquator.INSTANCE;
}
} | public static <T> DefaultEquator<T> defaultEquator() {
return (DefaultEquator<T>) DefaultEquator.INSTANCE;
}
} |
private transient Constructor<T> iConstructor = null;
/**
* Factory method that performs validation.
*
* @param classToInstantiate the class to instantiate, not null
* @param paramTypes the constructor parameter types
* @param args the constructor arguments
* @return a new ins... | private transient Constructor<T> iConstructor = null;
/**
* Factory method that performs validation.
*
* @param classToInstantiate the class to instantiate, not null
* @param paramTypes the constructor parameter types
* @param args the constructor arguments
* @return a new ins... |
public List<Iterator<? extends E>> getIterators() {
return UnmodifiableList.decorate(iterators);
}
| public List<Iterator<? extends E>> getIterators() {
return UnmodifiableList.unmodifiableList(iterators);
}
|
public UniqueFilterIterator(Iterator<E> iterator) {
super(iterator, UniquePredicate.getInstance());
}
| public UniqueFilterIterator(Iterator<E> iterator) {
super(iterator, UniquePredicate.uniquePredicate());
}
|
protected Bag<T> decorateBag(HashBag<T> bag, Predicate<T> predicate) {
return PredicatedBag.decorate(bag, predicate);
}
| protected Bag<T> decorateBag(HashBag<T> bag, Predicate<T> predicate) {
return PredicatedBag.predicatedBag(bag, predicate);
}
|
protected SortedBag<T> decorateBag(SortedBag<T> bag, Predicate<T> predicate) {
return PredicatedSortedBag.decorate(bag, predicate);
}
| protected SortedBag<T> decorateBag(SortedBag<T> bag, Predicate<T> predicate) {
return PredicatedSortedBag.predicatedSortedBag(bag, predicate);
}
|
protected Buffer<E> decorateCollection(Buffer<E> buffer, Predicate<E> predicate) {
return PredicatedBuffer.decorate(buffer, predicate);
}
| protected Buffer<E> decorateCollection(Buffer<E> buffer, Predicate<E> predicate) {
return PredicatedBuffer.predicatedBuffer(buffer, predicate);
}
|
protected Collection<E> decorateCollection(
Collection<E> collection, Predicate<E> predicate) {
return PredicatedCollection.decorate(collection, predicate);
}
| protected Collection<E> decorateCollection(
Collection<E> collection, Predicate<E> predicate) {
return PredicatedCollection.predicatedCollection(collection, predicate);
}
|
public Collection<E> makeObject() {
return SynchronizedCollection.decorate(new ArrayList<E>());
}
| public Collection<E> makeObject() {
return SynchronizedCollection.synchronizedCollection(new ArrayList<E>());
}
|
public void testSetPredicate() {
Iterator<E> iter = Collections.singleton((E) null).iterator();
FilterIterator<E> filterIterator = new FilterIterator<E>(iter);
filterIterator.setPredicate(truePredicate());
// this predicate matches
assertEquals(true, filterIterator.hasNext()... | public void testSetPredicate() {
Iterator<E> iter = Collections.singleton((E) null).iterator();
FilterIterator<E> filterIterator = new FilterIterator<E>(iter);
filterIterator.setPredicate(truePredicate());
// this predicate matches
assertEquals(true, filterIterator.hasNext()... |
public List<E> makeFullCollection() {
List<E> list = new ArrayList<E>();
list.addAll(Arrays.asList(getFullElements()));
return GrowthList.decorate(list);
}
| public List<E> makeFullCollection() {
List<E> list = new ArrayList<E>();
list.addAll(Arrays.asList(getFullElements()));
return GrowthList.growthList(list);
}
|
protected List<E> decorateList(List<E> list, Predicate<E> predicate) {
return PredicatedList.decorate(list, predicate);
}
| protected List<E> decorateList(List<E> list, Predicate<E> predicate) {
return PredicatedList.predicatedList(list, predicate);
}
|
public List<E> makeObject() {
return SynchronizedList.decorate(new ArrayList<E>());
}
| public List<E> makeObject() {
return SynchronizedList.synchronizedList(new ArrayList<E>());
}
|
public ListOrderedMap<K, V> makeObject() {
return (ListOrderedMap<K, V>) ListOrderedMap.decorate(new HashMap<K, V>());
}
| public ListOrderedMap<K, V> makeObject() {
return (ListOrderedMap<K, V>) ListOrderedMap.listOrderedMap(new HashMap<K, V>());
}
|
protected IterableMap<K, V> decorateMap(Map<K, V> map, Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate) {
return PredicatedMap.decorate(map, keyPredicate, valuePredicate);
}
| protected IterableMap<K, V> decorateMap(Map<K, V> map, Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate) {
return PredicatedMap.predicatedMap(map, keyPredicate, valuePredicate);
}
|
protected SortedMap<K, V> decorateMap(SortedMap<K, V> map, Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate) {
return PredicatedSortedMap.decorate(map, keyPredicate, valuePredicate);
}
| protected SortedMap<K, V> decorateMap(SortedMap<K, V> map, Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate) {
return PredicatedSortedMap.predicatedSortedMap(map, keyPredicate, valuePredicate);
}
|
public OrderedMap<K, V> makeObject() {
// need an empty singleton map, but thats not possible
// use a ridiculous fake instead to make the tests pass
return UnmodifiableOrderedMap.decorate(ListOrderedMap.decorate(new HashMap<K, V>()));
}
| public OrderedMap<K, V> makeObject() {
// need an empty singleton map, but thats not possible
// use a ridiculous fake instead to make the tests pass
return UnmodifiableOrderedMap.unmodifiableOrderedMap(ListOrderedMap.listOrderedMap(new HashMap<K, V>()));
}
|
public Set<E> makeObject() {
return MapBackedSet.decorate(new HashedMap<E, Object>());
}
| public Set<E> makeObject() {
return MapBackedSet.mapBackedSet(new HashedMap<E, Object>());
}
|
public Set<E> makeObject() {
return MapBackedSet.decorate(new LinkedMap<E, Object>());
}
| public Set<E> makeObject() {
return MapBackedSet.mapBackedSet(new LinkedMap<E, Object>());
}
|
protected PredicatedSet<E> decorateSet(Set<E> set, Predicate<? super E> predicate) {
return (PredicatedSet<E>) PredicatedSet.decorate(set, predicate);
}
| protected PredicatedSet<E> decorateSet(Set<E> set, Predicate<? super E> predicate) {
return (PredicatedSet<E>) PredicatedSet.predicatedSet(set, predicate);
}
|
public Set<E> makeObject() {
return SynchronizedSet.decorate(new HashSet<E>());
}
| public Set<E> makeObject() {
return SynchronizedSet.synchronizedSet(new HashSet<E>());
}
|
public SortedSet<E> makeObject() {
return SynchronizedSortedSet.decorate(new TreeSet<E>());
}
| public SortedSet<E> makeObject() {
return SynchronizedSortedSet.synchronizedSortedSet(new TreeSet<E>());
}
|
protected void setUp() throws Exception {
super.setUp();
backingMap = new HashMap<String, Integer>();
transformedMap = TransformedMap.decorate(backingMap, NOPTransformer.<String> getInstance(),
stringToInt);
for (int i = 0; i < 10; i++) {
transformedMap.pu... | protected void setUp() throws Exception {
super.setUp();
backingMap = new HashMap<String, Integer>();
transformedMap = TransformedMap.transformingMap(backingMap, NOPTransformer.<String> nopTransformer(),
stringToInt);
for (int i = 0; i < 10; i++) {
transfo... |
public void testCircleFitting() {
Circle circle = new Circle();
circle.addPoint( 30.0, 68.0);
circle.addPoint( 50.0, -6.0);
circle.addPoint(110.0, -20.0);
circle.addPoint( 35.0, 15.0);
circle.addPoint( 45.0, 97.0);
NonLinearConjugateGradientOptimizer under... | public void testCircleFitting() {
Circle circle = new Circle();
circle.addPoint( 30.0, 68.0);
circle.addPoint( 50.0, -6.0);
circle.addPoint(110.0, -20.0);
circle.addPoint( 35.0, 15.0);
circle.addPoint( 45.0, 97.0);
NonLinearConjugateGradientOptimizer under... |
public void testRosenbrock() {
Rosenbrock rosenbrock = new Rosenbrock();
SimplexOptimizer underlying
= new SimplexOptimizer(new SimpleScalarValueChecker(-1, 1.0e-3));
NelderMeadSimplex simplex = new NelderMeadSimplex(new double[][] {
{ -1.2, 1.0 }, { 0.9, 1.2 } ,... | public void testRosenbrock() {
Rosenbrock rosenbrock = new Rosenbrock();
SimplexOptimizer underlying
= new SimplexOptimizer(new SimpleValueChecker(-1, 1.0e-3));
NelderMeadSimplex simplex = new NelderMeadSimplex(new double[][] {
{ -1.2, 1.0 }, { 0.9, 1.2 } , { 3.... |
package org.jboss.as.testsuite.integration.ws.tools.jbws3207.service;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, 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 contributor... | package org.jboss.as.testsuite.integration.ws.tools.jbws3207.service;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, 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 contributor... |
public static String execute(File cliConfigFile, String operation, String controller, boolean logFailure) {
String cliOutput;
String jbossDist = System.getProperty("jboss.dist");
if (jbossDist == null) {
fail("jboss.dist system property is not set");
}
final Stri... | public static String execute(File cliConfigFile, String operation, String controller, boolean logFailure) {
String cliOutput;
String jbossDist = System.getProperty("jboss.dist");
if (jbossDist == null) {
fail("jboss.dist system property is not set");
}
final Stri... |
private void failDueToRunning() throws LifecycleException {
throw new LifecycleException("The server is already running! "
+ "Managed containers does not support connecting to running server instances due to the "
+ "possible harmful effect of connecting to the wrong server. ... | private void failDueToRunning() throws LifecycleException {
throw new LifecycleException("The server is already running! "
+ "Managed containers do not support connecting to running server instances due to the "
+ "possible harmful effect of connecting to the wrong server. Pl... |
private void failDueToRunning() throws LifecycleException {
throw new LifecycleException(
"The server is already running! " +
"Managed containers does not support connecting to running server instances due to the " +
"possible harmful effect of... | private void failDueToRunning() throws LifecycleException {
throw new LifecycleException(
"The server is already running! " +
"Managed containers do not support connecting to running server instances due to the " +
"possible harmful effect of c... |
public TopologyContext(StormTopology topology, Map stormConf,
Map<Integer, String> taskToComponent, String stormId,
String codeDir, String pidDir, Integer taskId,
Integer workerPort, List<Integer> workerTasks) {
super(topology, stormConf, taskToComponent, stormId, codeDir... | public TopologyContext(StormTopology topology, Map stormConf,
Map<Integer, String> taskToComponent, String stormId,
String codeDir, String pidDir, Integer taskId,
Integer workerPort, List<Number> workerTasks) {
super(topology, stormConf, taskToComponent, stormId, codeDir,... |
public void setCalendar(FastDateParser parser, Calendar cal, String value) {
TimeZone tz;
if(value.charAt(0)=='+' || value.charAt(0)=='-') {
tz= TimeZone.getTimeZone("GMT"+value);
}
else if(value.startsWith("GMT")) {
tz= TimeZone.ge... | public void setCalendar(FastDateParser parser, Calendar cal, String value) {
TimeZone tz;
if(value.charAt(0)=='+' || value.charAt(0)=='-') {
tz= TimeZone.getTimeZone("GMT"+value);
}
else if(value.startsWith("GMT")) {
tz= TimeZone.ge... |
private void addDepdenency(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier) {
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, moduleIdentifier, false, false, true));
}
| private void addDepdenency(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier) {
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, moduleIdentifier, false, false, true, false));
}
|
protected AbstractModelElement() {
assert getClass() == getElementClass();
}
| protected AbstractModelElement() {
//assert getClass() == getElementClass() : ""+getClass() + " != " + getElementClass();
}
|
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... |
protected static final SimpleAttributeDefinition PREFIX =
new SimpleAttributeDefinitionBuilder(Constants.PREFIX, ModelType.STRING, true)
.setXmlName(Constants.PREFIX)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setDefaultValue(new Mod... | protected static final SimpleAttributeDefinition PREFIX =
new SimpleAttributeDefinitionBuilder(Constants.PREFIX, ModelType.STRING, true)
.setXmlName(Constants.PREFIX)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setDefaultValue(new Mod... |
public interface BoundedCollection<E> extends Collection<E> {
/*
* 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 und... | public interface BoundedCollection<E> extends Collection<E> {
/*
* 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 und... |
public void testSimpleSerialization() throws Exception {
Object o = makeObject();
if (o instanceof Serializable && isTestSerialization()) {
byte[] objekt = writeExternalFormToBytes((Serializable) o);
Object p = readExternalFormFromBytes(objekt);
}
}
| public void testSimpleSerialization() throws Exception {
Object o = makeObject();
if (o instanceof Serializable && isTestSerialization()) {
byte[] objekt = writeExternalFormToBytes((Serializable) o);
readExternalFormFromBytes(objekt);
}
}
|
public static OperationDefinition SERVER_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
.setParameters(new AttributeDefinition[] { RUNTIME_NAME, CONTENT_ALL, ENABLED, /*PERSISTENT,*/ STATUS}) // 'hide' the persistent attribute from us... | public static OperationDefinition SERVER_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
.setParameters(new AttributeDefinition[] { RUNTIME_NAME, CONTENT_ALL, ENABLED, /*PERSISTENT,*/}) // 'hide' the persistent attribute from users
... |
private static final long serialVersionUID = 3148478338698997486L;
public static final AttachmentKey<JBossServiceXmlDescriptor> ATTACHMENT_KEY = AttachmentKey.create(JBossServiceXmlDescriptor.class);
| private static final long serialVersionUID = 3148478338698997486L;
public static final AttachmentKey<JBossServiceXmlDescriptor> ATTACHMENT_KEY = new AttachmentKey<JBossServiceXmlDescriptor>(JBossServiceXmlDescriptor.class);
|
private void addIncludePatterns(Element element, ParserContext parserContext, BeanDefinition beanDef) {
ManagedList<TypedStringValue> includePatterns = new ManagedList<TypedStringValue>();
NodeList childNodes = element.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node node = childNodes.... | private void addIncludePatterns(Element element, ParserContext parserContext, BeanDefinition beanDef) {
ManagedList<TypedStringValue> includePatterns = new ManagedList<TypedStringValue>();
NodeList childNodes = element.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node node = childNodes.... |
public void testSerializability() throws Exception {
MutablePropertyValues tsPvs = new MutablePropertyValues();
tsPvs.addPropertyValue("targetBeanName", "person");
RootBeanDefinition tsBd = new RootBeanDefinition(TestTargetSource.class, tsPvs);
MutablePropertyValues pvs = new MutablePropertyValues();
RootBe... | public void testSerializability() throws Exception {
MutablePropertyValues tsPvs = new MutablePropertyValues();
tsPvs.add("targetBeanName", "person");
RootBeanDefinition tsBd = new RootBeanDefinition(TestTargetSource.class, tsPvs);
MutablePropertyValues pvs = new MutablePropertyValues();
RootBeanDefinition ... |
protected void visitPropertyValues(MutablePropertyValues pvs) {
PropertyValue[] pvArray = pvs.getPropertyValues();
for (PropertyValue pv : pvArray) {
Object newVal = resolveValue(pv.getValue());
if (!ObjectUtils.nullSafeEquals(newVal, pv.getValue())) {
pvs.addPropertyValue(pv.getName(), newVal);
}
}... | protected void visitPropertyValues(MutablePropertyValues pvs) {
PropertyValue[] pvArray = pvs.getPropertyValues();
for (PropertyValue pv : pvArray) {
Object newVal = resolveValue(pv.getValue());
if (!ObjectUtils.nullSafeEquals(newVal, pv.getValue())) {
pvs.add(pv.getName(), newVal);
}
}
}
|
public void testExtendedResourceInjectionWithOverriding() {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
bf.registerResolvableDependency(BeanFactory.class, bf);
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
bpp.setBeanFactory(bf);
bf.addBeanPostPr... | public void testExtendedResourceInjectionWithOverriding() {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
bf.registerResolvableDependency(BeanFactory.class, bf);
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
bpp.setBeanFactory(bf);
bf.addBeanPostPr... |
private void setBaseProperties(AbstractBeanDefinition definition) {
definition.setAbstract(true);
definition.setAttribute("foo", "bar");
definition.setAutowireCandidate(false);
definition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_BY_TYPE);
//definition.getConstructorArgumentValues().addGenericArgumentV... | private void setBaseProperties(AbstractBeanDefinition definition) {
definition.setAbstract(true);
definition.setAttribute("foo", "bar");
definition.setAutowireCandidate(false);
definition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_BY_TYPE);
//definition.getConstructorArgumentValues().addGenericArgumentV... |
public BeanDefinition parse(Element element, ParserContext parserContext) {
BeanDefinition bd =
LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary(parserContext.getRegistry());
String refreshCheckDelay = element.getAttribute(REFRESH_CHECK_DELAY_ATTRIBUTE);
if (StringUtils.hasText(refreshCheckD... | public BeanDefinition parse(Element element, ParserContext parserContext) {
BeanDefinition bd =
LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary(parserContext.getRegistry());
String refreshCheckDelay = element.getAttribute(REFRESH_CHECK_DELAY_ATTRIBUTE);
if (StringUtils.hasText(refreshCheckD... |
public @Test void testAutowireWithParent() throws Exception {
XmlBeanFactory xbf = new XmlBeanFactory(AUTOWIRE_CONTEXT);
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.addPropertyValue("name", "kerry");
lbf.registerBeanDefinitio... | public @Test void testAutowireWithParent() throws Exception {
XmlBeanFactory xbf = new XmlBeanFactory(AUTOWIRE_CONTEXT);
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.add("name", "kerry");
lbf.registerBeanDefinition("spouse", n... |
public void testExtendedResourceInjectionWithOverriding() {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
CommonAnnotationBeanPostProcessor bpp = new CommonAnnotationBeanPostProcessor();
bpp.setBeanFactory(bf);
bf.addBeanPostProcessor(bpp);
bf.registerResolvableDependency(BeanFactory.clas... | public void testExtendedResourceInjectionWithOverriding() {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
CommonAnnotationBeanPostProcessor bpp = new CommonAnnotationBeanPostProcessor();
bpp.setBeanFactory(bf);
bf.addBeanPostProcessor(bpp);
bf.registerResolvableDependency(BeanFactory.clas... |
public void innerBeanAsListener() {
StaticApplicationContext context = new StaticApplicationContext();
RootBeanDefinition listenerDef = new RootBeanDefinition(TestBean.class);
listenerDef.getPropertyValues().addPropertyValue("friends", new RootBeanDefinition(BeanThatListens.class));
context.registerBeanDefinit... | public void innerBeanAsListener() {
StaticApplicationContext context = new StaticApplicationContext();
RootBeanDefinition listenerDef = new RootBeanDefinition(TestBean.class);
listenerDef.getPropertyValues().add("friends", new RootBeanDefinition(BeanThatListens.class));
context.registerBeanDefinition("listener... |
protected void onRefresh() throws BeansException {
addListener(listener);
}
}
StaticApplicationContext ctx = new TestContext();
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.addPropertyValue("applicationEventClass", TestEvent.class.getName());
// should automatically receive applicat... | protected void onRefresh() throws BeansException {
addListener(listener);
}
}
StaticApplicationContext ctx = new TestContext();
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.add("applicationEventClass", TestEvent.class.getName());
// should automatically receive applicationEventPubli... |
public void threadNamePrefix() {
StaticApplicationContext context = new StaticApplicationContext();
BeanDefinition processorDefinition = new RootBeanDefinition(AsyncAnnotationBeanPostProcessor.class);
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setThreadNamePrefix("testExecutor");
... | public void threadNamePrefix() {
StaticApplicationContext context = new StaticApplicationContext();
BeanDefinition processorDefinition = new RootBeanDefinition(AsyncAnnotationBeanPostProcessor.class);
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setThreadNamePrefix("testExecutor");
... |
private RootBeanDefinition parseAttributeSource(Element attrEle, ParserContext parserContext) {
List<Element> methods = DomUtils.getChildElementsByTagName(attrEle, "method");
ManagedMap transactionAttributeMap = new ManagedMap(methods.size());
transactionAttributeMap.setSource(parserContext.extractSource(attrEle... | private RootBeanDefinition parseAttributeSource(Element attrEle, ParserContext parserContext) {
List<Element> methods = DomUtils.getChildElementsByTagName(attrEle, "method");
ManagedMap transactionAttributeMap = new ManagedMap(methods.size());
transactionAttributeMap.setSource(parserContext.extractSource(attrEle... |
public void refresh() throws BeansException {
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.addPropertyValue("portletClass", MyPortlet.class);
registerSingleton(PORTLET_WRAPPING_CONTROLLER_BEAN_NAME, PortletWrappingController.class, pvs);
super.refresh();
}
}
| public void refresh() throws BeansException {
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.add("portletClass", MyPortlet.class);
registerSingleton(PORTLET_WRAPPING_CONTROLLER_BEAN_NAME, PortletWrappingController.class, pvs);
super.refresh();
}
}
|
protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent)
throws BeansException {
GenericWebApplicationContext wac = new GenericWebApplicationContext();
wac.registerBeanDefinition("controller", new RootBeanDefinition(ImplicitSubPathController.class));
RootBeanDefiniti... | protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent)
throws BeansException {
GenericWebApplicationContext wac = new GenericWebApplicationContext();
wac.registerBeanDefinition("controller", new RootBeanDefinition(ImplicitSubPathController.class));
RootBeanDefiniti... |
private void writeIgnoredResources(XMLExtendedStreamWriter writer, ModelNode ignoredTypes) throws XMLStreamException {
for (Property property : ignoredTypes.asPropertyList()) {
ModelNode ignored = property.getValue();
ModelNode names = ignored.hasDefined(NAMES) ? ignored.get(NAMES)... | private void writeIgnoredResources(XMLExtendedStreamWriter writer, ModelNode ignoredTypes) throws XMLStreamException {
for (Property property : ignoredTypes.asPropertyList()) {
ModelNode ignored = property.getValue();
ModelNode names = ignored.hasDefined(NAMES) ? ignored.get(NAMES)... |
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 LdapAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.LDAP),
ControllerResolver.getResolver("core.management.security-realm.authentication.ldap"),
new LdapAuthenticationAddHandler(), n... | public LdapAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.LDAP),
ControllerResolver.getResolver("core.management.security-realm.authentication.ldap"),
new LdapAuthenticationAddHandler(), n... |
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, false), OperationEntry.Flag.... | 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 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.