buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private final InjectedValue<SingleSignOnManager> manager = new InjectedValue<>();
SingleSignOnService(String domain, String path, boolean httpOnly, boolean secure, String cookieName) {
this.domain = domain;
this.path = path;
this.httpOnly = httpOnly;
this.secure = secure;
}
| private final InjectedValue<SingleSignOnManager> manager = new InjectedValue<>();
SingleSignOnService(String domain, String path, boolean httpOnly, boolean secure) {
this.domain = domain;
this.path = path;
this.httpOnly = httpOnly;
this.secure = secure;
}
|
private ModelControllerClient createTestClient() {
final Channel clientChannel = channels.getClientChannel();
final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(clientChannel);
clientChannel.receiveMessage(ManagementChannelReceiver.createDelegating(c... | private ModelControllerClient createTestClient() {
final Channel clientChannel = channels.getClientChannel();
final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(clientChannel, channels.getExecutorService());
clientChannel.receiveMessage(ManagementCha... |
public Object init(BigInteger txid, Object lastState) {
return _coordinator.initialize(txid, lastState);
}
}
| public Object init(BigInteger txid, Object lastState) {
return _coordinator.initializeTransaction(txid, lastState);
}
}
|
public Host(final Location location) {
super(location);
}
| public Host(final Location location) {
super(location, Domain.NAMESPACE);
}
|
protected Standalone(final Location location) {
super(location);
}
| protected Standalone(final Location location) {
super(location, Domain.NAMESPACE);
}
|
public static void registerChannelProtocolMetrics(OperationContext context, String channelName, String stackName)
throws OperationFailedException {
if (stackName == null) {
stackName = getDefaultStack(context);
}
// get the stack model
PathAddress address = Pa... | public static void registerChannelProtocolMetrics(OperationContext context, String channelName, String stackName)
throws OperationFailedException {
if (stackName == null) {
stackName = getDefaultStack(context);
}
// get the stack model
PathAddress address = Pa... |
protected synchronized InetAddress getDestinationAddress() {
final SocketBinding localDestinationSocketBinding = this.localDestinationSocketBindingInjectedValue.getValue();
return localDestinationSocketBinding.getAddress();
}
| protected synchronized InetAddress getDestinationAddress() {
final SocketBinding localDestinationSocketBinding = this.localDestinationSocketBindingInjectedValue.getValue();
return localDestinationSocketBinding.getSocketAddress().getAddress();
}
|
public static void applyTransactionTimeout(Query query, EntityManagerFactory emf) {
EntityManagerHolder emHolder = (EntityManagerHolder) TransactionSynchronizationManager.getResource(emf);
if (emHolder != null && emHolder.hasTimeout()) {
int timeoutValue = emHolder.getTimeToLiveInSeconds();
query.setHint("ja... | public static void applyTransactionTimeout(Query query, EntityManagerFactory emf) {
EntityManagerHolder emHolder = (EntityManagerHolder) TransactionSynchronizationManager.getResource(emf);
if (emHolder != null && emHolder.hasTimeout()) {
int timeoutValue = (int) emHolder.getTimeToLiveInMillis();
query.setHin... |
public static Archive<?> deploy() {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "jaxrsnoap.ear");
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejbjar.jar");
ejbJar.addClasses(EJBResource.class, EjbInterceptor.class);
ear.addAsModule(ejbJar... | public static Archive<?> deploy() {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "jaxrsnoap.ear");
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejbjar.jar");
ejbJar.addClasses(EJBResource.class, EjbInterceptor.class, EjbInterface.class);
ea... |
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsnoap.war");
war.addPackage(HttpRequest.class.getPackage());
war.add(EmptyAsset.INSTANCE, "WEB-INF/beans.xml");
war.addClasses(EJBResource.class, EjbInterceptor.class);
war.addAsWebIn... | public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsnoap.war");
war.addPackage(HttpRequest.class.getPackage());
war.add(EmptyAsset.INSTANCE, "WEB-INF/beans.xml");
war.addClasses(EJBResource.class, EjbInterceptor.class, EjbInterface.class);
... |
public void testSortOrder() throws Exception {
SortedBidiMap<K, V> sm = makeFullMap();
// Sort by the comparator used in the makeEmptyBidiMap() method
List<K> newSortedKeys = Arrays.asList(getSampleKeys());
Collections.sort(newSortedKeys, new ReverseComparator<K>(ComparableComparato... | public void testSortOrder() throws Exception {
SortedBidiMap<K, V> sm = makeFullMap();
// Sort by the comparator used in the makeEmptyBidiMap() method
List<K> newSortedKeys = getAsList(getSampleKeys());
Collections.sort(newSortedKeys, new ReverseComparator<K>(ComparableComparator.<K... |
public static void assertContains(String msg, Complex[] values,
Complex z, double epsilon) {
int i = 0;
boolean found = false;
while (!found && i < values.length) {
try {
assertEquals(values[i], z, epsilon);
found = true;
} ... | public static void assertContains(String msg, Complex[] values,
Complex z, double epsilon) {
int i = 0;
boolean found = false;
while (!found && i < values.length) {
try {
assertEquals(values[i], z, epsilon);
found = true;
} ... |
public void write( final byte[] buffer,
final int offset,
final int count )
throws IOException
{
int position = offset;
int numToWrite = count;
if( ( m_currBytes + numToWrite ) > m_currSize )
{
final String message... | public void write( final byte[] buffer,
final int offset,
final int count )
throws IOException
{
int position = offset;
int numToWrite = count;
if( ( m_currBytes + numToWrite ) > m_currSize )
{
final String message... |
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException {
final ModelNode composite = new ModelNode();
composite.get(Util.OPERATION).set(Util.COMPOSITE);
composite.get(Util.ADDRESS).setEmptyList();
final ModelNode steps = composite.get(Util.STEP... | public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException {
final ModelNode composite = new ModelNode();
composite.get(Util.OPERATION).set(Util.COMPOSITE);
composite.get(Util.ADDRESS).setEmptyList();
final ModelNode steps = composite.get(Util.STEP... |
public Object[][] getContents() {
return (Object[][]) contents.clone();
}
static final Object[][] contents = {
// org.apache.commons.math.FunctionEvaluationException
{ "Evaluation failed for argument = {0}",
"Erreur d''\u00e9valuation pour l''argument {0}" },
// org.apache.commons.math.Du... | public Object[][] getContents() {
return (Object[][]) contents.clone();
}
static final Object[][] contents = {
// org.apache.commons.math.FunctionEvaluationException
{ "Evaluation failed for argument = {0}",
"Erreur d''\u00e9valuation pour l''argument {0}" },
// org.apache.commons.math.Du... |
public void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings) {
throw new RuntimeException("not implemented");
}
| public void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings) {
//throw new RuntimeException("not implemented");
}
|
public void testAuthentication_TwoBeans() throws Exception {
LoginContext lc = getCLMLoginContext("user1", "password1");
lc.login();
try {
String[] response = entryBean.doubleWhoAmI();
assertEquals("user1", response[0]);
assertEquals("user1", response[1]);... | public void testAuthentication_TwoBeans() throws Exception {
LoginContext lc = getCLMLoginContext("user1", "password1");
lc.login();
try {
String[] response = entryBean.doubleWhoAmI();
assertEquals("user1", response[0]);
assertEquals("anonymous", response[... |
public void setup(final ManagementClient managementClient) throws Exception {
final List<ModelNode> updates = new ArrayList<ModelNode>();
ModelNode op = new ModelNode();
op.get(OP).set(ADD);
op.get(OP_ADDR).add(SUBSYSTEM, "security");
op.get(OP_ADDR).add(S... | public void setup(final ManagementClient managementClient, String containerId) throws Exception {
final List<ModelNode> updates = new ArrayList<ModelNode>();
ModelNode op = new ModelNode();
op.get(OP).set(ADD);
op.get(OP_ADDR).add(SUBSYSTEM, "security");
o... |
public void completeSetup() {
NopAnnotationIntrospector annotationIntrospector = NopAnnotationIntrospector.instance;
ObjectMapper objectMapper = new ObjectMapper();
factory.setObjectMapper(objectMapper);
assertTrue(this.factory.isSingleton());
assertEquals(ObjectMapper.class, this.factory.getObjectType());
... | public void completeSetup() {
NopAnnotationIntrospector annotationIntrospector = NopAnnotationIntrospector.instance;
ObjectMapper objectMapper = new ObjectMapper();
factory.setObjectMapper(objectMapper);
assertTrue(this.factory.isSingleton());
assertEquals(ObjectMapper.class, this.factory.getObjectType());
... |
public void testDefaultConfig() throws Exception {
loadBeanDefinitions("mvc-config.xml", 13);
RequestMappingHandlerMapping mapping = appContext.getBean(RequestMappingHandlerMapping.class);
assertNotNull(mapping);
assertEquals(0, mapping.getOrder());
assertTrue(mapping.getUrlPathHelper().shouldRemoveSemicolo... | public void testDefaultConfig() throws Exception {
loadBeanDefinitions("mvc-config.xml", 13);
RequestMappingHandlerMapping mapping = appContext.getBean(RequestMappingHandlerMapping.class);
assertNotNull(mapping);
assertEquals(0, mapping.getOrder());
assertTrue(mapping.getUrlPathHelper().shouldRemoveSemicolo... |
public void requestMappingHandlerAdapter() throws Exception {
ApplicationContext context = initContext(WebConfig.class);
RequestMappingHandlerAdapter adapter = context.getBean(RequestMappingHandlerAdapter.class);
List<HttpMessageConverter<?>> converters = adapter.getMessageConverters();
assertEquals(9, convert... | public void requestMappingHandlerAdapter() throws Exception {
ApplicationContext context = initContext(WebConfig.class);
RequestMappingHandlerAdapter adapter = context.getBean(RequestMappingHandlerAdapter.class);
List<HttpMessageConverter<?>> converters = adapter.getMessageConverters();
assertEquals(9, convert... |
private void checkConstant(Random random) {
byte[] bytes = new byte[] {0};
random.nextBytes(bytes);
Assert.assertEquals(0, bytes[0]);
Assert.assertEquals(false, random.nextBoolean());
Assert.assertEquals(0, random.nextDouble(), 0);
Assert.assertEquals(0, random.nextFl... | private void checkConstant(Random random) {
byte[] bytes = new byte[] {0};
random.nextBytes(bytes);
Assert.assertEquals(0, bytes[0]);
Assert.assertFalse(random.nextBoolean());
Assert.assertEquals(0, random.nextDouble(), 0);
Assert.assertEquals(0, random.nextFloat(), 0... |
private void processCommonCacheAttributesElements(XMLExtendedStreamWriter writer, ModelNode cache)
throws XMLStreamException {
this.writeOptional(writer, Attribute.START, cache, ModelKeys.START);
this.writeOptional(writer, Attribute.BATCHING, cache, ModelKeys.BATCHING);
this.wri... | private void processCommonCacheAttributesElements(XMLExtendedStreamWriter writer, ModelNode cache)
throws XMLStreamException {
this.writeOptional(writer, Attribute.START, cache, ModelKeys.START);
this.writeOptional(writer, Attribute.BATCHING, cache, ModelKeys.BATCHING);
this.wri... |
public SimpleAttributeDefinition build() {
return new SimpleAttributeDefinition(name, xmlName, defaultValue, type, allowNull, allowExpression, measurementUnit,
corrector, validator, validateNull, alternatives, requires, attributeMarshaller, resourceOnly, flags);
}
| public SimpleAttributeDefinition build() {
return new SimpleAttributeDefinition(name, xmlName, defaultValue, type, allowNull, allowExpression, measurementUnit,
corrector, validator, validateNull, alternatives, requires, attributeMarshaller, resourceOnly,deprecated, flags);
}
|
private JndiEntriesAttribute(final boolean forDestination) {
super(CommonAttributes.ENTRIES_STRING, CommonAttributes.ENTRIES_STRING, false, ModelType.STRING, 1, Integer.MAX_VALUE, new String[0], new String[0], new StringLengthValidator(1), null, AttributeAccess.Flag.RESTART_ALL_SERVICES);
this.forDe... | private JndiEntriesAttribute(final boolean forDestination) {
super(CommonAttributes.ENTRIES_STRING, CommonAttributes.ENTRIES_STRING, false, ModelType.STRING, 1, Integer.MAX_VALUE, new String[0], new String[0], new StringLengthValidator(1), null, false,null,AttributeAccess.Flag.RESTART_ALL_SERVICES);
... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ModuleSpecification attachment = phaseContext.getAttachment(Attachments.MODULE_SPECIFICATION);
if (attachment == null) {
return;
}
final List<PermissionFactory> ... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ModuleSpecification attachment = phaseContext.getDeploymentUnit().getAttachment(Attachments.MODULE_SPECIFICATION);
if (attachment == null) {
return;
}
final List... |
private final InjectedValue<SingleSignOnManager> manager = new InjectedValue<>();
SingleSignOnService(String domain, String path, boolean httpOnly, boolean secure) {
this.domain = domain;
this.path = path;
this.httpOnly = httpOnly;
this.secure = secure;
}
| private final InjectedValue<SingleSignOnManager> manager = new InjectedValue<>();
SingleSignOnService(String domain, String path, boolean httpOnly, boolean secure, String cookieName) {
this.domain = domain;
this.path = path;
this.httpOnly = httpOnly;
this.secure = secure;
}
|
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
MethodMetadataReadingVisitor mm = new MethodMetadataReadingVisitor(name, access, this.classLoader);
this.methodMetadataSet.add(mm);
return mm;
}
| public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
MethodMetadataReadingVisitor mm = new MethodMetadataReadingVisitor(name, access, this.getClassName(), this.classLoader);
this.methodMetadataSet.add(mm);
return mm;
}
|
public Object intercept(InvocationContext ctx) throws Exception {
log.info("Calling XMLInterceptorB...");
session2.doit();
log.info("Calling XMLInterceptorB - after doit");
return false;
}
| public Object intercept(InvocationContext ctx) throws Exception {
log.info("Calling XMLInterceptorB...");
session2.doitSession();
log.info("Calling XMLInterceptorB - after doit");
return false;
}
|
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
String name = address.getLastElement().getValue();
ServiceName svcName = SocketBinding.JBOSS_BINDING_NAME.append(name);
... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
String name = address.getLastElement().getValue();
ServiceName svcName = SocketBinding.JBOSS_BINDING_NAME.append(name);
... |
public Character convert(String source) {
if ("".equals(source)) {
return null;
}
if (source.length() > 1) {
throw new IllegalArgumentException(
"Can only convert a [String] with length of 1 to a [Character]; string value '" + source
+ "' has length of " + source.length());
}
return source... | public Character convert(String source) {
if (source.length() == 0) {
return null;
}
if (source.length() > 1) {
throw new IllegalArgumentException(
"Can only convert a [String] with length of 1 to a [Character]; string value '" + source
+ "' has length of " + source.length());
}
return sou... |
public T convert(String source) {
if ("".equals(source)) {
// It's an empty enum identifier: reset the enum value to null.
return null;
}
return (T) Enum.valueOf(this.enumType, source.trim());
}
}
| public T convert(String source) {
if (source.length() == 0) {
// It's an empty enum identifier: reset the enum value to null.
return null;
}
return (T) Enum.valueOf(this.enumType, source.trim());
}
}
|
public T convert(String source) {
if ("".equals(source)) {
return null;
}
return NumberUtils.parseNumber(source, this.targetType);
}
}
| public T convert(String source) {
if (source.length() == 0) {
return null;
}
return NumberUtils.parseNumber(source, this.targetType);
}
}
|
public void onTimeoutTimeoutHandler() throws Exception {
Runnable timeoutHandler = EasyMock.createMock(Runnable.class);
timeoutHandler.run();
replay(timeoutHandler);
this.asyncRequest.setTimeoutHandler(timeoutHandler);
this.asyncRequest.onTimeout(new AsyncEvent(null));
verify(timeoutHandler);
}
| public void onTimeoutTimeoutHandler() throws Exception {
Runnable timeoutHandler = EasyMock.createMock(Runnable.class);
timeoutHandler.run();
replay(timeoutHandler);
this.asyncRequest.addTimeoutHandler(timeoutHandler);
this.asyncRequest.onTimeout(new AsyncEvent(null));
verify(timeoutHandler);
}
|
public static void createHostRegistry(final ManagementResourceRegistration root, final HostControllerConfigurationPersister configurationPersister,
final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl,
... | public static void createHostRegistry(final ManagementResourceRegistration root, final HostControllerConfigurationPersister configurationPersister,
final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl,
... |
public static Collection<Object[]> data() {
Object[][] data = new Object[][] {
{ "subsystem-infinispan_1_0.xml", 33 },
{ "subsystem-infinispan_1_1.xml", 33 },
{ "subsystem-infinispan_1_2.xml", 37 },
{ "subsystem-infinispan_1_3.xml", 37 },
... | public static Collection<Object[]> data() {
Object[][] data = new Object[][] {
{ "subsystem-infinispan_1_0.xml", 33 },
{ "subsystem-infinispan_1_1.xml", 33 },
{ "subsystem-infinispan_1_2.xml", 37 },
{ "subsystem-infinispan_1_3.xml", 37 },
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
final boolean resolvePrope... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
final boolean resolvePrope... |
public void testConfiguration() throws Throwable {
ModelNode address = new ModelNode();
address.add("deployment", "ij.rar").add("subsystem", "resource-adapters").add("ironjacamar", "ironjacamar")
.add("resource-adapter", "ij");
ModelNode operation = new ModelNode();
o... | public void testConfiguration() throws Throwable {
ModelNode address = new ModelNode();
address.add("deployment", "ij.rar").add("subsystem", "resource-adapters").add("ironjacamar", "ironjacamar")
.add("resource-adapter", "ij.rar");
ModelNode operation = new ModelNode();
... |
private ModelNode getAddress(String deploymentName) {
final ModelNode address = new ModelNode();
address.add(DEPLOYMENT, deploymentName).add(SUBDEPLOYMENT, subDeploymentName).add(SUBSYSTEM, "resource-adapters")
.add("ironjacamar", "ironjacamar").add("resource-adapter", deploymentName... | private ModelNode getAddress(String deploymentName) {
final ModelNode address = new ModelNode();
address.add(DEPLOYMENT, deploymentName).add(SUBDEPLOYMENT, subDeploymentName).add(SUBSYSTEM, "resource-adapters")
.add("ironjacamar", "ironjacamar").add("resource-adapter", deploymentName... |
public String getSecurityDomain(final Deployment dep) {
String securityDomain = null;
for (final EJBEndpoint ejbEndpoint : getEjbEndpoints(dep)) {
String nextSecurityDomain = ejbEndpoint.getSecurityDomain();
if(nextSecurityDomain.isEmpty()) {
nextSecurityDoma... | public String getSecurityDomain(final Deployment dep) {
String securityDomain = null;
for (final EJBEndpoint ejbEndpoint : getEjbEndpoints(dep)) {
String nextSecurityDomain = ejbEndpoint.getSecurityDomain();
if (nextSecurityDomain == null || nextSecurityDomain.isEmpty()) {
... |
private Simple8BitZipEncoding encoding;
/**
* Instantiate a simple encoding holder.
*
* @param highChars The characters for byte codes 128 to 255.
*
* @see Simple8BitZipEncoding#Simple8BitZipEncoding(char[])
*/
SimpleEncodingHolder(char []... | private Simple8BitZipEncoding encoding;
/**
* Instantiate a simple encoding holder.
*
* @param highChars The characters for byte codes 128 to 255.
*
* @see Simple8BitZipEncoding#Simple8BitZipEncoding(char[])
*/
SimpleEncodingHolderxx(char ... |
public void testMessageNumber() {
Assert.assertEquals(314, LocalizedFormats.values().length);
}
| public void testMessageNumber() {
Assert.assertEquals(315, LocalizedFormats.values().length);
}
|
public void afterCompletion(final int status) {
try {
lock.lock();
if (status == Status.STATUS_COMMITTED) {
Map<String, TimerEntity> map = getTimers(timer.getTimedObjectId());
map.put(timer.getId(), timer);
w... | public void afterCompletion(final int status) {
try {
lock.lock();
if (status == Status.STATUS_COMMITTED) {
final Map<String, TimerEntity> map = getTimers(timer.getTimedObjectId());
map.put(timer.getId(), timer);
... |
@Message(id = Message.NONE, value = " A previous version of this content was deployed and remains deployed.")
/*
* 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 li... | @Message(id = Message.NONE, value = " A previous version of this content was deployed and remains deployed.")
/*
* 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 li... |
IOException channelClosed(@Cause IOException cause);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free soft... | IOException channelClosed(@Cause IOException cause);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free soft... |
private void assertCorrectSetup(DataSource dataSource) {
JdbcTemplate t = new JdbcTemplate(dataSource);
assertEquals(1, t.queryForInt("select count(*) from T_TEST"));
}
| private void assertCorrectSetup(DataSource dataSource) {
JdbcTemplate t = new JdbcTemplate(dataSource);
assertEquals(1, t.queryForObject("select count(*) from T_TEST", Integer.class).intValue());
}
|
private static void populate(ModelNode operation, ModelNode model) throws OperationFailedException {
// simply transfer the attributes from operation to model
for (AttributeDefinition attr : CommonAttributes.TRANSPORT_ATTRIBUTES) {
// replace with AttributeDefinition.validateAndSet
... | private static void populate(ModelNode operation, ModelNode model) throws OperationFailedException {
// simply transfer the attributes from operation to model
for (AttributeDefinition attr : TransportResource.TRANSPORT_ATTRIBUTES) {
// replace with AttributeDefinition.validateAndSet
... |
public interface UnivariateIntegrator {
/*
* 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,... | public interface UnivariateIntegrator {
/*
* 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,... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentUnit parent = Utils.getRootDeploymentUnit(deploymentUnit);
final ServiceTarget serviceTarget = phaseConte... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentUnit parent = Utils.getRootDeploymentUnit(deploymentUnit);
final ServiceTarget serviceTarget = phaseConte... |
private DomainModel parseDomain(final XMLMapper mapper) {
try {
InputStream reader = configPersister.getConfigurationReader();
final List<AbstractDomainModelUpdate<?>> domainUpdates = new ArrayList<AbstractDomainModelUpdate<?>>();
mapper.parseDocument(domainUpdates, XMLIn... | private DomainModel parseDomain(final XMLMapper mapper) {
try {
InputStream reader = configPersister.getConfigurationInputStream();
final List<AbstractDomainModelUpdate<?>> domainUpdates = new ArrayList<AbstractDomainModelUpdate<?>>();
mapper.parseDocument(domainUpdates, ... |
private String readString() throws IOException {
StringBuilder line = new StringBuilder();
//synchronized (processOut) {
while (true) {
String subline = processOut.readLine();
if(subline==null)
throw new RuntimeException("Pipe to subpr... | private String readString() throws IOException {
StringBuilder line = new StringBuilder();
//synchronized (processOut) {
while (true) {
String subline = processOut.readLine();
if(subline==null)
throw new RuntimeException("Pipe to subpr... |
ServiceBuilder<?> build(ServiceTarget target, String connector, int statusInterval);
package org.wildfly.extension.mod_cluster;
import org.jboss.msc.service.ServiceBuilder;
import org.jboss.msc.service.ServiceTarget;
public interface ContainerEventHandlerAdapterBuilder {
ServiceBuilder<?> build(ServiceTarget tar... | ServiceBuilder<?> build(ServiceTarget target, String connector, int statusInterval);
package org.wildfly.extension.mod_cluster;
import org.jboss.msc.service.ServiceBuilder;
import org.jboss.msc.service.ServiceTarget;
public interface ContainerEventHandlerAdapterBuilder {
ServiceBuilder<?> build(ServiceTarget tar... |
private <R> ModelUpdateResponse<R> executeUpdate(final AbstractServerModelUpdate<R> update, final String serverName) {
Server server = serverManager.getServer(serverName);
if (server == null) {
// TODO better handle removal of server while client is concurrently
// processing... | private <R> ModelUpdateResponse<R> executeUpdate(final AbstractServerModelUpdate<R> update, final String serverName) {
ManagedServer server = serverManager.getServer(serverName);
if (server == null) {
// TODO better handle removal of server while client is concurrently
// pro... |
public static Index getRootAnnotationIndex(final DeploymentUnit unit) {
Map<ResourceRoot, Index> indexes = AnnotationIndexUtils.getAnnotationIndexes(unit);
for (ResourceRoot rr : indexes.keySet()) {
if (ModuleRootMarker.isModuleRoot(rr)) {
return indexes.get(rr);
... | public static Index getRootAnnotationIndex(final DeploymentUnit unit) {
Map<ResourceRoot, Index> indexes = AnnotationIndexUtils.getAnnotationIndexes(unit);
for (ResourceRoot rr : indexes.keySet()) {
if (ModuleRootMarker.isModuleRoot(rr)) {
return indexes.get(rr);
... |
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME);
subsystem.registerXMLElementWriter(MessagingSubsystemParser.getInstance());
final ManagementResourceRegistration rootRegistration = subsystem.registerSubsyst... | public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME);
subsystem.registerXMLElementWriter(MessagingSubsystemParser.getInstance());
final ManagementResourceRegistration rootRegistration = subsystem.registerSubsyst... |
protected void writeDeploymentOverlays(final XMLExtendedStreamWriter writer, final ModelNode modelNode)
throws XMLStreamException {
Set<String> names = modelNode.keys();
if (names.size() > 0) {
writer.writeStartElement(Element.DEPLOYMENT_OVERLAYS.getLocalName());
... | protected void writeDeploymentOverlays(final XMLExtendedStreamWriter writer, final ModelNode modelNode)
throws XMLStreamException {
Set<String> names = modelNode.keys();
if (names.size() > 0) {
writer.writeStartElement(Element.DEPLOYMENT_OVERLAYS.getLocalName());
... |
public static void isTrue(boolean expression, String message, double value) {
if (expression == false) {
throw new IllegalArgumentException(String.format(message, new Double(value)));
}
}
| public static void isTrue(boolean expression, String message, double value) {
if (expression == false) {
throw new IllegalArgumentException(String.format(message, Double.valueOf(value)));
}
}
|
public Double getValue() {
return new Double(this.value);
}
| public Double getValue() {
return Double.valueOf(this.value);
}
|
public Float getValue() {
return new Float(this.value);
}
| public Float getValue() {
return Float.valueOf(this.value);
}
|
public void testToString() {
assertEquals("HI", new MutableObject<String>("HI").toString());
assertEquals("10.0", new MutableObject<Double>(new Double(10)).toString());
assertEquals("null", new MutableObject<Object>(null).toString());
}
| public void testToString() {
assertEquals("HI", new MutableObject<String>("HI").toString());
assertEquals("10.0", new MutableObject<Double>(Double.valueOf(10)).toString());
assertEquals("null", new MutableObject<Object>(null).toString());
}
|
protected void visitFactoryMethodName(BeanDefinition beanDefinition) {
String factoryMethodName = beanDefinition.getFactoryBeanName();
if (factoryMethodName != null) {
String resolvedName = resolveStringValue(factoryMethodName);
if (!factoryMethodName.equals(resolvedName)) {
beanDefinition.setFactoryMeth... | protected void visitFactoryMethodName(BeanDefinition beanDefinition) {
String factoryMethodName = beanDefinition.getFactoryMethodName();
if (factoryMethodName != null) {
String resolvedName = resolveStringValue(factoryMethodName);
if (!factoryMethodName.equals(resolvedName)) {
beanDefinition.setFactoryMe... |
public interface MutableUserSessionResolver extends UserSessionResolver {
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | public interface MutableUserSessionResolver extends UserSessionResolver {
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
public DomainClientImpl(InetAddress address, int port) {
this.address = address;
this.port = port;
this.delegate = ModelControllerClient.Factory.create(address, port);
}
| public DomainClientImpl(InetAddress address, int port) {
this.address = address;
this.port = port;
this.delegate = ModelControllerClient.Factory.create(ModelControllerClient.Type.DOMAIN, address, port);
}
|
public void validate(ProblemReporter problemReporter) {
// No overloading of factory methods allowed
for (Map.Entry<String, Integer> entry : this.overloadedMethodMap.entrySet()) {
String methodName = entry.getKey();
int count = entry.getValue();
if (count > 1) {
problemReporter.error(new OverloadedMet... | public void validate(ProblemReporter problemReporter) {
// No overloading of factory methods allowed
for (Map.Entry<String, Integer> entry : this.overloadedMethodMap.entrySet()) {
String methodName = entry.getKey();
int count = entry.getValue();
if (count > 1) {
problemReporter.error(new OverloadedMet... |
public void validate(ProblemReporter problemReporter) {
if (this.declaringClass.getMetadata().hasAnnotation(Configuration.class.getName()) && !getMetadata().isOverridable()) {
problemReporter.error(new NonOverridableMethodError());
}
}
| public void validate(ProblemReporter problemReporter) {
if (this.declaringClass.getMetadata().isAnnotated(Configuration.class.getName()) && !getMetadata().isOverridable()) {
problemReporter.error(new NonOverridableMethodError());
}
}
|
public interface BracketedUnivariateRealSolver extends UnivariateRealSolver {
/*
* 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... | public interface BracketedUnivariateRealSolver extends UnivariateRealSolver {
/*
* 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... |
private boolean isWhitespace(int c) {
return Character.isWhitespace((char) c);
}
| private boolean isWhitespace(int c) {
return Character.isWhitespace((char) c) && (c != strategy.getDelimiter());
}
|
public void prepare(Map config, TopologyContext context, OutputCollector collector) {
TimeCacheMap.ExpiredCallback<Object, TrackingInfo> callback = null;
if(_delegate instanceof TimeoutCallback) {
callback = new TimeoutItems();
}
_tracked = new TimeCacheMap<Object, Tracki... | public void prepare(Map config, TopologyContext context, OutputCollector collector) {
TimeCacheMap.ExpiredCallback<Object, TrackingInfo> callback = null;
if(_delegate instanceof TimeoutCallback) {
callback = new TimeoutItems();
}
_tracked = new TimeCacheMap<Object, Tracki... |
public Resource getResource(final String path) throws IOException {
Resource res = deploymentResourceManager.getResource(path);
if (res != null) {
return res;
}
String p = path;
if (p.startsWith("/")) {
p = p.substring(1);
}
if(overlays... | public Resource getResource(final String path) throws IOException {
Resource res = deploymentResourceManager.getResource(path);
if (res != null) {
return res;
}
String p = path;
if (p.startsWith("/")) {
p = p.substring(1);
}
if(overlays... |
protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException {
try {
preBoot(bootOperations, rollbackOnRuntimeFailure);
OperationValidator validator = new OperationValidator(rootRegistration);
for (Model... | protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException {
try {
preBoot(bootOperations, rollbackOnRuntimeFailure);
OperationValidator validator = new OperationValidator(rootRegistration);
for (Model... |
public static ClassFilter createFilter(Class<?> filteredClass) {
return new SingleClassFilter(filteredClass.getName());
}
} | public static ClassFilter createFilter(Class filteredClass) {
return new SingleClassFilter(filteredClass.getName());
}
} |
public void run() {
try {
TimerImpl timer = timerService.getTimer(timerId);
if (cancelled) {
ROOT_LOGGER.debug("Timer task was cancelled for " + timer);
return;
}
Date now = new Date();
if (ROOT_LOGGER.isDebugEnable... | public void run() {
try {
TimerImpl timer = timerService.getTimer(timerId);
if (cancelled) {
ROOT_LOGGER.debug("Timer task was cancelled for " + timer);
return;
}
Date now = new Date();
if (ROOT_LOGGER.isDebugEnable... |
public void initSession(javax.websocket.Session session) {
Assert.notNull(session, "session is required");
this.session = session;
}
| public void initSession(javax.websocket.Session session) {
Assert.notNull(session, "session must not be null");
this.session = session;
}
|
public PollingSockJsSession createSession(String sessionId, WebSocketHandler handler) {
Assert.notNull(getSockJsConfig(), "This transport requires SockJsConfiguration");
return new PollingSockJsSession(sessionId, getSockJsConfig(), handler);
}
| public PollingSockJsSession createSession(String sessionId, WebSocketHandler handler) {
Assert.state(getSockJsConfig() != null, "This transport requires SockJsConfiguration");
return new PollingSockJsSession(sessionId, getSockJsConfig(), handler);
}
|
protected void setUp() throws Exception {
comparator = (AbstractFileComparator)DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
}
| protected void setUp() throws Exception {
comparator = DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
}
|
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
equalFile1 = new File("foo");
equalFile2 = new File("foo");
lessFile = new File("... | protected void setUp() throws Exception {
super.setUp();
comparator = DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
equalFile1 = new File("foo");
equalFile2 = new File("foo");
lessFile = new File("abc");
moreFile ... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)DirectoryFileComparator.DIRECTORY_COMPARATOR;
reverse = DirectoryFileComparator.DIRECTORY_REVERSE;
File currentDir = new File(".");
equalFile1 = new File(currentDir, "src");
... | protected void setUp() throws Exception {
super.setUp();
comparator = DirectoryFileComparator.DIRECTORY_COMPARATOR;
reverse = DirectoryFileComparator.DIRECTORY_REVERSE;
File currentDir = new File(".");
equalFile1 = new File(currentDir, "src");
equalFile2 = new File(cu... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)ExtensionFileComparator.EXTENSION_COMPARATOR;
reverse = ExtensionFileComparator.EXTENSION_REVERSE;
equalFile1 = new File("abc.foo");
equalFile2 = new File("def.foo");
lessFil... | protected void setUp() throws Exception {
super.setUp();
comparator = ExtensionFileComparator.EXTENSION_COMPARATOR;
reverse = ExtensionFileComparator.EXTENSION_REVERSE;
equalFile1 = new File("abc.foo");
equalFile2 = new File("def.foo");
lessFile = new File("abc.abc"... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)LastModifiedFileComparator.LASTMODIFIED_COMPARATOR;
reverse = LastModifiedFileComparator.LASTMODIFIED_REVERSE;
File dir = getTestDirectory();
File olderFile = new File(dir, "older.tx... | protected void setUp() throws Exception {
super.setUp();
comparator = LastModifiedFileComparator.LASTMODIFIED_COMPARATOR;
reverse = LastModifiedFileComparator.LASTMODIFIED_REVERSE;
File dir = getTestDirectory();
File olderFile = new File(dir, "older.txt");
createFile(... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)NameFileComparator.NAME_INSENSITIVE_COMPARATOR;
reverse = NameFileComparator.NAME_REVERSE;
equalFile1 = new File("a/foo.txt");
equalFile2 = new File("b/foo.txt");
lessFile ... | protected void setUp() throws Exception {
super.setUp();
comparator = NameFileComparator.NAME_INSENSITIVE_COMPARATOR;
reverse = NameFileComparator.NAME_REVERSE;
equalFile1 = new File("a/foo.txt");
equalFile2 = new File("b/foo.txt");
lessFile = new File("c/ABC.txt");... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)PathFileComparator.PATH_COMPARATOR;
reverse = PathFileComparator.PATH_REVERSE;
equalFile1 = new File("foo/file.txt");
equalFile2 = new File("foo/file.txt");
lessFile = new ... | protected void setUp() throws Exception {
super.setUp();
comparator = PathFileComparator.PATH_COMPARATOR;
reverse = PathFileComparator.PATH_REVERSE;
equalFile1 = new File("foo/file.txt");
equalFile2 = new File("foo/file.txt");
lessFile = new File("abc/file.txt");
... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)SizeFileComparator.SIZE_COMPARATOR;
reverse = SizeFileComparator.SIZE_REVERSE;
File dir = getTestDirectory();
smallerDir = new File(dir, "smallerdir");
largerDir = new File(d... | protected void setUp() throws Exception {
super.setUp();
comparator = SizeFileComparator.SIZE_COMPARATOR;
reverse = SizeFileComparator.SIZE_REVERSE;
File dir = getTestDirectory();
smallerDir = new File(dir, "smallerdir");
largerDir = new File(dir, "largerdir");
... |
package org.wildfly.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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.extension.mod_cluster;
/*
* 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 ... |
public interface SubsystemTransformer extends ResourceTransformer {
package org.jboss.as.controller.transform;
/**
* Interface that subsystems have to implement to enable custom transformation of subsystem model
* Every version of model must have its own implementation of this interface.
*
* SubsystemTransformer'... | public interface SubsystemTransformer extends ResourceTransformer {
package org.jboss.as.controller.transform;
/**
* Interface that subsystems have to implement to enable custom transformation of subsystem model
* Every version of model must have its own implementation of this interface.
*
* SubsystemTransformer'... |
private Resource transformResource(final OperationContext context, Resource root) {
return transformers.transformResource(Transformers.Factory.getTransformationContext(context), root);
}
| private Resource transformResource(final OperationContext context, Resource root) {
return transformers.transformResource(Transformers.Factory.getTransformationContext(transformers, context), root);
}
|
public static void printUsage(final PrintStream out) {
init();
out.print(usage());
}
| public static void printUsage(final PrintStream out) {
init();
out.print(usage("appclient"));
}
|
public static void printUsage(final PrintStream out) {
init();
out.print(usage());
}
| public static void printUsage(final PrintStream out) {
init();
out.print(usage("domain"));
}
|
public static void printUsage(final PrintStream out) {
init();
out.print(usage());
}
| public static void printUsage(final PrintStream out) {
init();
out.print(usage("standalone"));
}
|
public void testClassLevelExcludeDefaultMethodLevelExcludeClassInterceptors() throws NamingException {
InitialContext ctx = new InitialContext();
NoDefaultInterceptorsSLSB bean = (NoDefaultInterceptorsSLSB) ctx.lookup("java:module/" + NoDefaultInterceptorsSLSB.class.getSimpleName());
final S... | public void testClassLevelExcludeDefaultMethodLevelExcludeClassInterceptors() throws NamingException {
InitialContext ctx = new InitialContext();
NoDefaultInterceptorsSLSB bean = (NoDefaultInterceptorsSLSB) ctx.lookup("java:module/" + NoDefaultInterceptorsSLSB.class.getSimpleName());
final S... |
public void topologyChanged(TopologyChangedEvent<String, ?> event) {
if (event.isPre()) return;
Cache<String, ?> cache = event.getCache();
Address localAddress = cache.getCacheManager().getAddress();
ConsistentHash oldHash = event.getConsistentHashAtStart();
ConsistentHash n... | public void topologyChanged(TopologyChangedEvent<String, ?> event) {
if (event.isPre()) return;
Cache<String, ?> cache = event.getCache();
Address localAddress = cache.getCacheManager().getAddress();
ConsistentHash oldHash = event.getConsistentHashAtStart();
ConsistentHash n... |
@Deprecated static final String BATCHING = "batching";
/*
* 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 so... | @Deprecated static final String BATCHING = "batching";
/*
* 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 so... |
String LIVE_CONNECTOR_REF ="live-connector-ref";
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software... | String LIVE_CONNECTOR_REF ="live-connector-ref";
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operati... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operati... |
private GetInstalledDriverOperationHandler() {
validator.registerValidator(JDBC_DRIVER_NAME, new StringLengthValidator(1));
}
| private GetInstalledDriverOperationHandler() {
validator.registerValidator(DRIVER_NAME.getName(), new StringLengthValidator(1));
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String attr = operation.get(ModelDescriptionConstants.NAME).asString();
//These are undefined for the community version
if (env != null) {
if (attr.equals(Mod... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String attr = operation.get(ModelDescriptionConstants.NAME).asString();
//These are undefined for the community version
if (env != null && env.getProductConfig() != null) {
... |
<I, D> ServiceBuilder<SSOManagerFactory<I, D>> build(ServiceTarget target, ServiceName name, String host);
/*
* 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 listi... | <I, D> ServiceBuilder<SSOManagerFactory<I, D>> build(ServiceTarget target, ServiceName name, String host);
/*
* 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 listi... |
public String changeSessionId(HttpServerExchange exchange, SessionConfig config) {
Session<LocalSessionContext> oldSession = this.getSession();
SessionManager<LocalSessionContext> manager = this.manager.getSessionManager();
String id = manager.createSessionId();
Session<LocalSessionC... | public String changeSessionId(HttpServerExchange exchange, SessionConfig config) {
Session<LocalSessionContext> oldSession = this.getSession();
SessionManager<LocalSessionContext> manager = this.manager.getSessionManager();
String id = manager.createIdentifier();
Session<LocalSession... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.