buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void processMessage(final Channel channel, final MessageInputStream messageInputStream) throws IOException { final DataInputStream input = new DataInputStream(messageInputStream); // read the invocation id final short invocationId = input.readShort(); // read the ejb module in...
public void processMessage(final Channel channel, final MessageInputStream messageInputStream) throws IOException { final DataInputStream input = new DataInputStream(messageInputStream); // read the invocation id final short invocationId = input.readShort(); // read the ejb module in...
public RegressionResults regress(int[] variablesToInclude) throws ModelSpecificationException{ if( variablesToInclude == null || variablesToInclude.length == 0){ throw new MathIllegalArgumentException(LocalizedFormats.ARRAY_ZERO_LENGTH_OR_NULL_NOTALLOWED); } if( variablesToInclude....
public RegressionResults regress(int[] variablesToInclude) throws ModelSpecificationException{ if( variablesToInclude == null || variablesToInclude.length == 0){ throw new MathIllegalArgumentException(LocalizedFormats.ARRAY_ZERO_LENGTH_OR_NULL_NOT_ALLOWED); } if( variablesToInclude...
protected void sendResponse(final OutputStream outputStream) throws IOException { final Marshaller marshaller = getMarshaller(); marshaller.start(createByteOutput(outputStream)); Set<String> serverManagerNames = domainController.getServerManagerNames(); ...
protected void sendResponse(final OutputStream outputStream) throws IOException { final Marshaller marshaller = getMarshaller(); marshaller.start(createByteOutput(outputStream)); Set<String> serverManagerNames = domainController.getServerManagerNames(); ...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { if(!ctx.hasArguments()) { throw new OperationFormatException("Arguments are missing"); } //String target = null; String restype = null; //String description = null; Strin...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { if(!ctx.getParsedArguments().hasArguments()) { throw new OperationFormatException("Arguments are missing"); } //String target = null; String restype = null; //String description ...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { if(!ctx.hasArguments()) { throw new OperationFormatException("Arguments are missing"); } //String target = null; String jndiName = null; String[] args = ctx.getArgum...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { if(!ctx.getParsedArguments().hasArguments()) { throw new OperationFormatException("Arguments are missing"); } //String target = null; String jndiName = null; String[...
protected void doHandle(CommandContext ctx) { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); final int batchSize = batch...
protected void doHandle(CommandContext ctx) { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); final int batchSize = batch...
protected void doHandle(CommandContext ctx) { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); final int batchSize = batch...
protected void doHandle(CommandContext ctx) { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); final int batchSize = batch...
private void setDate(String headerName, long date) { SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0]); dateFormat.setTimeZone(GMT); set(headerName, dateFormat.format(new Date(date))); }
private void setDate(String headerName, long date) { SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0], Locale.US); dateFormat.setTimeZone(GMT); set(headerName, dateFormat.format(new Date(date))); }
ListenableFuture<Boolean> shutdown(); /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
ListenableFuture<Boolean> shutdown(); /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
public void testUtilities() throws ParseException { SpelExpression expr = (SpelExpression)parser.parseExpression("3+4+5+6+7-2"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); SpelUtilities.printAbstractSyntaxTree(ps, expr); ps.flush(); String s = baos.toS...
public void testUtilities() throws ParseException { SpelExpression expr = (SpelExpression)parser.parseExpression("3+4+5+6+7-2"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); SpelUtilities.printAbstractSyntaxTree(ps, expr); ps.flush(); String s = baos.toS...
void prepare(Map StormConf); package backtype.storm.nimbus; import backtype.storm.generated.InvalidTopologyException; import backtype.storm.generated.StormTopology; import java.util.Map; public interface ITopologyValidator { void prepare(String topologyName, Map topologyConf, StormTopology topology, Map NimbusCo...
void prepare(Map StormConf); package backtype.storm.nimbus; import backtype.storm.generated.InvalidTopologyException; import backtype.storm.generated.StormTopology; import java.util.Map; public interface ITopologyValidator { void prepare(Map StormConf); void validate(String topologyName, Map topologyConf, St...
S createSession(String sessionId, HandlerProvider<WebSocketHandler<?>> handler); /* * 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...
S createSession(String sessionId, HandlerProvider<WebSocketHandler<?>> handler); /* * 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 AbstractServerSockJsSession(String sessionId, SockJsConfiguration config, HandlerProvider<WebSocketHandler> handler) { super(sessionId, handler); this.sockJsConfig = config; }
public AbstractServerSockJsSession(String sessionId, SockJsConfiguration config, HandlerProvider<WebSocketHandler<?>> handler) { super(sessionId, handler); this.sockJsConfig = config; }
HandlerProvider<WebSocketHandler<?>> handler) throws IOException, TransportErrorException; /* * 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 ...
HandlerProvider<WebSocketHandler<?>> handler) throws IOException, TransportErrorException; /* * 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 ...
HandlerProvider<WebSocketHandler<?>> handler, AbstractSockJsSession session) throws TransportErrorException; /* * 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 obt...
HandlerProvider<WebSocketHandler<?>> handler, AbstractSockJsSession session) throws TransportErrorException; /* * 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 obt...
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, HandlerProvider<WebSocketHandler> webSocketHandler, AbstractSockJsSession session) throws TransportErrorException { if (session == null) { response.setStatusCode(HttpStatus.NOT_FOUND); return; } handleRequestI...
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, HandlerProvider<WebSocketHandler<?>> webSocketHandler, AbstractSockJsSession session) throws TransportErrorException { if (session == null) { response.setStatusCode(HttpStatus.NOT_FOUND); return; } handleReque...
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, HandlerProvider<WebSocketHandler> webSocketHandler, AbstractSockJsSession session) throws TransportErrorException { // Set content type before writing response.getHeaders().setContentType(getContentType()); Abstract...
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, HandlerProvider<WebSocketHandler<?>> webSocketHandler, AbstractSockJsSession session) throws TransportErrorException { // Set content type before writing response.getHeaders().setContentType(getContentType()); Abstr...
public AbstractHttpServerSockJsSession(String sessionId, SockJsConfiguration sockJsConfig, HandlerProvider<WebSocketHandler> handler) { super(sessionId, sockJsConfig, handler); }
public AbstractHttpServerSockJsSession(String sessionId, SockJsConfiguration sockJsConfig, HandlerProvider<WebSocketHandler<?>> handler) { super(sessionId, sockJsConfig, handler); }
public PollingServerSockJsSession(String sessionId, SockJsConfiguration sockJsConfig, HandlerProvider<WebSocketHandler> handler) { super(sessionId, sockJsConfig, handler); }
public PollingServerSockJsSession(String sessionId, SockJsConfiguration sockJsConfig, HandlerProvider<WebSocketHandler<?>> handler) { super(sessionId, sockJsConfig, handler); }
public StreamingServerSockJsSession(String sessionId, SockJsConfiguration sockJsConfig, HandlerProvider<WebSocketHandler> handler) { super(sessionId, sockJsConfig, handler); }
public StreamingServerSockJsSession(String sessionId, SockJsConfiguration sockJsConfig, HandlerProvider<WebSocketHandler<?>> handler) { super(sessionId, sockJsConfig, handler); }
public PollingServerSockJsSession createSession(String sessionId, HandlerProvider<WebSocketHandler> handler) { Assert.notNull(getSockJsConfig(), "This transport requires SockJsConfiguration"); return new PollingServerSockJsSession(sessionId, getSockJsConfig(), handler); } }
public PollingServerSockJsSession createSession(String sessionId, HandlerProvider<WebSocketHandler<?>> handler) { Assert.notNull(getSockJsConfig(), "This transport requires SockJsConfiguration"); return new PollingServerSockJsSession(sessionId, getSockJsConfig(), handler); } }
public final boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, HandlerProvider<WebSocketHandler> handler) throws IOException { logger.debug("Starting handshake for " + request.getURI()); if (!HttpMethod.GET.equals(request.getMethod())) { response.setStatusCode(HttpStatus.METHOD_NO...
public final boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, HandlerProvider<WebSocketHandler<?>> handler) throws IOException { logger.debug("Starting handshake for " + request.getURI()); if (!HttpMethod.GET.equals(request.getMethod())) { response.setStatusCode(HttpStatus.METHOD...
HandlerProvider<WebSocketHandler<?>> handler) throws IOException; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
HandlerProvider<WebSocketHandler<?>> handler) throws IOException; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
HandlerProvider<WebSocketHandler<?>> handlerProvider) throws IOException; /* * 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 * * ...
HandlerProvider<WebSocketHandler<?>> handlerProvider) throws IOException; /* * 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 Object processInvocation(final InterceptorContext context) throws Exception { final EJBComponent component = getComponent(context, EJBComponent.class); if (!component.isStatisticsEnabled()) return context.proceed(); final Long startWaitTime = (Long) context.getPrivateData(...
public Object processInvocation(final InterceptorContext context) throws Exception { final EJBComponent component = getComponent(context, EJBComponent.class); if (!component.isStatisticsEnabled()) return context.proceed(); final Long startWaitTime = (Long) context.getPrivateData(...
private final int code; ErrorCode(int code){ this.code = code; } int getCode() { return code; } static ErrorCode parseCode(int code) { if (code == NONE.getCode()) { return NONE; } else if (code == HOST_ALR...
public int getCode() { return code; } static ErrorCode parseCode(int code) { if (code == NONE.getCode()) { return NONE; } else if (code == HOST_ALREADY_EXISTS.getCode()) { return HOST_ALREADY_EXISTS; } else if (code...
public interface HostController { /* * 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 redis...
public interface HostController { /* * 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 redis...
private void audit(String level, AuditManager auditManager, Principal userPrincipal) { AuditEvent auditEvent = new AuditEvent(AuditLevel.SUCCESS); Map<String, Object> ctxMap = new HashMap<String, Object>(); ctxMap.put("principal", userPrincipal != null ? userPrincipal : "null"); ctxM...
private void audit(String level, AuditManager auditManager, Principal userPrincipal) { AuditEvent auditEvent = new AuditEvent(AuditLevel.SUCCESS); Map<String, Object> ctxMap = new HashMap<String, Object>(); ctxMap.put("principal", userPrincipal != null ? userPrincipal.getName() : "null"); ...
public static final SimpleAttributeDefinition USER_DN = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.USER_DN, ModelType.STRING, true) .setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, true, false)).setDefaultValue(new ModelNode("dn")) .setFlags(AttributeAccess.F...
public static final SimpleAttributeDefinition USER_DN = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.USER_DN, ModelType.STRING, true) .setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, true, false)).setDefaultValue(new ModelNode(UserLdapCallbackHandler.DEFAULT_USER_DN)) ...
public Map<String, List<String>> toNativeHeaderMap() { Map<String, List<String>> result = super.toNativeHeaderMap(); String destination = super.getDestination(); if (destination != null) { result.put(STOMP_DESTINATION_HEADER, Arrays.asList(destination)); } MimeType contentType = super.getContentType();...
public Map<String, List<String>> toNativeHeaderMap() { Map<String, List<String>> result = super.toNativeHeaderMap(); String destination = super.getDestination(); if (destination != null) { result.put(STOMP_DESTINATION_HEADER, Arrays.asList(destination)); } MimeType contentType = super.getContentType();...
public void write() throws Exception { String body = "<root>Hello World</root>"; MockHttpOutputMessage outputMessage = new MockHttpOutputMessage(); marshaller.marshal(eq(body), isA(StreamResult.class)); replay(marshaller, unmarshaller); converter.write(body, outputMessage); assertEquals("Invalid content-...
public void write() throws Exception { String body = "<root>Hello World</root>"; MockHttpOutputMessage outputMessage = new MockHttpOutputMessage(); marshaller.marshal(eq(body), isA(StreamResult.class)); replay(marshaller, unmarshaller); converter.write(body, null, outputMessage); assertEquals("Invalid co...
public void write() throws Exception { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); Document document = documentBuilderFactory.newDocumentBuilder().newDocument(); Element rootElement = document.createElement("root"); doc...
public void write() throws Exception { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); Document document = documentBuilderFactory.newDocumentBuilder().newDocument(); Element rootElement = document.createElement("root"); doc...
String DEFAULT_STACK = "default-stack"; /* * JBoss, Home of Professional Open Source. * Copyright 2014, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
String DEFAULT_STACK = "default-stack"; /* * JBoss, Home of Professional Open Source. * Copyright 2014, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
protected HandlerAdapter getHandlerAdapter(Object handler) throws ServletException { for (HandlerAdapter ha : this.handlerAdapters) { if (logger.isTraceEnabled()) { logger.trace("Testing handler adapter [" + ha + "]"); } if (ha.supports(handler)) { return ha; } } throw new ServletException("N...
protected HandlerAdapter getHandlerAdapter(Object handler) throws ServletException { for (HandlerAdapter ha : this.handlerAdapters) { if (logger.isTraceEnabled()) { logger.trace("Testing handler adapter [" + ha + "]"); } if (ha.supports(handler)) { return ha; } } throw new ServletException("N...
public static String formatPeriod(final long startMillis, final long endMillis, final String format, final boolean padWithZeros, final TimeZone timezone) { // Used to optimise for differences under 28 days and // called formatDuration(millis, format); however this did not work ...
public static String formatPeriod(final long startMillis, final long endMillis, final String format, final boolean padWithZeros, final TimeZone timezone) { // Used to optimise for differences under 28 days and // called formatDuration(millis, format); however this did not work ...
public ModelNode getModelDescription(final Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode operation = new ModelNode(); operation.get(OPERATION_NAME).set(ADD); operation.get(DESCRIPTION).set(bundle.getString("jdbc-driver.a...
public ModelNode getModelDescription(final Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode operation = new ModelNode(); operation.get(OPERATION_NAME).set(ADD); operation.get(DESCRIPTION).set(bundle.getString("jdbc-driver.a...
public static double safeNorm(double[] v) { double rdwarf = 3.834e-20; double rgiant = 1.304e+19; double s1 = 0; double s2 = 0; double s3 = 0; double x1max = 0; double x3max = 0; double floatn = (double) v.length; double agiant = rgiant / float...
public static double safeNorm(double[] v) { double rdwarf = 3.834e-20; double rgiant = 1.304e+19; double s1 = 0; double s2 = 0; double s3 = 0; double x1max = 0; double x3max = 0; double floatn = v.length; double agiant = rgiant / floatn; ...
public void testChangeSetResults() throws Exception { final String archivename = "cpio"; File input = this.createArchive(archivename); ArchiveOutputStream out = null; ArchiveInputStream ais = null; File result = File.createTempFile("test", "."+archivename); result.de...
public void testChangeSetResults() throws Exception { final String archivename = "cpio"; File input = this.createArchive(archivename); ArchiveOutputStream out = null; ArchiveInputStream ais = null; File result = File.createTempFile("test", "."+archivename); result.de...
boolean converged(int iteration, PointVectorValuePair previous, PointVectorValuePair current); /* * 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 ...
boolean converged(int iteration, PointVectorValuePair previous, PointVectorValuePair current); /* * 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 ...
public void testAddModule() throws Exception { // start from a base installation PatchInfo info = new LocalPatchInfo(randomString(), PatchInfo.BASE, Collections.<String>emptyList(), env); // build a one-off patch for the base installation // with 1 added module String patch...
public void testAddModule() throws Exception { // start from a base installation PatchInfo info = new LocalPatchInfo(randomString(), PatchInfo.BASE, Collections.<String>emptyList(), env); // build a one-off patch for the base installation // with 1 added module String patch...
protected Message buildMessage(Session session, Object result) throws JMSException { MessageConverter converter = getMessageConverter(); if (converter != null) { if (result instanceof org.springframework.messaging.Message) { return messagingMessageConverter.toMessage(result, session); } else { ret...
protected Message buildMessage(Session session, Object result) throws JMSException { MessageConverter converter = getMessageConverter(); if (converter != null) { if (result instanceof org.springframework.messaging.Message) { return this.messagingMessageConverter.toMessage(result, session); } else { ...
private void invokeListener(JmsListenerEndpoint endpoint, Message message) throws JMSException { DefaultMessageListenerContainer messageListenerContainer = containerFactory.createMessageListenerContainer(endpoint); Object listener = messageListenerContainer.getMessageListener(); if (listener instanceof Sessi...
private void invokeListener(JmsListenerEndpoint endpoint, Message message) throws JMSException { DefaultMessageListenerContainer messageListenerContainer = containerFactory.createListenerContainer(endpoint); Object listener = messageListenerContainer.getMessageListener(); if (listener instanceof SessionAware...
public void setUp() { ctx = new ClassPathXmlApplicationContext("bean-name-pointcut-tests.xml", getClass()); testBean1 = (ITestBean) ctx.getBean("testBean1"); testBean2 = (ITestBean) ctx.getBean("testBean2"); testBeanContainingNestedBean = (ITestBean) ctx.getBean("testBeanContainingNestedBean"); testFactoryBe...
public void setUp() { ctx = new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass()); testBean1 = (ITestBean) ctx.getBean("testBean1"); testBean2 = (ITestBean) ctx.getBean("testBean2"); testBeanContainingNestedBean = (ITestBean) ctx.getBean("testBeanContainingNestedBean"); testFact...
public void testAspect() { // nothing to really test; it is enough if we don't get error while creating app context new ClassPathXmlApplicationContext("implicit-jp-argument-matching-atAspectJ-tests.xml", getClass()); }
public void testAspect() { // nothing to really test; it is enough if we don't get error while creating app context new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass()); }
public void testAspect() { // nothing to really test; it is enough if we don't get error while creating app context new ClassPathXmlApplicationContext("implicit-jp-argument-matching-tests.xml", getClass()); }
public void testAspect() { // nothing to really test; it is enough if we don't get error while creating app context new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass()); }
public void setUp() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("proceedTests.xml", getClass()); testBean = (SimpleBean) ctx.getBean("testBean"); firstTestAspect = (ProceedTestingAspect) ctx.getBean("firstTestAspect"); secondTestAspect = (ProceedTestingAspect) ctx.getBean("secondT...
public void setUp() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("proceedTests_.xml", getClass()); testBean = (SimpleBean) ctx.getBean("testBean"); firstTestAspect = (ProceedTestingAspect) ctx.getBean("firstTestAspect"); secondTestAspect = (ProceedTestingAspect) ctx.getBean("second...
public void setUp() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("targetPointcutSelectionTests.xml", getClass()); testImpl1 = (TestInterface) ctx.getBean("testImpl1"); testImpl2 = (TestInterface) ctx.getBean("testImpl2"); testAspectForTestImpl1 = (TestAspect) ctx.getBean("testAspec...
public void setUp() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("targetPointcutSelectionTests_.xml", getClass()); testImpl1 = (TestInterface) ctx.getBean("testImpl1"); testImpl2 = (TestInterface) ctx.getBean("testImpl2"); testAspectForTestImpl1 = (TestAspect) ctx.getBean("testAspe...
private GenericConverter.ConvertiblePair getRequiredTypeInfo(Object converter, Class<?> genericIfc) { Class[] args = GenericTypeResolver.resolveTypeArguments(converter.getClass(), genericIfc); return (args != null ? new GenericConverter.ConvertiblePair(args[0], args[1]) : null); }
private GenericConverter.ConvertiblePair getRequiredTypeInfo(Object converter, Class<?> genericIfc) { Class<?>[] args = GenericTypeResolver.resolveTypeArguments(converter.getClass(), genericIfc); return (args != null ? new GenericConverter.ConvertiblePair(args[0], args[1]) : null); }
private static final ServiceName PATH_BASE = MessagingServices.JBOSS_MESSAGING.append("paths");
private static final String DEFAULT_RELATIVE_TO = "jboss.server.data.dir"; static final ServiceName PATH_BASE = MessagingServices.JBOSS_MESSAGING.append("paths");
//T[] solve(final T[] b); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 ...
//T[] solve(final T[] b); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 ...
public synchronized ModelNode doCommand(String command) throws CommandFormatException, IOException { // System.out.println("command=" + command); parsedCmd.rootNode(0); parser.parse(command, parsedCmd); ModelNode request = parsedCmd.toOperationRequest(cmdCtx); return client.ex...
public synchronized ModelNode doCommand(String command) throws CommandFormatException, IOException { System.out.println("command=" + command); parsedCmd.rootNode(0); parser.parse(command, parsedCmd); ModelNode request = parsedCmd.toOperationRequest(cmdCtx); return client.execute(requ...
private void addManagementConsole(final DeploymentUnit deploymentUnit, final PersistenceUnitMetadata pu, final PersistenceUnitService persistenceUnitService, final PersistenceProviderAdaptor adaptor) { ManagementAdaptor managementAdaptor = adaptor.getManagementAdaptor()...
private void addManagementConsole(final DeploymentUnit deploymentUnit, final PersistenceUnitMetadata pu, final PersistenceUnitService persistenceUnitService, final PersistenceProviderAdaptor adaptor) { ManagementAdaptor managementAdaptor = adaptor.getManagementAdaptor()...
private final PersistenceUnitServiceRegistry persistenceUnitRegistry; SecondLevelCacheResourceDefinition(final PersistenceUnitServiceRegistry persistenceUnitRegistry) { super(PathElement.pathElement(HibernateDescriptionConstants.CACHE), HibernateDescriptions.getResourceDescriptionResolv...
private final PersistenceUnitServiceRegistry persistenceUnitRegistry; SecondLevelCacheResourceDefinition(final PersistenceUnitServiceRegistry persistenceUnitRegistry) { super(PathElement.pathElement(HibernateDescriptionConstants.ENTITYCACHE), HibernateDescriptions.getResourceDescription...
Resource createPersistenceUnitResource(final String persistenceUnitName, final String providerLabel); /* * 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...
Resource createPersistenceUnitResource(final String persistenceUnitName, final String providerLabel); /* * 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...
private ServerGroupAddHandler() { validator.registerValidator(PROFILE, new StringLengthValidator(1)); validator.registerValidator(SOCKET_BINDING_GROUP, new StringLengthValidator(1, Integer.MAX_VALUE, true, false)); validator.registerValidator(SOCKET_BINDING_PORT_OFFSET, new ModelTypeValidato...
private ServerGroupAddHandler() { validator.registerValidator(PROFILE, new StringLengthValidator(1)); validator.registerValidator(SOCKET_BINDING_GROUP, new StringLengthValidator(1, Integer.MAX_VALUE, false, false)); validator.registerValidator(SOCKET_BINDING_PORT_OFFSET, new ModelTypeValidat...
protected boolean requiresRuntime(OperationContext context) { return false; }
protected boolean requiresRuntime(OperationContext context) { return context.getProcessType().isServer(); }
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode model = context.readModel(PathAddress.EMPTY_ADDRESS); PathAddress rootAddress = PathAddress.pathAddress(PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement()); ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode model = context.readModel(PathAddress.EMPTY_ADDRESS); PathAddress rootAddress = PathAddress.pathAddress(PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement()); ...
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> list) throws XMLStreamException { // No attributes if (reader.getAttributeCount() > 0) { throw unexpectedAttribute(reader, 0); } final ModelNode address = new ModelNode(); address...
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> list) throws XMLStreamException { // No attributes if (reader.getAttributeCount() > 0) { throw unexpectedAttribute(reader, 0); } final ModelNode address = new ModelNode(); address...
public void startServers() { // TODO figure out concurrency controls // hostLock.lock(); // should this be domainLock? // try { ServerMaker serverMaker = new ServerMaker(environment, processManagerSlave, messageHandler); for (ServerElement serverEl : hostConfig.getServ...
public void startServers() { // TODO figure out concurrency controls // hostLock.lock(); // should this be domainLock? // try { ServerMaker serverMaker = new ServerMaker(environment, processManagerSlave, messageHandler); for (ServerElement serverEl : hostConfig.getServ...
public State execute() { stateValues.setKnownGroups(new HashMap<String, String>()); if (stateValues.getOptions().getGroupProperties() != null && stateValues.getOptions().getUserProperties() == null) { return new ErrorState(theConsole, MESSAGES.groupPropertiesButNoUserProperties(stateVal...
public State execute() { stateValues.setKnownGroups(new HashMap<String, String>()); if (stateValues.getOptions().getGroupProperties() != null && stateValues.getOptions().getUserProperties() == null) { return new ErrorState(theConsole, MESSAGES.groupPropertiesButNoUserProperties(stateVal...
private boolean maybeEatNullReference() { if (peekToken(TokenKind.IDENTIFIER)) { Token nullToken = peekToken(); if (!nullToken.stringValue().equals("null")) { return false; } nextToken(); constructedNodes.push(new NullLiteral(toPos(nullToken))); return true; } return false; }
private boolean maybeEatNullReference() { if (peekToken(TokenKind.IDENTIFIER)) { Token nullToken = peekToken(); if (!nullToken.stringValue().toLowerCase().equals("null")) { return false; } nextToken(); constructedNodes.push(new NullLiteral(toPos(nullToken))); return true; } return false; }...
public static DataAccessException convertHibernateAccessException(HibernateException ex) { if (ex instanceof JDBCConnectionException) { return new DataAccessResourceFailureException(ex.getMessage(), ex); } if (ex instanceof SQLGrammarException) { SQLGrammarException jdbcEx = (SQLGrammarException) ex; re...
public static DataAccessException convertHibernateAccessException(HibernateException ex) { if (ex instanceof JDBCConnectionException) { return new DataAccessResourceFailureException(ex.getMessage(), ex); } if (ex instanceof SQLGrammarException) { SQLGrammarException jdbcEx = (SQLGrammarException) ex; re...
public static DataAccessException convertJpaAccessExceptionIfPossible(RuntimeException ex) { // Following the JPA specification, a persistence provider can also // throw these two exceptions, besides PersistenceException. if (ex instanceof IllegalStateException) { return new InvalidDataAccessApiUsageException...
public static DataAccessException convertJpaAccessExceptionIfPossible(RuntimeException ex) { // Following the JPA specification, a persistence provider can also // throw these two exceptions, besides PersistenceException. if (ex instanceof IllegalStateException) { return new InvalidDataAccessApiUsageException...
protected void setPet(Pet pet) { this.pet = pet; } }
public void setPet(Pet pet) { this.pet = pet; } }
private void processXmlManagedBeans(final DeploymentUnit deploymentUnit, final Set<String> managedBeanClasses) { for (final VirtualFile facesConfig : getConfigurationFiles(deploymentUnit)) { InputStream is = null; try { is = facesConfig.openStream(); f...
private void processXmlManagedBeans(final DeploymentUnit deploymentUnit, final Set<String> managedBeanClasses) { for (final VirtualFile facesConfig : getConfigurationFiles(deploymentUnit)) { InputStream is = null; try { is = facesConfig.openStream(); f...
public Object getInstance() { if(type != null) { return PortableRemoteObject.narrow(value, type); } else { return value; } }...
public Object getInstance() { if(type != null && value instanceof org.omg.CORBA.Object) { return PortableRemoteObject.narrow(value, type); } else { return value; ...
protected void handleIsIdenticalMethod(final ComponentConfiguration componentConfiguration, final ViewConfiguration configuration, final DeploymentReflectionIndex index, final Method method) { configuration.addClientInterceptor(method, StatefulIdentityInterceptorFactory.INSTANCE, InterceptorOrder.Client.EJB...
protected void handleIsIdenticalMethod(final ComponentConfiguration componentConfiguration, final ViewConfiguration configuration, final DeploymentReflectionIndex index, final Method method) { configuration.addClientInterceptor(method, StatefulIdentityInterceptor.FACTORY, InterceptorOrder.Client.EJB_EQUALS_...
protected Map<String, ModelNode> getChildren(final ModelNode result) { assertTrue(result.isDefined()); final Map<String, ModelNode> steps = new HashMap<String, ModelNode>(); for (final Property property : result.asPropertyList()) { steps.put(property.getName(), property.getValue(...
protected Map<String, ModelNode> getChildren(final ModelNode result) { assert result.isDefined(); final Map<String, ModelNode> steps = new HashMap<String, ModelNode>(); for (final Property property : result.asPropertyList()) { steps.put(property.getName(), property.getValue()); ...
public static long readSwappedLong(byte[] data, int offset) { long low = ( ( data[ offset + 0 ] & 0xff ) << 0 ) + ( ( data[ offset + 1 ] & 0xff ) << 8 ) + ( ( data[ offset + 2 ] & 0xff ) << 16 ) + ( ( data[ offset + 3 ] & 0xff ) << 24 ); long high = ...
public static long readSwappedLong(byte[] data, int offset) { long low = ( ( data[ offset + 0 ] & 0xff ) << 0 ) + ( ( data[ offset + 1 ] & 0xff ) << 8 ) + ( ( data[ offset + 2 ] & 0xff ) << 16 ) + ( ( data[ offset + 3 ] & 0xff ) << 24 ); long high = ...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) { if (context instanceof BootOperationContext) { /* set Hibernate persistence provider as the default provider */ javax.persistence.spi.PersistenceProviderResolverHolder.setPe...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) { if (context instanceof BootOperationContext) { /* set Hibernate persistence provider as the default provider */ javax.persistence.spi.PersistenceProviderResolverHolder.setPe...
long[] packCrcs; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (t...
long[] packCrcs; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (t...
long crc; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lic...
long crc; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lic...
long nextHeaderCrc; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * ...
long nextHeaderCrc; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * ...
long[] crcs; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "...
long[] crcs; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "...
* public RequestMappingHandlerAdapter requestMappingHandlerAdapter() { * // Create or delegate to "super" to create and * // customize properties of RequestMapingHandlerAdapter * } * } * </pre> * * @see WebMvcConfigurer * @see WebMvcConfigurerAdapter * * @author Dave Syer * @author Rossen Stoyanchev * @a...
* public RequestMappingHandlerAdapter requestMappingHandlerAdapter() { * // Create or delegate to "super" to create and * // customize properties of RequestMapingHandlerAdapter * } * } * </pre> * * @see WebMvcConfigurer * @see WebMvcConfigurerAdapter * * @author Dave Syer * @author Rossen Stoyanchev * @a...
T init(TridentCollector collector, TridentTuple group); package storm.trident.operation; import java.io.Serializable; import java.util.Map; import storm.trident.tuple.TridentTuple; public interface GroupedMultiReducer<T> extends Serializable { void prepare(Map conf, TridentMultiReducerContext context); T in...
T init(TridentCollector collector, TridentTuple group); package storm.trident.operation; import java.io.Serializable; import java.util.Map; import storm.trident.tuple.TridentTuple; public interface GroupedMultiReducer<T> extends Serializable { void prepare(Map conf, TridentMultiReducerContext context); T in...
private boolean hasInjectionPoint(DeploymentUnit depUnit, String anName) { boolean result = false; CompositeIndex compositeIndex = depUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX); List<AnnotationInstance> annotationList = compositeIndex.getAnnotations(DotName.createSimple(anNam...
private boolean hasInjectionPoint(DeploymentUnit depUnit, String anName) { boolean result = false; CompositeIndex compositeIndex = depUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX); List<AnnotationInstance> annotationList = compositeIndex.getAnnotations(DotName.createSimple(anNam...
<A, D> ServiceBuilder<SSOManagerFactory<A, 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...
<A, D> ServiceBuilder<SSOManagerFactory<A, 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...
long SIZE_UNKNOWN = -1; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0...
long SIZE_UNKNOWN = -1; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0...
public void reconnectServer(final String serverName, final ModelNode domainModel, final boolean running){ final String processName = ManagedServer.getServerProcessName(serverName); final ManagedServer existing = servers.get(processName); if(existing != null) { // FIXME log.warnf...
public void reconnectServer(final String serverName, final ModelNode domainModel, final boolean running){ final String processName = ManagedServer.getServerProcessName(serverName); final ManagedServer existing = servers.get(processName); if(existing != null) { // FIXME log.warnf...
public static <V> ResourceInjection create(final ResourceInjectionConfiguration resourceConfiguration, final Class<?> beanClass, final ClassReflectionIndex<?> reflectionIndex, final Value<V> value) { final Class<?> argClass; try { argClass = beanClass.getClassLoader().loa...
public static <V> ResourceInjection create(final ResourceInjectionConfiguration resourceConfiguration, final Class<?> beanClass, final ClassReflectionIndex<?> reflectionIndex, final Value<V> value) { final Class<?> argClass; try { argClass = beanClass.getClassLoader().loa...
private <T> void addBean(final ServiceTarget serviceTarget, BeanMetaDataConfig beanConfig, Class<T> clazz, DeploymentReflectionIndex deploymentIndex) throws ClassNotFoundException { final ClassReflectionIndex<T> index = deploymentIndex.getClassIndex(clazz); final Constructor<T> constructor = index.g...
private <T> void addBean(final ServiceTarget serviceTarget, BeanMetaDataConfig beanConfig, Class<T> clazz, DeploymentReflectionIndex deploymentIndex) throws ClassNotFoundException { final ClassReflectionIndex<T> index = deploymentIndex.getClassIndex(clazz); final Constructor<T> constructor = index.g...
protected StringEncoder makeEncoder() { return new Metaphone();
protected StringEncoder createEncoder() { return new Metaphone();
public GenericBinder(Object model) { Assert.notNull(model, "The model to bind to is required"); this.model = model; bindingFactories = new LinkedHashSet<BindingFactory>(); int parserConfig = SpelExpressionParserConfiguration.CreateListsOnAttemptToIndexIntoNull | SpelExpressionParserConfiguration.GrowListsO...
public GenericBinder(Object model) { Assert.notNull(model, "The model to bind to is required"); this.model = model; bindingFactories = new LinkedHashSet<BindingFactory>(); int parserConfig = SpelExpressionParserConfiguration.CreateObjectIfAttemptToReferenceNull | SpelExpressionParserConfiguration.GrowLists...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software...
package org.jboss.as.ee.deployment.spi; /* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software...
public void start(StartContext context) throws StartException { log.debugf("Starting DataSources Service"); }
public void start(StartContext context) throws StartException { log.infof("Starting DataSources Service"); }
public static Archive<?> deployment1() { JavaArchive jar = createJar(ARCHIVE_NAME_CLIENT); jar.addClasses(RemoteLocalCallTestCase.class); jar.addAsManifestResource("META-INF/jboss-ejb-client-receivers.xml", "jboss-ejb-client.xml"); return jar; }
public static Archive<?> deployment1() { JavaArchive jar = createJar(ARCHIVE_NAME_CLIENT); jar.addClasses(RemoteLocalCallTestCase.class); jar.addAsManifestResource("META-INF/jboss-ejb-client.xml", "jboss-ejb-client.xml"); return jar; }
public static Archive<?> clientDeployment() { final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, CLIENT_DEPLOYMENT + ".jar"); jar.addClasses(ClientEjb.class, TransactionalRemote.class, TransactionInvocationTestCase.class, TransactionalStatefulRemote.class); jar.addA...
public static Archive<?> clientDeployment() { final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, CLIENT_DEPLOYMENT + ".jar"); jar.addClasses(ClientEjb.class, TransactionalRemote.class, TransactionInvocationTestCase.class, TransactionalStatefulRemote.class); jar.addA...
public double getDegreesOfFreedom() { return gamma.getAlpha() * 2.0; }
public double getDegreesOfFreedom() { return gamma.getShape() * 2.0; }
public void testPredicatedMap() { final Predicate<Object> p = getPredicate(); Map<Object, Object> map = MapUtils.predicatedMap(new HashMap<Object, Object>(), p, p); assertTrue("returned object should be a PredicatedMap", map instanceof PredicatedMap); try { map = MapUtils...
public void testPredicatedMap() { final Predicate<Object> p = getPredicate(); Map<Object, Object> map = MapUtils.predicatedMap(new HashMap<Object, Object>(), p, p); assertTrue("returned object should be a PredicatedMap", map instanceof PredicatedMap); try { MapUtils.predi...
package org.springframework.tests.sample.beans; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
package org.springframework.tests.sample.beans; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
package org.springframework.core.type; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
package org.springframework.core.type; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
package org.springframework.core.type; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
package org.springframework.core.type; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
package org.springframework.tests; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
package org.springframework.tests; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
protected Object evaluateBeanDefinitionString(String value, BeanDefinition beanDefinition) { if (this.beanExpressionResolver == null) { return value; } Scope scope = getRegisteredScope(beanDefinition.getScope()); return this.beanExpressionResolver.evaluate(value, new BeanExpressionContext(this, scope)); }
protected Object evaluateBeanDefinitionString(String value, BeanDefinition beanDefinition) { if (this.beanExpressionResolver == null) { return value; } Scope scope = (beanDefinition != null ? getRegisteredScope(beanDefinition.getScope()) : null); return this.beanExpressionResolver.evaluate(value, new BeanEx...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final ServiceController<?> controller = context.getServiceRegistry(false).getService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName)); if(con...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final ServiceController<?> controller = context.getServiceRegistry(false).getService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName)); if(con...
public static void assertEquals(String msg, double[] expected, double[] observed, double tolerance) { StringBuffer out = new StringBuffer(msg); if (expected.length != observed.length) { out.append("\n Arrays not same length. \n"); out.append("expected has length "); ...
public static void assertEquals(String msg, double[] expected, double[] observed, double tolerance) { StringBuffer out = new StringBuffer(msg); if (expected.length != observed.length) { out.append("\n Arrays not same length. \n"); out.append("expected has length "); ...