buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void handleMetrics(ShellMsg shellMsg) { //get metric name String name = shellMsg.getMetricName(); if (name.isEmpty()) { throw new RuntimeException("Receive Metrics name is empty"); } //get metric by name IMetric iMetric = _context.getRegis...
private void handleMetrics(ShellMsg shellMsg) { //get metric name String name = shellMsg.getMetricName(); if (name.isEmpty()) { throw new RuntimeException("Receive Metrics name is empty"); } //get metric by name IMetric iMetric = _context.getRegis...
public abstract Pool createPool(final StatelessObjectFactory statelessObjectFactory); }
public abstract <T> Pool<T> createPool(final StatelessObjectFactory<T> statelessObjectFactory); }
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { if (context.isResourceServiceRestartAllowed()) { this.add.installRuntimeService(context, model, null); } else { context.revertReloadRequired(); ...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { if (context.isResourceServiceRestartAllowed()) { this.add.installRuntimeServices(context, model, null); } else { context.revertReloadRequired(); ...
private static final SimpleAttributeDefinition VIRTUAL_NODES = new SimpleAttributeDefinitionBuilder(ModelKeys.VIRTUAL_NODES, ModelType.INT, true)
public static final PathElement DISTRIBUTED_CACHE_PATH = PathElement.pathElement(ModelKeys.DISTRIBUTED_CACHE); // attributes static final SimpleAttributeDefinition L1_LIFESPAN = new SimpleAttributeDefinitionBuilder(ModelKeys.L1_LIFESPAN, ModelType.LONG, true) .setXmlName(Att...
private Number executeInsertAndReturnKeyInternal(final List<Object> values) { KeyHolder kh = executeInsertAndReturnKeyHolderInternal(values); if (kh != null && kh.getKey() != null) { return kh.getKey(); } else { throw new DataIntegrityViolationException("Unable to retreive the generated key for the inser...
private Number executeInsertAndReturnKeyInternal(final List<Object> values) { KeyHolder kh = executeInsertAndReturnKeyHolderInternal(values); if (kh != null && kh.getKey() != null) { return kh.getKey(); } else { throw new DataIntegrityViolationException("Unable to retrieve the generated key for the inser...
public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("Rule"); sb.append("{line=").append(myLine); ...
public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("Rule"); sb.append("{line=").append(myLine); ...
public void test() { PhoneticEngine engine = new PhoneticEngine(NameType.GENERIC, RuleType.APPROX, true); final String input = "Angelo"; final long startMillis = System.currentTimeMillis(); for (int i = 0; i < LOOP; i++) { engine.encode(input); } final lon...
public void test() { final PhoneticEngine engine = new PhoneticEngine(NameType.GENERIC, RuleType.APPROX, true); final String input = "Angelo"; final long startMillis = System.currentTimeMillis(); for (int i = 0; i < LOOP; i++) { engine.encode(input); } fin...
protected Class<?> resolveClass(ObjectStreamClass objectStreamClass) throws IOException, ClassNotFoundException { Class clazz = Class.forName(objectStreamClass.getName(), false, classLoader); if (clazz != null) { // the classloader knows of the class ret...
protected Class<?> resolveClass(ObjectStreamClass objectStreamClass) throws IOException, ClassNotFoundException { Class<?> clazz = Class.forName(objectStreamClass.getName(), false, classLoader); if (clazz != null) { // the classloader knows of the class ...
public void close() { for (File deployment : deployments) { try { server.undeploy(deployment); } catch (Exception e) { log.warnf(e, "Failed to undeploy %s", deployment); } } server.stop(); for(File tempFile : tempFil...
public void close() { for (File deployment : deployments) { try { server.undeploy(deployment); } catch (Exception e) { log.warnf(e, "Failed to undeploy %s", deployment); } } server.stop(); for(File tempFile : tempFil...
public ModelNode getModelDescription(Locale locale) { return ManagementDescription.getAddNativeManagementDescription(locale); }
public ModelNode getModelDescription(Locale locale) { return ManagementDescription.getAddNativeRemotingManagementDescription(locale); }
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { int portOffset = SocketBindingGroupResourceDefinition.PORT_OFFSET.resolveModelAttribute(...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { int portOffset = SocketBindingGroupResourceDefinition.PORT_OFFSET.resolveModelAttribute(...
final int i = Character.digit((char) b, URLCodec.RADIX); /* * 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 th...
final int i = Character.digit((char) b, URLCodec.RADIX); /* * 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 th...
public String toString() { StringBuilder sb = new StringBuilder(); if (byte[].class.equals(this.payload.getClass())) { sb.append("[Payload byte[").append(((byte[]) this.payload).length).append("]]"); } else { sb.append("[Payload ").append(this.payload.getClass().getSimpleName()); sb.append(" content="...
public String toString() { StringBuilder sb = new StringBuilder(); if (this.payload instanceof byte[]) { sb.append("[Payload byte[").append(((byte[]) this.payload).length).append("]]"); } else { sb.append("[Payload ").append(this.payload.getClass().getSimpleName()); sb.append(" content=").append(this....
public boolean evaluate(T object);
boolean evaluate(T object); /* * 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 requestBodyResponseBody() throws ServletException, IOException { initServlet(RequestBodyController.class); MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/something"); String requestBody = "HŽll¿ Wšrld"; request.setContent(requestBody.getBytes("UTF-8")); request.addHeader("C...
public void requestBodyResponseBody() throws ServletException, IOException { initServlet(RequestBodyController.class); MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/something"); String requestBody = "Hello World"; request.setContent(requestBody.getBytes("UTF-8")); request.addHeader("C...
private GenericOutboundConnectionResourceDefinition() { super(ADDRESS, RemotingExtension.getResourceDescriptionResolver(CommonAttributes.OUTBOUND_CONNECTION), GenericOutboundConnectionAdd.INSTANCE, OutboundConnectionRemoveHandler.INSTANCE); }
private GenericOutboundConnectionResourceDefinition() { super(ADDRESS, RemotingExtension.getResourceDescriptionResolver(CommonAttributes.OUTBOUND_CONNECTION), GenericOutboundConnectionAdd.INSTANCE, GenericOutboundConnectionRemoveHandler.INSTANCE); }
private LocalOutboundConnectionResourceDefinition() { super(ADDRESS, RemotingExtension.getResourceDescriptionResolver(CommonAttributes.LOCAL_OUTBOUND_CONNECTION), LocalOutboundConnectionAdd.INSTANCE, OutboundConnectionRemoveHandler.INSTANCE); }
private LocalOutboundConnectionResourceDefinition() { super(ADDRESS, RemotingExtension.getResourceDescriptionResolver(CommonAttributes.LOCAL_OUTBOUND_CONNECTION), LocalOutboundConnectionAdd.INSTANCE, LocalOutboundConnectionRemoveHandler.INSTANCE); }
private RemoteOutboundConnnectionResourceDefinition() { super(ADDRESS, RemotingExtension.getResourceDescriptionResolver(CommonAttributes.REMOTE_OUTBOUND_CONNECTION), RemoteOutboundConnectionAdd.INSTANCE, OutboundConnectionRemoveHandler.INSTANCE); }
private RemoteOutboundConnnectionResourceDefinition() { super(ADDRESS, RemotingExtension.getResourceDescriptionResolver(CommonAttributes.REMOTE_OUTBOUND_CONNECTION), RemoteOutboundConnectionAdd.INSTANCE, RemoteOutboundConnectionRemoveHandler.INSTANCE); }
public static final SimpleAttributeDefinition NAMING_ROOT_CONTEXT = new SimpleAttributeDefinitionBuilder( JdkORBSubsystemConstants.NAMING_ROOT_CONTEXT, ModelType.STRING, true) .setDefaultValue(new ModelNode().set("JBoss/Naming/root")) .setFlags(AttributeAccess.Flag.RESTART_ALL_SE...
public static final SimpleAttributeDefinition NAMING_ROOT_CONTEXT = new SimpleAttributeDefinitionBuilder( JdkORBSubsystemConstants.NAMING_ROOT_CONTEXT, ModelType.STRING, true) .setDefaultValue(new ModelNode().set(JdkORBSubsystemConstants.JDKORB_NAME_SERVICE_INIT_REF)) .setFlags(A...
private String deployInternal(String name, InputStream input) throws DeploymentException { try { return deployer.deploy(name, input); } catch (Exception ex) { Throwable rootCause = ex.getCause(); while (null != rootCause) { rootCause = rootCause.ge...
private String deployInternal(String name, InputStream input) throws DeploymentException { try { return deployer.deploy(name, input); } catch (Exception ex) { Throwable rootCause = ex.getCause(); while (null != rootCause && rootCause.getCause() != null) { ...
protected void doProcessConfigurationClass(ConfigurationClass configClass, AnnotationMetadata metadata) throws IOException { // recursively process any member (nested) classes first for (String memberClassName : metadata.getMemberClassNames()) { MetadataReader reader = this.metadataReaderFactory.getMetadataRea...
protected void doProcessConfigurationClass(ConfigurationClass configClass, AnnotationMetadata metadata) throws IOException { // recursively process any member (nested) classes first for (String memberClassName : metadata.getMemberClassNames()) { MetadataReader reader = this.metadataReaderFactory.getMetadataRea...
public ModelNode getModelDescription(Locale locale) { return MessagingDescriptions.getAddJndiOperation(locale, "topic"); }
public ModelNode getModelDescription(Locale locale) { return MessagingDescriptions.getAddJndiOperation(locale, "jms-topic"); }
public State execute() { if (stateValues.isSilentOrNonInteractive() == false) { if (rePrompt == false) { /* * Prompt for password. */ theConsole.printf(MESSAGES.passwordPrompt()); char[] tempChar = theConsole.readP...
public State execute() { if (stateValues.isSilentOrNonInteractive() == false) { if (rePrompt == false) { /* * Prompt for password. */ theConsole.printf(MESSAGES.passwordPrompt()); char[] tempChar = theConsole.readP...
public void overridePropertyfileLocationWrite() throws IOException, StartException { File domainUserFile = createPropertyFile("application-users.properties", "domain"); File standaloneUserFile = createPropertyFile("application-users.properties", "standalone"); File domainRolesFile = createPr...
public void overridePropertyfileLocationWrite() throws IOException, StartException { File domainUserFile = createPropertyFile("application-users.properties", "domain"); File standaloneUserFile = createPropertyFile("application-users.properties", "standalone"); File domainRolesFile = createPr...
public void remove() { if (slotFilled) { throw new IllegalStateException(); } iterator.remove(); }
public void remove() { if (slotFilled) { throw new IllegalStateException("peek() or element() called before remove()"); } iterator.remove(); }
private void parseDataSource(final XMLExtendedStreamReader reader, final List<ModelNode> list, final ModelNode parentAddress) throws XMLStreamException, ParserException, ValidateException { String poolName = null; final ModelNode operation = new ModelNode(); operation.get(OP).se...
private void parseDataSource(final XMLExtendedStreamReader reader, final List<ModelNode> list, final ModelNode parentAddress) throws XMLStreamException, ParserException, ValidateException { String poolName = null; final ModelNode operation = new ModelNode(); operation.get(OP).se...
protected String getSubsystemXml() throws IOException { //TODO: This is copied from standalone.xml you may want to try more combinations return "<subsystem xmlns=\"urn:jboss:domain:datasources:1.1\">" + " <datasources>" + " <datasource jndi-name=\"java:jbos...
protected String getSubsystemXml() throws IOException { //TODO: This is copied from standalone.xml you may want to try more combinations return "<subsystem xmlns=\"urn:jboss:domain:datasources:1.1\">" + " <datasources>" + " <datasource jndi-name=\"java:jbos...
public EstablishChannelModelControllerClient(final InetAddress address, int port){ this.hostName = address.getHostName(); this.port = port; } @Override ManagementClientChannelStrategy getClientChannelStrategy() throws URISyntaxException, IOException{ return ManagementClientChann...
public EstablishChannelModelControllerClient(final InetAddress address, int port){ this.hostName = address.getHostName(); this.port = port; } @Override ManagementClientChannelStrategy getClientChannelStrategy() throws URISyntaxException, IOException{ return ManagementClientChann...
public NewEstablishChannelModelControllerClient(final InetAddress address, int port){ this.hostName = address.getHostName(); this.port = port; } @Override ManagementClientChannelStrategy getClientChannelStrategy() throws URISyntaxException, IOException{ return ManagementClientCh...
public NewEstablishChannelModelControllerClient(final InetAddress address, int port){ this.hostName = address.getHostName(); this.port = port; } @Override ManagementClientChannelStrategy getClientChannelStrategy() throws URISyntaxException, IOException{ return ManagementClientCh...
protected NewModelControllerClientOperationHandler createOperationHandler(NewModelController modelController, ExecutorService executor) { return new NewModelControllerClientOperationHandler(null, executor, modelController); }
protected NewModelControllerClientOperationHandler createOperationHandler(NewModelController modelController, ExecutorService executor) { return new NewModelControllerClientOperationHandler(executor, modelController); }
private void processUploadRequest(final HttpExchange http) throws IOException { File tempUploadFile = null; ModelNode response = null; try { SeekResult result = seekToDeployment(http); final ModelNode dmr = new ModelNode(); dmr.get("operation").set("uplo...
private void processUploadRequest(final HttpExchange http) throws IOException { File tempUploadFile = null; ModelNode response = null; try { SeekResult result = seekToDeployment(http); final ModelNode dmr = new ModelNode(); dmr.get("operation").set("uplo...
private void flush(boolean propogate) throws IOException { int avail = baseNCodec.avail(); if (avail > 0) { byte[] buf = new byte[avail]; int c = baseNCodec.readResults(buf, 0, avail); if (c > 0) { out.write(buf, 0, c); } } ...
private void flush(boolean propogate) throws IOException { int avail = baseNCodec.available(); if (avail > 0) { byte[] buf = new byte[avail]; int c = baseNCodec.readResults(buf, 0, avail); if (c > 0) { out.write(buf, 0, c); } } ...
protected static String getMethodParamMessage(MethodParameter param) { return new StringBuilder("Could not resolve method parameter at index ") .append(param.getParameterIndex()).append(" in method: ") .append(param.getMethod().toGenericString()).toString(); }
protected static String getMethodParamMessage(MethodParameter param) { return new StringBuilder("Could not resolve method parameter at index ") .append(param.getParameterIndex()).append(" in method: ") .append(param.getMethod().toGenericString()).append(" ").toString(); }
public Object resolveArgument(MethodParameter parameter, Message<?> message) throws Exception { Class<?> paramType = parameter.getParameterType(); if (!paramType.isAssignableFrom(message.getClass())) { throw new MethodArgumentTypeMismatchException(message, parameter, "The actual message type [" + messa...
public Object resolveArgument(MethodParameter parameter, Message<?> message) throws Exception { Class<?> paramType = parameter.getParameterType(); if (!paramType.isAssignableFrom(message.getClass())) { throw new MethodArgumentTypeMismatchException(message, parameter, "The actual message type [" + messa...
public long elementHash() { long cksum = 17l; synchronized (interfaces) { cksum = calculateElementHashOf(interfaces.values(), cksum); } synchronized (extensions) { cksum = calculateElementHashOf(extensions.values(), cksum); } synchronized (jvm...
public long elementHash() { long cksum = 17L; synchronized (interfaces) { cksum = calculateElementHashOf(interfaces.values(), cksum); } synchronized (extensions) { cksum = calculateElementHashOf(extensions.values(), cksum); } synchronized (jvm...
public long elementHash() { synchronized (interfaceCriteria) { return calculateElementHashOf(interfaceCriteria.values(), 17l); } }
public long elementHash() { synchronized (interfaceCriteria) { return calculateElementHashOf(interfaceCriteria.values(), 17L); } }
public boolean hasArgument(int index) { return index < 2; } }
public boolean hasArgument(CommandContext ctx, int index) { return index < 2; } }
public boolean hasArgument(int index) { return index < 1; } }
public boolean hasArgument(CommandContext ctx, int index) { return index < 1; } }
private void handleResponseBody(Object returnValue, ServletWebRequest webRequest) throws ServletException, IOException { HttpInputMessage inputMessage = new ServletServerHttpRequest(webRequest.getRequest()); List<MediaType> acceptedMediaTypes = inputMessage.getHeaders().getAccept(); HttpOutputMessage outputM...
private void handleResponseBody(Object returnValue, ServletWebRequest webRequest) throws ServletException, IOException { HttpInputMessage inputMessage = new ServletServerHttpRequest(webRequest.getRequest()); List<MediaType> acceptedMediaTypes = inputMessage.getHeaders().getAccept(); HttpOutputMessage outputM...
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 jsonView() throws Exception { MockHttpOutputMessage outputMessage = new MockHttpOutputMessage(); JacksonViewBean bean = new JacksonViewBean(); bean.setWithView1("with"); bean.setWithView2("with"); bean.setWithoutView("without"); MappingJacksonValue jacksonValue = new MappingJacksonValue(bean);...
public void jsonView() throws Exception { MockHttpOutputMessage outputMessage = new MockHttpOutputMessage(); JacksonViewBean bean = new JacksonViewBean(); bean.setWithView1("with"); bean.setWithView2("with"); bean.setWithoutView("without"); MappingJacksonValue jacksonValue = new MappingJacksonValue(bean);...
public void jsonPostForObjectWithJacksonView() throws URISyntaxException { HttpHeaders entityHeaders = new HttpHeaders(); entityHeaders.setContentType(new MediaType("application", "json", Charset.forName("UTF-8"))); MySampleBean bean = new MySampleBean("with", "with", "without"); MappingJacksonValue jacksonVal...
public void jsonPostForObjectWithJacksonView() throws URISyntaxException { HttpHeaders entityHeaders = new HttpHeaders(); entityHeaders.setContentType(new MediaType("application", "json", Charset.forName("UTF-8"))); MySampleBean bean = new MySampleBean("with", "with", "without"); MappingJacksonValue jacksonVal...
private Median getTestMedian(EstimationType type) { NaNStrategy strategy = (type == LEGACY) ? NaNStrategy.FIXED : NaNStrategy.REMOVED; return new Median().withEstimationtype(type).withNaNStrategy(strategy); }
private Median getTestMedian(EstimationType type) { NaNStrategy strategy = (type == LEGACY) ? NaNStrategy.FIXED : NaNStrategy.REMOVED; return new Median().withEstimationType(type).withNaNStrategy(strategy); }
public static final long convert64(byte[] buffer, int offset) { long i = 0; i += (((long) buffer[offset + 7]) << 56); i += (((long) buffer[offset + 6] << 48) & 0x00FF000000000000L); i += (((long) buffer[offset + 5] << 40) & 0x0000FF0000000000L); i += (((long) buffer[offset + ...
public static final long convert64(byte[] buffer, int offset) { long i = 0; i += (((long) buffer[offset + 7]) << 56); i += (((long) buffer[offset + 6] << 48) & 0x00FF000000000000L); i += (((long) buffer[offset + 5] << 40) & 0x0000FF0000000000L); i += (((long) buffer[offset + ...
package org.jboss.as.demos.fakejndi; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can re...
package org.jboss.as.demos.fakejndi; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can re...
void registerTransportHandlers(TransportHandlerRegistry registry, SockJsConfiguration config); /* * 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 ...
void registerTransportHandlers(TransportHandlerRegistry registry, SockJsConfiguration config); /* * 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 ...
public interface HandshakeHandler { /* * 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/LICENSE...
public interface HandshakeHandler { /* * 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/LICENSE...
package org.springframework.websocket.support; /** * * Support for working with standard Java WebSocket Endpoint's. * */ package org.springframework.websocket.endpoint;
package org.springframework.websocket.support; /** * * Support for working with standard Java WebSocket Endpoint's. * */ package org.springframework.websocket.support;
void setTempClassLoaderFactory(TempClassLoaderFactory tempClassLoaderFactory); /* * 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 contributor...
void setTempClassLoaderFactory(TempClassLoaderFactory tempClassLoaderFactory); /* * 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 contributor...
public void setUp() throws Exception { builder = new CSVFormatBuilder('+', Character.valueOf('!'), null, Character.valueOf('#'), Character.valueOf('!'), true, true, CRLF, null); }
public void setUp() throws Exception { builder = new CSVFormatBuilder('+', Character.valueOf('!'), null, Character.valueOf('#'), Character.valueOf('!'), true, true, CRLF, Constants.EMPTY, null); }
public InstalledImage getInstalledImage() { return image; } }; // Step 1 - gather the installed layers data final InstalledConfiguration conf = createInstalledConfig(image); // Step 2 - process the actual module and bundle roots final Proc...
public InstalledImage getInstalledImage() { return image; } }; // Step 1 - gather the installed layers data final InstalledConfiguration conf = createInstalledConfig(image); // Step 2 - process the actual module and bundle roots final Proc...
public static <K> Number getNumber(final Map<? super K, ?> map, final K key) { if (map != null) { final Object answer = map.get(key); if (answer != null) { if (answer instanceof Number) { return (Number) answer; } if...
public static <K> Number getNumber(final Map<? super K, ?> map, final K key) { if (map != null) { final Object answer = map.get(key); if (answer != null) { if (answer instanceof Number) { return (Number) answer; } if...
TargetSource getTargetSource(Class<?> beanClass, String beanName); /* * Copyright 2002-2005 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 * * ...
TargetSource getTargetSource(Class<?> beanClass, String beanName); /* * Copyright 2002-2005 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 final boolean matches(Method method, Class targetClass, Object[] args) { // should never be invoked because isRuntime() returns false throw new UnsupportedOperationException("Illegal MethodMatcher usage"); } }
public final boolean matches(Method method, Class<?> targetClass, Object[] args) { // should never be invoked because isRuntime() returns false throw new UnsupportedOperationException("Illegal MethodMatcher usage"); } }
public void setUp() throws Exception { this.beanFactory = new XmlBeanFactory(new ClassPathResource("org/springframework/aop/target/commonsPoolTests.xml")); }
public void setUp() throws Exception { this.beanFactory = new XmlBeanFactory(new ClassPathResource(getClass().getSimpleName() + "-context.xml", getClass())); }
public void execute(DeploymentProcessorTarget processorTarget) { processorTarget.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_POJO_DEPLOYMENT, new KernelDeploymentParsingProcessor()); processorTarget.addDeploymentProcessor(Phase.POST_MODULE, Phase.POST_MODULE_POJO, new Ker...
public void execute(DeploymentProcessorTarget processorTarget) { processorTarget.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_POJO_DEPLOYMENT, new KernelDeploymentParsingProcessor()); processorTarget.addDeploymentProcessor(Phase.DEPENDENCIES, Phase.POST_MODULE_POJO, new Ke...
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) { RequestMapping annotation = AnnotationUtils.findAnnotation(method, RequestMapping.class); if (annotation != null) { return new RequestMappingInfo( new PatternsRequestCondition(annotation.value(), getUrlPathHelper(),...
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) { RequestMapping annotation = AnnotationUtils.findAnnotation(method, RequestMapping.class); if (annotation != null) { return new RequestMappingInfo( new PatternsRequestCondition(annotation.value(), getUrlPathHelper(),...
public static ServletUriComponentsBuilder fromRequest(HttpServletRequest request) { String scheme = request.getScheme(); String host = request.getServerName(); int port = request.getServerPort(); String hostHeader = request.getHeader("X-Forwarded-Host"); if (StringUtils.hasText(hostHeader)) { String[] ho...
public static ServletUriComponentsBuilder fromRequest(HttpServletRequest request) { String scheme = request.getScheme(); String host = request.getServerName(); int port = request.getServerPort(); String hostHeader = request.getHeader("X-Forwarded-Host"); if (StringUtils.hasText(hostHeader)) { String[] ho...
public void testCglibScopedProxy() throws Exception { XmlBeanFactory bf = new XmlBeanFactory(LIST_CONTEXT); bf.setSerializationId("Y"); SimpleMapScope scope = new SimpleMapScope(); bf.registerScope("request", scope); TestBean tb = (TestBean) bf.getBean("testBean"); assertTrue(AopUtils.isCglibProxy(tb.getF...
public void testCglibScopedProxy() throws Exception { XmlBeanFactory bf = new XmlBeanFactory(LIST_CONTEXT); bf.setSerializationId("Y"); SimpleMapScope scope = new SimpleMapScope(); bf.registerScope("request", scope); TestBean tb = (TestBean) bf.getBean("testBean"); assertTrue(AopUtils.isCglibProxy(tb.getF...
public void testFooService() throws Exception { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(getConfigLocations(), getClass()); FooService fooService = ctx.getBean("fooServiceImpl", FooService.class); ServiceInvocationCounter serviceInvocationCounter = ctx.getBean("serviceInvocationCo...
public void testFooService() throws Exception { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(getConfigLocations(), getClass()); FooService fooService = ctx.getBean("fooServiceImpl", FooService.class); ServiceInvocationCounter serviceInvocationCounter = ctx.getBean("serviceInvocationCo...
public void testListWithInconsistentElementType() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spr7283.xml", getClass()); List list = ctx.getBean("list", List.class); assertEquals(2, list.size()); assertTrue(list.get(0) instanceof A); assertTrue(list.get(1) instanceof B); }
public void testListWithInconsistentElementType() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spr7283.xml", getClass()); List<?> list = ctx.getBean("list", List.class); assertEquals(2, list.size()); assertTrue(list.get(0) instanceof A); assertTrue(list.get(1) instanceof B); }
protected ConfigurableApplicationContext createContext() throws Exception { StaticApplicationContext parent = new StaticApplicationContext(); Map m = new HashMap(); m.put("name", "Roderick"); parent.registerPrototype("rod", TestBean.class, new MutablePropertyValues(m)); m.put("name", "Albert"); parent.regi...
protected ConfigurableApplicationContext createContext() throws Exception { StaticApplicationContext parent = new StaticApplicationContext(); Map<String, String> m = new HashMap<String, String>(); m.put("name", "Roderick"); parent.registerPrototype("rod", TestBean.class, new MutablePropertyValues(m)); m.put(...
protected ConfigurableApplicationContext createContext() throws Exception { StaticApplicationContext parent = new StaticApplicationContext(); Map m = new HashMap(); m.put("name", "Roderick"); parent.registerPrototype("rod", TestBean.class, new MutablePropertyValues(m)); m.put("name", "Albert"); parent.regi...
protected ConfigurableApplicationContext createContext() throws Exception { StaticApplicationContext parent = new StaticApplicationContext(); Map<String, String> m = new HashMap<String, String>(); m.put("name", "Roderick"); parent.registerPrototype("rod", TestBean.class, new MutablePropertyValues(m)); m.put(...
protected Object configuredProxy(SimpleRemoteSlsbInvokerInterceptor si, Class<?> ifc) throws NamingException { si.afterPropertiesSet(); ProxyFactory pf = new ProxyFactory(new Class[] {ifc}); pf.addAdvice(si); return pf.getProxy(); }
protected Object configuredProxy(SimpleRemoteSlsbInvokerInterceptor si, Class<?> ifc) throws NamingException { si.afterPropertiesSet(); ProxyFactory pf = new ProxyFactory(new Class<?>[] {ifc}); pf.addAdvice(si); return pf.getProxy(); }
public void testExportJdkProxy() throws Exception { JmxTestBean bean = new JmxTestBean(); bean.setName("Rob Harrop"); ProxyFactory factory = new ProxyFactory(); factory.setTarget(bean); factory.addAdvice(new NopInterceptor()); factory.setInterfaces(new Class[] { IJmxTestBean.class }); IJmxTestBean prox...
public void testExportJdkProxy() throws Exception { JmxTestBean bean = new JmxTestBean(); bean.setName("Rob Harrop"); ProxyFactory factory = new ProxyFactory(); factory.setTarget(bean); factory.addAdvice(new NopInterceptor()); factory.setInterfaces(new Class<?>[] { IJmxTestBean.class }); IJmxTestBean p...
public void testWithCglibProxy() throws Exception { IJmxTestBean tb = createJmxTestBean(); ProxyFactory pf = new ProxyFactory(); pf.setTarget(tb); pf.addAdvice(new NopInterceptor()); Object proxy = pf.getProxy(); MetadataMBeanInfoAssembler assembler = (MetadataMBeanInfoAssembler) getAssembler(); MBeanE...
public void testWithCglibProxy() throws Exception { IJmxTestBean tb = createJmxTestBean(); ProxyFactory pf = new ProxyFactory(); pf.setTarget(tb); pf.addAdvice(new NopInterceptor()); Object proxy = pf.getProxy(); MetadataMBeanInfoAssembler assembler = (MetadataMBeanInfoAssembler) getAssembler(); MBeanE...
protected MBeanInfoAssembler getAssembler() { InterfaceBasedMBeanInfoAssembler assembler = new InterfaceBasedMBeanInfoAssembler(); assembler.setManagedInterfaces(new Class[] {ICustomJmxBean.class}); return assembler; }
protected MBeanInfoAssembler getAssembler() { InterfaceBasedMBeanInfoAssembler assembler = new InterfaceBasedMBeanInfoAssembler(); assembler.setManagedInterfaces(new Class<?>[] {ICustomJmxBean.class}); return assembler; }
public void ignoreTestWithFallThrough() throws Exception { InterfaceBasedMBeanInfoAssembler assembler = getWithMapping("foobar", "org.springframework.jmx.export.assembler.ICustomJmxBean"); assembler.setManagedInterfaces(new Class[] {IAdditionalTestMethods.class}); ModelMBeanInfo inf = assembler.getMBeanInfo...
public void ignoreTestWithFallThrough() throws Exception { InterfaceBasedMBeanInfoAssembler assembler = getWithMapping("foobar", "org.springframework.jmx.export.assembler.ICustomJmxBean"); assembler.setManagedInterfaces(new Class<?>[] {IAdditionalTestMethods.class}); ModelMBeanInfo inf = assembler.getMBeanI...
Map<?, ?> toMap(String key, Object value); /* * Copyright 2002-2007 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/lice...
Map<?, ?> toMap(String key, Object value); /* * Copyright 2002-2007 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/lice...
public void testSimpleValidationWithClassLevel() throws Exception { LocalValidatorFactoryBean validator = new LocalValidatorFactoryBean(); validator.afterPropertiesSet(); ValidPerson person = new ValidPerson(); person.setName("Juergen"); person.getAddress().setStreet("Juergen's Street"); Set<ConstraintViol...
public void testSimpleValidationWithClassLevel() throws Exception { LocalValidatorFactoryBean validator = new LocalValidatorFactoryBean(); validator.afterPropertiesSet(); ValidPerson person = new ValidPerson(); person.setName("Juergen"); person.getAddress().setStreet("Juergen's Street"); Set<ConstraintViol...
public void activate(ServiceActivatorContext context) { context.getBatchBuilder().addService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(name), new NetworkInterfaceService(name, anyLocalV4, anyLocalV6, anyLocal, getInterfaceCriteria())); }
public void activate(ServiceActivatorContext context) { context.getServiceTarget().addService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(name), new NetworkInterfaceService(name, anyLocalV4, anyLocalV6, anyLocal, getInterfaceCriteria())); }
public boolean isTypeMatch(String name, Class targetType) throws NoSuchBeanDefinitionException { String beanName = transformedBeanName(name); Class typeToMatch = (targetType != null ? targetType : Object.class); // Check manually registered singletons. Object beanInstance = getSingleton(beanName, false); if...
public boolean isTypeMatch(String name, Class targetType) throws NoSuchBeanDefinitionException { String beanName = transformedBeanName(name); Class typeToMatch = (targetType != null ? targetType : Object.class); // Check manually registered singletons. Object beanInstance = getSingleton(beanName, false); if...
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("data-sourc...
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("datasource...
private WSSubsystemAdd() { operationValidator.registerValidator(CONFIGURATION, new ModelTypeValidator(ModelType.OBJECT)); configValidator.registerValidator(WEBSERVICE_HOST, new ModelTypeValidator(ModelType.STRING)); configValidator.registerValidator(MODIFY_SOAP_ADDRESS, new ModelTypeValidato...
private WSSubsystemAdd() { operationValidator.registerValidator(CONFIGURATION, new ModelTypeValidator(ModelType.OBJECT)); configValidator.registerValidator(WEBSERVICE_HOST, new ModelTypeValidator(ModelType.STRING)); configValidator.registerValidator(MODIFY_SOAP_ADDRESS, new ModelTypeValidato...
public int compareTo(Object obj) { MutableDouble other = (MutableDouble) obj; double anotherVal = other.value; return NumberUtils.compare(value, anotherVal); }
public int compareTo(Object obj) { MutableDouble other = (MutableDouble) obj; double anotherVal = other.value; return Double.compare(value, anotherVal); }
public int compareTo(Object obj) { MutableFloat other = (MutableFloat) obj; float anotherVal = other.value; return NumberUtils.compare(value, anotherVal); }
public int compareTo(Object obj) { MutableFloat other = (MutableFloat) obj; float anotherVal = other.value; return Float.compare(value, anotherVal); }
public SimpleConsumer register(HostPort host, int partition) { if(!_connections.containsKey(host)) { _connections.put(host, new ConnectionInfo(new SimpleConsumer(host.host, host.port, _config.socketTimeoutMs, _config.bufferSizeBytes))); }
public SimpleConsumer register(HostPort host, int partition) { if(!_connections.containsKey(host)) { _connections.put(host, new ConnectionInfo(new SimpleConsumer(host.host, host.port, _config.socketTimeoutMs, _config.bufferSizeBytes, kafka.api.OffsetRequest.DefaultClientId()))); }
public SimpleConsumer getConsumer(int partition) { int hostIndex = partition / hosts.partitionsPerHost; if(!_kafka.containsKey(hostIndex)) { HostPort hp = hosts.hosts.get(hostIndex); _kafka.put(hostIndex, new SimpleConsumer(hp.host, hp.port, _config.socketTimeoutMs, _config.b...
public SimpleConsumer getConsumer(int partition) { int hostIndex = partition / hosts.partitionsPerHost; if(!_kafka.containsKey(hostIndex)) { HostPort hp = hosts.hosts.get(hostIndex); _kafka.put(hostIndex, new SimpleConsumer(hp.host, hp.port, _config.socketTimeoutMs, _config.b...
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException { prepare(); // Use specific name if given, else fall back to bean name. String name = (this.name != null ? this.name : this.beanName); // Consider the concurrent flag to choose between stateful and stateless job. Class<?...
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException { prepare(); // Use specific name if given, else fall back to bean name. String name = (this.name != null ? this.name : this.beanName); // Consider the concurrent flag to choose between stateful and stateless job. Class<?...
public void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { // Compensating is remove final Mod...
public void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { // Compensating is remove final Mod...
public interface NewBootOperationContext extends NewServerOperationContext { /* * 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....
public interface NewBootOperationContext extends NewServerOperationContext { /* * 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....
public interface NewRuntimeOperationContext extends NewServerOperationContext { /* * 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 contributo...
public interface NewRuntimeOperationContext extends NewServerOperationContext { /* * 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 contributo...
public void doOneRandom(final CSVFormat format) throws Exception { final Random r = new Random(); final int nLines = r.nextInt(4) + 1; final int nCol = r.nextInt(3) + 1; // nLines=1;nCol=2; final String[][] lines = new String[nLines][]; for (int i = 0; i < nLines; i+...
public void doOneRandom(final CSVFormat format) throws Exception { final Random r = new Random(); final int nLines = r.nextInt(4) + 1; final int nCol = r.nextInt(3) + 1; // nLines=1;nCol=2; final String[][] lines = new String[nLines][]; for (int i = 0; i < nLines; i+...
protected Method findGetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) { Method[] ms = clazz.getMethods(); String propertyWriteMethodSuffix; if (propertyName.length() > 1 && Character.isUpperCase(propertyName.charAt(1))) { propertyWriteMethodSuffix = propertyName; } else { pr...
protected Method findGetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) { Method[] ms = clazz.getMethods(); String propertyWriteMethodSuffix; if (propertyName.length() > 1 && Character.isUpperCase(propertyName.charAt(1))) { propertyWriteMethodSuffix = propertyName; } else { pr...
protected void prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) { // Tell the internal bean factory to use the context's class loader etc. beanFactory.setBeanClassLoader(getClassLoader()); beanFactory.setBeanExpressionResolver(new StandardBeanExpressionResolver(beanFactory.getBeanClassLoader())); ...
protected void prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) { // Tell the internal bean factory to use the context's class loader etc. beanFactory.setBeanClassLoader(getClassLoader()); beanFactory.setBeanExpressionResolver(new StandardBeanExpressionResolver()); beanFactory.addPropertyEditorR...
private static JDBCCMPFieldPropertyMetaData parseProperty(final XMLStreamReader reader) throws XMLStreamException { final JDBCCMPFieldPropertyMetaData metaData = new JDBCCMPFieldPropertyMetaData(); for (Element element : children(reader)) { switch (element) { case PROPER...
private static JDBCCMPFieldPropertyMetaData parseProperty(final XMLStreamReader reader) throws XMLStreamException { final JDBCCMPFieldPropertyMetaData metaData = new JDBCCMPFieldPropertyMetaData(); for (Element element : children(reader)) { switch (element) { case PROPER...
public void start() { notifyLifecycleListeners(LifecycleState.STARTING); try { store.start(); if (this.threadFactory != null) { this.executor = Executors.newScheduledThreadPool(1, this.threadFactory); } notifyLifecycleListeners(Lifecycl...
public void start() { notifyLifecycleListeners(LifecycleState.STARTING); try { store.start(); if (this.threadFactory != null) { this.executor = Executors.newSingleThreadScheduledExecutor(this.threadFactory); } notifyLifecycleListeners(L...
public Cache<K, V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K, V> passivationManager, StatefulTimeoutInfo timeout) { // Create/find the cache for SerializationGroup that the container // may be associated with SerializationGroupContainer<K, V> groupC...
public Cache<K, V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K, V> passivationManager, StatefulTimeoutInfo timeout) { // Create/find the cache for SerializationGroup that the container // may be associated with SerializationGroupContainer<K, V> groupC...
public static long gcd(final long p, final long q) { long u = p; long v = q; if ((u == 0) || (v == 0)) { if ((u == Long.MIN_VALUE) || (v == Long.MIN_VALUE)){ throw MathRuntimeException.createArithmeticException( "overflow: gcd({0}, {1}) is ...
public static long gcd(final long p, final long q) { long u = p; long v = q; if ((u == 0) || (v == 0)) { if ((u == Long.MIN_VALUE) || (v == Long.MIN_VALUE)){ throw MathRuntimeException.createArithmeticException( "overflow: gcd({0}, {1}) is ...
protected String determineBeanNameFromAnnotation(AnnotatedBeanDefinition annotatedDef) { AnnotationMetadata amd = annotatedDef.getMetadata(); Set<String> types = amd.getAnnotationTypes(); String beanName = null; for (String type : types) { AnnotationAttributes attributes = MetadataUtils.attributesFor(amd, t...
protected String determineBeanNameFromAnnotation(AnnotatedBeanDefinition annotatedDef) { AnnotationMetadata amd = annotatedDef.getMetadata(); Set<String> types = amd.getAnnotationTypes(); String beanName = null; for (String type : types) { AnnotationAttributes attributes = AnnotationConfigUtils.attributesFo...
public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) { ScopeMetadata metadata = new ScopeMetadata(); if (definition instanceof AnnotatedBeanDefinition) { AnnotatedBeanDefinition annDef = (AnnotatedBeanDefinition) definition; AnnotationAttributes attributes = MetadataUtils.attributesFor(annDef...
public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) { ScopeMetadata metadata = new ScopeMetadata(); if (definition instanceof AnnotatedBeanDefinition) { AnnotatedBeanDefinition annDef = (AnnotatedBeanDefinition) definition; AnnotationAttributes attributes = AnnotationConfigUtils.attributesFo...
protected void boot(final BootContext context) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context.getServiceTarget(); try { super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops final Run...
protected void boot(final BootContext context) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context.getServiceTarget(); try { super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops final Run...
public String getVersion() { return version; } InstallationState internalCommit() throws Exception { try { installationState.persist(); } catch (Exception e) { installationState.restore(); throw e; } try { super.persist...
public String getVersion() { return version; } InstallationState internalComplete() throws Exception { try { installationState.persist(); } catch (Exception e) { installationState.restore(); throw e; } try { super.persi...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { context.acquireControllerLock(); // Setup final PatchInfoService service = (PatchInfoService) context.getServiceRegistry(false).getRequiredService(PatchInfoService.NAME).getValue(...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { context.acquireControllerLock(); // Setup final PatchInfoService service = (PatchInfoService) context.getServiceRegistry(false).getRequiredService(PatchInfoService.NAME).getValue(...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PatchInfoService service = (PatchInfoService) context.getServiceRegistry(false).getRequiredService(PatchInfoService.NAME).getValue(); final PatchInfo info = service.getPatchInfo(); ...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PatchInfoService service = (PatchInfoService) context.getServiceRegistry(false).getRequiredService(PatchInfoService.NAME).getValue(); final PatchInfo info = service.getValue(); ...
public void writeContent(final XMLExtendedStreamWriter writer, final Patch1_1 patch) throws XMLStreamException { // Get started ... writer.writeStartDocument(); writer.writeStartElement(Element.PATCH.name); writer.writeDefaultNamespace(PatchXml.Namespace.PATCH_1_1.getNamespace()); ...
public void writeContent(final XMLExtendedStreamWriter writer, final Patch1_1 patch) throws XMLStreamException { // Get started ... writer.writeStartDocument(); writer.writeStartElement(Element.PATCH.name); writer.writeDefaultNamespace(PatchXml.Namespace.PATCH_1_1.getNamespace()); ...
CommandLineCompleter getArgumentCompleter(); /* * 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; yo...
CommandLineCompleter getArgumentCompleter(); /* * 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; yo...
public interface CommandLineCompleter { /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
public interface CommandLineCompleter { /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine parsedArgs = ctx.getParsedCommandLine(); final ModelNode request = new ModelNode(); final ModelNode address = request.get(Util.ADDRESS); if(isDependsOnProfil...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine parsedArgs = ctx.getParsedCommandLine(); final ModelNode request = new ModelNode(); final ModelNode address = request.get(Util.ADDRESS); if(isDependsOnProfil...
private final int tag; StaxEvent(int tag) { this.tag = tag; } static StaxEvent tagToEvent(int tag) { return EVENTS[tag - 1]; } } static XMLStreamException unexpectedAttribute(final XMLExtendedStreamReader reader, final int index) { return new XMLStreamExc...
private final int tag; StaxEvent(int tag) { this.tag = tag; } static StaxEvent tagToEvent(int tag) { return EVENTS[tag - 1]; } } static XMLStreamException unexpectedAttribute(final XMLExtendedStreamReader reader, final int index) { return new XMLStreamExc...