buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private File getModulePath() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException("Neither -Dmodule.path nor...
private File getModulePath() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException("Neither -Dmodule.path nor...
private File getModulePath() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException( "...
private File getModulePath() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException( "...
private static File getModulesHome() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException("Neither -Dmodule....
private static File getModulesHome() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException("Neither -Dmodule....
private static File getModulePath() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException("Neither -Dmodule.p...
private static File getModulePath() { String modulePath = System.getProperty("module.path", null); if (modulePath == null) { String jbossHome = System.getProperty("jboss.home", null); if (jbossHome == null) { throw new IllegalStateException("Neither -Dmodule.p...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { return Optional.empty(); } if (targetType.getResolvableType() == null) { return Optional.of(source); } else { Object target = this.conversionService.convert(source, sourceType, new Gene...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { return Optional.empty(); } if (targetType.getResolvableType() == null) { return Optional.of(source); } else { Object target = this.conversionService.convert(source, sourceType, new Gene...
public void setLocations(List<Resource> locations) { Assert.notEmpty(locations, "Locations list must not be empty"); this.locations.clear(); this.locations.addAll(locations); }
public void setLocations(List<Resource> locations) { Assert.notNull(locations, "Locations list must not be null"); this.locations.clear(); this.locations.addAll(locations); }
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { ParseUtils.requireNoAttributes(reader); PathAddress address = PathAddress.pathAddress(ModClusterExtension.SUBSYSTEM_PATH); final ModelNode subsystem = new ModelNode(); subsyste...
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { ParseUtils.requireNoAttributes(reader); PathAddress address = PathAddress.pathAddress(ModClusterExtension.SUBSYSTEM_PATH); final ModelNode subsystem = new ModelNode(); subsyste...
public static final int MANAGEMENT_MINOR_VERSION = 1; static { InputStream stream = Version.class.getClassLoader().getResourceAsStream("META-INF/MANIFEST.MF"); Manifest manifest = null; try { if (stream != null) manifest = new Manifest(stream); } catc...
public static final int MANAGEMENT_MINOR_VERSION = 2; static { InputStream stream = Version.class.getClassLoader().getResourceAsStream("META-INF/MANIFEST.MF"); Manifest manifest = null; try { if (stream != null) manifest = new Manifest(stream); } catc...
public static ServiceController<SocketBinding> installBindingService(OperationContext context, ModelNode config, String name) throws UnknownHostException, OperationFailedException { final ServiceTarget serviceTarget = context.getServiceTarget(); final ModelNode intfNode = AbstractSocket...
public static ServiceController<SocketBinding> installBindingService(OperationContext context, ModelNode config, String name) throws UnknownHostException, OperationFailedException { final ServiceTarget serviceTarget = context.getServiceTarget(); final ModelNode intfNode = AbstractSocket...
public static Map<ResourceRoot, Index> getAnnotationIndexes(final DeploymentUnit deploymentUnit) { final List<ResourceRoot> allResourceRoots = new ArrayList<ResourceRoot>(); final List<ResourceRoot> resourceRoots = deploymentUnit.getAttachment(Attachments.RESOURCE_ROOTS); if (resourceRoots !...
public static Map<ResourceRoot, Index> getAnnotationIndexes(final DeploymentUnit deploymentUnit) { final List<ResourceRoot> allResourceRoots = new ArrayList<ResourceRoot>(); final List<ResourceRoot> resourceRoots = deploymentUnit.getAttachment(Attachments.RESOURCE_ROOTS); if (resourceRoots !...
public void testInvokeMethod() throws Exception { // i'm going to test that the actual calls work first and then try them via reflection AbstractParent parent = new AlphaBean("parent"); // try testAddChild through abstract superclass BetaBean childOne = new BetaBean...
public void testInvokeMethod() throws Exception { // i'm going to test that the actual calls work first and then try them via reflection AbstractParent parent = new AlphaBean("parent"); // try testAddChild through abstract superclass BetaBean childOne = new BetaBean...
package test.aop; /* * Copyright 2002-2008 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-2.0 * *...
package test.aop; /* * Copyright 2002-2008 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-2.0 * *...
public static final AttributeConverter NAME_FROM_ADDRESS = new AttributeConverter() { @Override
public void convertAttribute(PathAddress address, String name, ModelNode attributeValue, TransformationContext context) { attributeValue.set(hardCodedValue); } }; } } AttributeConverter NAME_FROM_ADDRESS = new AttributeConverter() { ...
public Object getValueAndReset() { Long collectionCountP = _gcBean.getCollectionCount(); Long collectionTimeP = _gcBean.getCollectionCount(); Map ret = null; if(_collectionCount!=null && _collectionTime!=null) { ret = new HashMap(); ...
public Object getValueAndReset() { Long collectionCountP = _gcBean.getCollectionCount(); Long collectionTimeP = _gcBean.getCollectionTime(); Map ret = null; if(_collectionCount!=null && _collectionTime!=null) { ret = new HashMap(); ...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(Attachments.MODULE); final ServicesAttachment servicesAttachment...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(Attachments.MODULE); final ServicesAttachment servicesAttachment...
public double inverseCumulativeProbability(double p) throws OutOfRangeException { if (p < 0.0 || p > 1.0) { throw new OutOfRangeException(p, 0.0, 1.0); } else if (p == 0) { return 0.0; } else if (p == 1) { return Double.POSITIVE_INFINITY; } ...
public double inverseCumulativeProbability(double p) throws OutOfRangeException { if (p < 0.0 || p > 1.0) { throw new OutOfRangeException(p, 0.0, 1.0); } else if (p == 0) { return Double.NEGATIVE_INFINITY; } else if (p == 1) { return Double.POSITIVE_INFINI...
private void startDriverServices(final ServiceTarget target, final ModuleIdentifier moduleId, Driver driver) throws IllegalStateException { final int majorVer = driver.getMajorVersion(); final int minorVer = driver.getMinorVersion(); ...
private void startDriverServices(final ServiceTarget target, final ModuleIdentifier moduleId, Driver driver) throws IllegalStateException { final int majorVer = driver.getMajorVersion(); final int minorVer = driver.getMinorVersion(); ...
private void addDeployments(List<ModelNode> updates) { if (serverGroup.hasDefined(DEPLOYMENT)) { FileRepository remoteRepository = null; if (domainController.getLocalHostInfo().isMasterDomainController()) { remoteRepository = domainController.getRemoteFileRepository(...
private void addDeployments(List<ModelNode> updates) { if (serverGroup.hasDefined(DEPLOYMENT)) { FileRepository remoteRepository = null; if (! domainController.getLocalHostInfo().isMasterDomainController()) { remoteRepository = domainController.getRemoteFileRepositor...
protected void build(final Deployment dep, final DeploymentUnit unit) { final JBossWebMetaData webMetaData = ASHelper.getJBossWebMetaData(unit); if (webMetaData != null) { dep.addAttachment(JBossWebMetaData.class, webMetaData); } final WebservicesMetaData wsMetaData = ASH...
protected void build(final Deployment dep, final DeploymentUnit unit) { final JBossWebMetaData webMetaData = ASHelper.getJBossWebMetaData(unit); if (webMetaData != null) { dep.addAttachment(JBossWebMetaData.class, webMetaData); } final WebservicesMetaData wsMetaData = ASH...
protected void build(final Deployment dep, final DeploymentUnit unit) { this.log.debug("Creating JAXWS JSE endpoints meta data model"); final JBossWebMetaData webMetaData = ASHelper.getJBossWebMetaData(unit); if (webMetaData != null) { dep.addAttachment(JBossWebMetaData.class, we...
protected void build(final Deployment dep, final DeploymentUnit unit) { this.log.debug("Creating JAXWS JSE endpoints meta data model"); final JBossWebMetaData webMetaData = ASHelper.getJBossWebMetaData(unit); if (webMetaData != null) { dep.addAttachment(JBossWebMetaData.class, we...
private void configureEndpoints(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String transportClassName = this.getTransportClassName(dep); this.log.trace("Modifying servlets"); // get a list of the endpoint bean class names final Set<String> epNames = new HashSet<...
private void configureEndpoints(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String transportClassName = this.getTransportClassName(dep); this.log.trace("Modifying servlets"); // get a list of the endpoint bean class names final Set<String> epNames = new HashSet<...
public ResizableDoubleArray(int initialCapacity, double expansionFactor, double contractionCriterion, ExpansionMode expansionMode, double ... data) throws MathIllegalArgumentExcept...
public ResizableDoubleArray(int initialCapacity, double expansionFactor, double contractionCriterion, ExpansionMode expansionMode, double ... data) throws MathIllegalArgumentExcept...
public void testDirectEvaluation() { final RealVector dummy = new ArrayRealVector(new double[] { 0 }); final LeastSquaresProblem p = LeastSquaresFactory.create(LeastSquaresFactory.model(dummyModel(), dummyJacobian()), dummy, dummy, null, 0, 0, fa...
public void testDirectEvaluation() { final RealVector dummy = new ArrayRealVector(new double[] { 0 }); final LeastSquaresProblem p = LeastSquaresFactory.create(LeastSquaresFactory.model(dummyModel(), dummyJacobian()), dummy, dummy, null, 0, 0, fa...
public void testOperate() { FieldMatrix<Fraction> m = new BlockFieldMatrix<Fraction>(id); TestUtils.assertEquals(testVector, m.operate(testVector)); TestUtils.assertEquals(testVector, m.operate(new ArrayFieldVector<Fraction>(testVector)).getData()); m = new BlockFieldMatrix<Fraction>...
public void testOperate() { FieldMatrix<Fraction> m = new BlockFieldMatrix<Fraction>(id); TestUtils.assertEquals(testVector, m.operate(testVector)); TestUtils.assertEquals(testVector, m.operate(new ArrayFieldVector<Fraction>(testVector)).toArray()); m = new BlockFieldMatrix<Fraction>...
public void testOperate() { FieldMatrix<Fraction> m = new Array2DRowFieldMatrix<Fraction>(id); TestUtils.assertEquals(testVector, m.operate(testVector)); TestUtils.assertEquals(testVector, m.operate(new ArrayFieldVector<Fraction>(testVector)).getData()); m = new Array2DRowFieldMatrix...
public void testOperate() { FieldMatrix<Fraction> m = new Array2DRowFieldMatrix<Fraction>(id); TestUtils.assertEquals(testVector, m.operate(testVector)); TestUtils.assertEquals(testVector, m.operate(new ArrayFieldVector<Fraction>(testVector)).toArray()); m = new Array2DRowFieldMatrix...
public void testMath1067() { final double x = 0.22580645161290325; final double a = 64.33333333333334; final double b = 223; try { final double r = Beta.regularizedBeta(x, a, b, 1e-14, 10000); } catch (StackOverflowError error) { Assert.fail("Infinite...
public void testMath1067() { final double x = 0.22580645161290325; final double a = 64.33333333333334; final double b = 223; try { Beta.regularizedBeta(x, a, b, 1e-14, 10000); } catch (StackOverflowError error) { Assert.fail("Infinite recursion"); ...
private void checkNextIntUniform(int min, int max) throws Exception { final Frequency freq = new Frequency(); for (int i = 0; i < smallSampleSize; i++) { final int value = randomData.nextInt(min, max); Assert.assertTrue("nextInt range", (value >= min) && (value <= max)); ...
private void checkNextIntUniform(int min, int max) throws Exception { final Frequency freq = new Frequency(); for (int i = 0; i < smallSampleSize; i++) { final int value = randomData.nextInt(min, max); Assert.assertTrue("nextInt range", (value >= min) && (value <= max)); ...
public void testBindInstant() { MutablePropertyValues propertyValues = new MutablePropertyValues(); propertyValues.add("instant", "2009-10-31T12:00:00.000Z"); binder.bind(propertyValues); assertEquals(0, binder.getBindingResult().getErrorCount()); assertEquals("2009-10-31T12:00Z", binder.getBindingResult().g...
public void testBindInstant() { MutablePropertyValues propertyValues = new MutablePropertyValues(); propertyValues.add("instant", "2009-10-31T12:00:00.000Z"); binder.bind(propertyValues); assertEquals(0, binder.getBindingResult().getErrorCount()); assertTrue(binder.getBindingResult().getFieldValue("instant")...
public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException { if (operation.get(NAME).equals(JPADefinition.DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE.getName())) { ...
public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException { if (operation.get(NAME).asString().equals(JPADefinition.DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE.getName())...
protected void importBeanDefinitionResource(Element ele) { String location = ele.getAttribute(RESOURCE_ATTRIBUTE); if (!StringUtils.hasText(location)) { getReaderContext().error("Resource location must not be empty", ele); return; } // Resolve system properties: e.g. "${user.dir}" location = environme...
protected void importBeanDefinitionResource(Element ele) { String location = ele.getAttribute(RESOURCE_ATTRIBUTE); if (!StringUtils.hasText(location)) { getReaderContext().error("Resource location must not be empty", ele); return; } // Resolve system properties: e.g. "${user.dir}" location = environme...
protected String resolvePath(String path) { return this.getEnvironment().getPropertyResolver().resolveRequiredPlaceholders(path); }
protected String resolvePath(String path) { return this.getEnvironment().resolveRequiredPlaceholders(path); }
<G, I> BeanManagerFactoryBuilder<G, I> getBeanManagerFactoryBuilder(BeanManagerFactoryBuilderConfiguration config); /* * 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 f...
<G, I> BeanManagerFactoryBuilder<G, I> getBeanManagerFactoryBuilder(BeanManagerFactoryBuilderConfiguration config); /* * 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 f...
public static ServiceName getServiceName(ServiceName deploymentUnitServiceName) { return deploymentUnitServiceName.append("marshalling"); }
public static ServiceName getServiceName(ServiceName deploymentUnitServiceName) { return deploymentUnitServiceName.append("marshalling-configuration"); }
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws OperationFailedException { // add this to the service controllers serviceControllers.addAll(this.install...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws OperationFailedException { // add this to the service controllers serviceControllers.addAll(this.install...
public void testSendMessage() throws JMSException, NamingException { final InitialContext ctx = new InitialContext(); final QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:/JmsXA"); final QueueConnection connection = factory.createQueueConnection(); connect...
public void testSendMessage() throws JMSException, NamingException { final InitialContext ctx = new InitialContext(); final QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:/JmsXA"); final QueueConnection connection = factory.createQueueConnection(); connect...
public void sendMessage() throws Exception { final InitialContext ctx = new InitialContext(); final TopicConnectionFactory factory = (TopicConnectionFactory) ctx.lookup("java:/JmsXA"); final TopicConnection connection = factory.createTopicConnection(); connection.start(); try...
public void sendMessage() throws Exception { final InitialContext ctx = new InitialContext(); final TopicConnectionFactory factory = (TopicConnectionFactory) ctx.lookup("java:/JmsXA"); final TopicConnection connection = factory.createTopicConnection(); connection.start(); try...
private static final MarshallingConfiguration CONFIG; static { try { MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", Module.getModuleFromCurrentLoader(ModuleIdentifier.fromString("org.jboss.marshalling.river")).getClassLoader()); } catch (ModuleLoadException e) { ...
private static final MarshallingConfiguration CONFIG; static { try { MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", Module.getModuleFromCurrentLoader(ModuleIdentifier.fromString("org.jboss.marshalling.river")).getClassLoader()); } catch (ModuleLoadException e) { ...
public void testDerivativesHighOrder() { DerivativeStructure s = new Sqrt().value(new DerivativeStructure(1, 5, 0, 1.2)); Assert.assertEquals(1.0954451150103322269, s.getPartialDerivative(0), 1.0e-16); Assert.assertEquals(0.45643546458763842789, s.getPartialDerivative(1), 1.0e-16); Assert...
public void testDerivativesHighOrder() { DerivativeStructure s = new Sqrt().value(new DerivativeStructure(1, 5, 0, 1.2)); Assert.assertEquals(1.0954451150103322269, s.getPartialDerivative(0), 1.0e-16); Assert.assertEquals(0.45643546458763842789, s.getPartialDerivative(1), 1.0e-16); Assert...
private Object resolveProvidedArgument(MethodParameter parameter, Object... providedArgs) { if (providedArgs == null) { return null; } for (Object providedArg : providedArgs) { if (parameter.getParameterType().isInstance(providedArg)) { return providedArg; } } return null; }
private Object resolveProvidedArgument(MethodParameter parameter, Object... providedArgs) { if (providedArgs == null || parameter.hasParameterAnnotations()) { return null; } for (Object providedArg : providedArgs) { if (parameter.getParameterType().isInstance(providedArg)) { return providedArg; } ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final Index index = phaseContext.getAttachment(Attachments.ANNOTATION_INDEX); if (index == null) { return; // Skip if there is no annotation index } if (index.getAnnotation...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final Index index = phaseContext.getAttachment(Attachments.ANNOTATION_INDEX); if (index == null) { return; // Skip if there is no annotation index } if (index.getAnnotation...
protected TimerImpl(Builder builder, TimerServiceImpl service) { assert builder.id != null : "id is null"; this.id = builder.id; this.timedObjectId = builder.timedObjectId; this.info = builder.info; this.persistent = builder.persistent; this.initialExpiration = build...
protected TimerImpl(Builder builder, TimerServiceImpl service) { assert builder.id != null : "id is null"; this.id = builder.id; this.timedObjectId = builder.timedObjectId; this.info = builder.info; this.persistent = builder.persistent; this.initialExpiration = build...
@Message(id = Message.NONE, value = "%d alphabetic character(s)") /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This...
@Message(id = Message.NONE, value = "%d alphabetic character(s)") /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This...
private PointcutBody getPointcutBody(String[] tokens, int startIndex) { int numTokensConsumed = 0; String currentToken = tokens[startIndex]; int bodyStart = currentToken.indexOf('('); if (currentToken.charAt(currentToken.length() - 1) == ')') { // It's an all in one... get the text between the first (and th...
private PointcutBody getPointcutBody(String[] tokens, int startIndex) { int numTokensConsumed = 0; String currentToken = tokens[startIndex]; int bodyStart = currentToken.indexOf('('); if (currentToken.charAt(currentToken.length() - 1) == ')') { // It's an all in one... get the text between the first (and th...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("AspectJExpressionPointcut: "); if (this.pointcutParameterNames != null && this.pointcutParameterTypes != null) { sb.append("("); for (int i = 0; i < this.pointcutParameterTypes.length; i++) { sb.append(this.pointcutParameterTyp...
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("AspectJExpressionPointcut: "); if (this.pointcutParameterNames != null && this.pointcutParameterTypes != null) { sb.append("("); for (int i = 0; i < this.pointcutParameterTypes.length; i++) { sb.append(this.pointcutParameterT...
public String toString() { StringBuffer sb = new StringBuffer(); Advice advice = this.advisor.getAdvice(); sb.append(ClassUtils.getShortName(advice.getClass())); sb.append(": "); if (this.advisor instanceof Ordered) { sb.append("order " + ((Ordered) this.advisor).getOrder() + ", "); } if (adv...
public String toString() { StringBuilder sb = new StringBuilder(); Advice advice = this.advisor.getAdvice(); sb.append(ClassUtils.getShortName(advice.getClass())); sb.append(": "); if (this.advisor instanceof Ordered) { sb.append("order " + ((Ordered) this.advisor).getOrder() + ", "); } if (a...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("proxyTargetClass=").append(this.proxyTargetClass).append("; "); sb.append("optimize=").append(this.optimize).append("; "); sb.append("opaque=").append(this.opaque).append("; "); sb.append("exposeProxy=").append(this.exposeProxy).appe...
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("proxyTargetClass=").append(this.proxyTargetClass).append("; "); sb.append("optimize=").append(this.optimize).append("; "); sb.append("opaque=").append(this.opaque).append("; "); sb.append("exposeProxy=").append(this.exposeProxy).ap...
public String toString() { // Don't do toString on target, it may be proxied. StringBuffer sb = new StringBuffer("ReflectiveMethodInvocation: "); sb.append(this.method).append("; "); if (this.target == null) { sb.append("target is null"); } else { sb.append("target is of class [").append(this.target....
public String toString() { // Don't do toString on target, it may be proxied. StringBuilder sb = new StringBuilder("ReflectiveMethodInvocation: "); sb.append(this.method).append("; "); if (this.target == null) { sb.append("target is null"); } else { sb.append("target is of class [").append(this.targe...
protected String createInvocationTraceName(MethodInvocation invocation) { StringBuffer sb = new StringBuffer(getPrefix()); Method method = invocation.getMethod(); Class clazz = method.getDeclaringClass(); if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) { clazz = invocation.getTh...
protected String createInvocationTraceName(MethodInvocation invocation) { StringBuilder sb = new StringBuilder(getPrefix()); Method method = invocation.getMethod(); Class clazz = method.getDeclaringClass(); if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) { clazz = invocation.get...
private String escape(String input) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < input.length(); i++) { char c = input.charAt(i); if (c == '\\') { sb.append("\\\\"); } else if (c == '$') { sb.append("\\$"); } else { sb.append(c); } } return sb.toString(); }
private String escape(String input) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < input.length(); i++) { char c = input.charAt(i); if (c == '\\') { sb.append("\\\\"); } else if (c == '$') { sb.append("\\$"); } else { sb.append(c); } } return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(ClassUtils.getShortName(getClass())); sb.append(" for target bean '").append(this.targetBeanName).append("'"); if (this.targetClass != null) { sb.append(" of type [").append(this.targetClass.getName()).append("]"); } return sb.to...
public String toString() { StringBuilder sb = new StringBuilder(); sb.append(ClassUtils.getShortName(getClass())); sb.append(" for target bean '").append(this.targetBeanName).append("'"); if (this.targetClass != null) { sb.append(" of type [").append(this.targetClass.getName()).append("]"); } return sb....
public boolean isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor) { if (!bdHolder.getBeanDefinition().isAutowireCandidate()) { // if explicitly false, do not proceed with qualifier check return false; } if (descriptor == null || ObjectUtils.isEmpty(descriptor.getAnnotations...
public boolean isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor) { if (!bdHolder.getBeanDefinition().isAutowireCandidate()) { // if explicitly false, do not proceed with qualifier check return false; } if (descriptor == null || ObjectUtils.isEmpty(descriptor.getAnnotations...
Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException; /* * Copyright 2002-2008 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...
Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException; /* * Copyright 2002-2008 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...
protected Object createInstance() { if (this.sourceList == null) { throw new IllegalArgumentException("'sourceList' is required"); } List result = null; if (this.targetListClass != null) { result = (List) BeanUtils.instantiateClass(this.targetListClass); } else { result = new ArrayList(this.source...
protected Object createInstance() { if (this.sourceList == null) { throw new IllegalArgumentException("'sourceList' is required"); } List result = null; if (this.targetListClass != null) { result = (List) BeanUtils.instantiateClass(this.targetListClass); } else { result = new ArrayList(this.source...
protected Object createInstance() { if (this.sourceMap == null) { throw new IllegalArgumentException("'sourceMap' is required"); } Map result = null; if (this.targetMapClass != null) { result = (Map) BeanUtils.instantiateClass(this.targetMapClass); } else { result = new LinkedHashMap(this.sourceMa...
protected Object createInstance() { if (this.sourceMap == null) { throw new IllegalArgumentException("'sourceMap' is required"); } Map result = null; if (this.targetMapClass != null) { result = (Map) BeanUtils.instantiateClass(this.targetMapClass); } else { result = new LinkedHashMap(this.sourceMa...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Configuration problem: "); sb.append(getMessage()); sb.append("\nOffending resource: ").append(getResourceDescription()); if (getParseState() != null) { sb.append('\n').append(getParseState()); } return sb.toString(); }
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Configuration problem: "); sb.append(getMessage()); sb.append("\nOffending resource: ").append(getResourceDescription()); if (getParseState() != null) { sb.append('\n').append(getParseState()); } return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer("class ["); sb.append(getBeanClassName()).append("]"); sb.append("; scope=").append(this.scope); sb.append("; abstract=").append(this.abstractFlag); sb.append("; lazyInit=").append(this.lazyInit); sb.append("; autowireMode=").append(this.autowir...
public String toString() { StringBuilder sb = new StringBuilder("class ["); sb.append(getBeanClassName()).append("]"); sb.append("; scope=").append(this.scope); sb.append("; abstract=").append(this.abstractFlag); sb.append("; lazyInit=").append(this.lazyInit); sb.append("; autowireMode=").append(this.autow...
public String toString() { StringBuffer sb = new StringBuffer("Child bean with parent '"); sb.append(this.parentName).append("': ").append(super.toString()); return sb.toString(); }
public String toString() { StringBuilder sb = new StringBuilder("Child bean with parent '"); sb.append(this.parentName).append("': ").append(super.toString()); return sb.toString(); }
protected Object getResourceToInject(Object target, String requestingBeanName) { Service service = null; try { service = (Service) getResource(this, requestingBeanName); } catch (NoSuchBeanDefinitionException notFound) { // Service to be created through generated class. if (Service.class.equal...
protected Object getResourceToInject(Object target, String requestingBeanName) { Service service = null; try { service = (Service) getResource(this, requestingBeanName); } catch (NoSuchBeanDefinitionException notFound) { // Service to be created through generated class. if (Service.class.equal...
protected List calculateFilenamesForLocale(String basename, Locale locale) { List result = new ArrayList(3); String language = locale.getLanguage(); String country = locale.getCountry(); String variant = locale.getVariant(); StringBuffer temp = new StringBuffer(basename); if (language.length() > 0) { t...
protected List calculateFilenamesForLocale(String basename, Locale locale) { List result = new ArrayList(3); String language = locale.getLanguage(); String country = locale.getCountry(); String variant = locale.getVariant(); StringBuilder temp = new StringBuilder(basename); if (language.length() > 0) { ...
public String toString() { StringBuffer sb = new StringBuffer(getClass().getName()); sb.append(": ").append(getErrorCount()).append(" errors"); Iterator it = getAllErrors().iterator(); while (it.hasNext()) { sb.append('\n').append(it.next()); } return sb.toString(); }
public String toString() { StringBuilder sb = new StringBuilder(getClass().getName()); sb.append(": ").append(getErrorCount()).append(" errors"); Iterator it = getAllErrors().iterator(); while (it.hasNext()) { sb.append('\n').append(it.next()); } return sb.toString(); }
public void testPrintAbstractSyntaxTree01() throws Exception { SpelExpression sEx = new SpelExpressionParser().parseExpression("1 + 2"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); SpelUtilities.printAbstractSyntaxTree(new PrintStream(baos), sEx); String theAst = baos.toString(); System.out.pri...
public void testPrintAbstractSyntaxTree01() throws Exception { SpelExpression sEx = new SpelExpressionParser().parseExpression("1 + 2"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); SpelUtilities.printAbstractSyntaxTree(new PrintStream(baos), sEx); String theAst = baos.toString(); System.out.pri...
public String toString() { StringBuffer result = getDefinitionDescription(); if (this.rollbackRules != null) { for (Iterator it = this.rollbackRules.iterator(); it.hasNext();) { RollbackRuleAttribute rule = (RollbackRuleAttribute) it.next(); String sign = (rule instanceof NoRollbackRuleAttribute ? PREFI...
public String toString() { StringBuilder result = getDefinitionDescription(); if (this.rollbackRules != null) { for (Iterator it = this.rollbackRules.iterator(); it.hasNext();) { RollbackRuleAttribute rule = (RollbackRuleAttribute) it.next(); String sign = (rule instanceof NoRollbackRuleAttribute ? PREF...
public static String getFailureDescription(ModelNode operationResponse) { if(operationResponse == null) { return null; } ModelNode descr = operationResponse.get(Util.FAILURE_DESCRIPTION); if(descr == null) { return null; } if(descr.hasDefined(U...
public static String getFailureDescription(ModelNode operationResponse) { if(operationResponse == null) { return null; } ModelNode descr = operationResponse.get(Util.FAILURE_DESCRIPTION); if(descr == null) { return null; } if(descr.hasDefined(U...
private void checkForSubsystemFailures(OperationContext context, Map<String, ParallelBootTransactionControl> transactionControls, OperationContext.Stage stage) { boolean failureRecorded = false; for (Map.Entry<String, ParallelBootTransactionControl> entry : transactionControls.entrySet()) { ...
private void checkForSubsystemFailures(OperationContext context, Map<String, ParallelBootTransactionControl> transactionControls, OperationContext.Stage stage) { boolean failureRecorded = false; for (Map.Entry<String, ParallelBootTransactionControl> entry : transactionControls.entrySet()) { ...
throw new RuntimeException(result.get(FAILURE_DESCRIPTION).toString()); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors....
throw new RuntimeException(result.get(FAILURE_DESCRIPTION).toString()); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors....
private void validateDescriptionProviders(TestModelType type, ModelTestKernelServices kernelServices) { ModelNode op = new ModelNode(); op.get(OP).set("read-resource-description"); op.get(OP_ADDR).setEmptyList(); op.get("recursive").set(true); op.get("inherited").set(false); ...
private void validateDescriptionProviders(TestModelType type, ModelTestKernelServices kernelServices) { ModelNode op = new ModelNode(); op.get(OP).set("read-resource-description"); op.get(OP_ADDR).setEmptyList(); op.get("recursive").set(true); op.get("inherited").set(false); ...
private String getFailureDescription(ModelNode result) { if (result.hasDefined(FAILURE_DESCRIPTION)) { return result.get(FAILURE_DESCRIPTION).asString(); } return null; }
private String getFailureDescription(ModelNode result) { if (result.hasDefined(FAILURE_DESCRIPTION)) { return result.get(FAILURE_DESCRIPTION).toString(); } return null; }
public ModelReader(ModelController controller) { this.controller = controller; } ModelNode getDeploymentModel() { if (deploymentModel == null) { ModelNode operation = new ModelNode(); operation.get(OP).set(READ_RESOURCE_OPERATION); operation.get(RECURSIVE...
public ModelReader(ModelController controller) { this.controller = controller; } ModelNode getDeploymentModel() { if (deploymentModel == null) { ModelNode operation = new ModelNode(); operation.get(OP).set(READ_RESOURCE_OPERATION); operation.get(RECURSIVE...
private void validateDescriptionProviders(AdditionalInitialization additionalInit, ModelTestKernelServices kernelServices) { ValidationConfiguration arbitraryDescriptors = additionalInit.getModelValidationConfiguration(); ModelNode address = new ModelNode(); address.setEmptyList(); a...
private void validateDescriptionProviders(AdditionalInitialization additionalInit, ModelTestKernelServices kernelServices) { ValidationConfiguration arbitraryDescriptors = additionalInit.getModelValidationConfiguration(); ModelNode address = new ModelNode(); address.setEmptyList(); a...
private Object resolveRequestParam(String paramName, boolean required, String defaultValue, MethodParameter methodParam, NativeWebRequest webRequest, Object handlerForInitBinderCall) throws Exception { Class<?> paramType = methodParam.getParameterType(); if (Map.class.isAssignableFrom(paramType)) { retur...
private Object resolveRequestParam(String paramName, boolean required, String defaultValue, MethodParameter methodParam, NativeWebRequest webRequest, Object handlerForInitBinderCall) throws Exception { Class<?> paramType = methodParam.getParameterType(); if (Map.class.isAssignableFrom(paramType) && paramNam...
private PrivatelyShadowedChild privatelyShadowedChild; private Class<?> parentClass = PublicChild.class.getSuperclass();
private PrivatelyShadowedChild privatelyShadowedChild; private final Class<?> parentClass = PublicChild.class.getSuperclass();
private double d = 0.0; }
private final double d = 0.0; }
// getDeclaredField checks for non-public scopes as well // and it returns accurate results if (!Modifier.isPublic(field.getModifiers())) { if (forceAccess) { field.setAccessible(true); } else { ...
// getDeclaredField checks for non-public scopes as well // and it returns accurate results if (!Modifier.isPublic(field.getModifiers())) { if (forceAccess) { field.setAccessible(true); } else { ...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); if(ctx.isDomainMode()) { final String profile = this.profile.getValue(ctx.getParsedCommandLine()); if(profile == n...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); if(ctx.isDomainMode()) { final String profile = this.profile.getValue(ctx.getParsedCommandLine()); i...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { try { if(!ctx.getParsedCommandLine().hasProperties()) { throw new OperationFormatException("Arguments are missing"); } } catch (CommandFormatException e) { throw n...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws OperationFormatException { try { if(!ctx.getParsedCommandLine().hasProperties()) { throw new OperationFormatException("Arguments are missing"); } } catch (CommandFormatException e) { ...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { try { if(!ctx.getParsedCommandLine().hasProperties()) { throw new OperationFormatException("Arguments are missing"); } } catch (CommandFormatException e) { ...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws OperationFormatException { try { if(!ctx.getParsedCommandLine().hasProperties()) { throw new OperationFormatException("Arguments are missing"); } } catch (CommandFormatExceptio...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); ParsedCommandLine args = ctx.getParsedCommandLine(); if(ctx.isDomainMode()) { String profile = this.profile.getValue...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); ParsedCommandLine args = ctx.getParsedCommandLine(); if(ctx.isDomainMode()) { String profile = this.pr...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { final String name = this.name.getValue(ctx.getParsedCommandLine(), true); String serverName = "default"; // TODO read server name from props DefaultOperationRequestBuilder builder = new DefaultOperationReques...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { final String name = this.name.getValue(ctx.getParsedCommandLine(), true); String serverName = "default"; // TODO read server name from props DefaultOperationRequestBuilder builder = new DefaultO...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); ParsedCommandLine args = ctx.getParsedCommandLine(); if(ctx.isDomainMode()) { String profile = this.profile.getValue(...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); ParsedCommandLine args = ctx.getParsedCommandLine(); if(ctx.isDomainMode()) { String profile = this.pro...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); if(ctx.isDomainMode()) { final String profile = this.profile.getValue(ctx.getParsedCommandLine()); if(profile == n...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); if(ctx.isDomainMode()) { final String profile = this.profile.getValue(ctx.getParsedCommandLine()); i...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); ParsedCommandLine args = ctx.getParsedCommandLine(); if(ctx.isDomainMode()) { String profile = this.profile.getValue(...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); ParsedCommandLine args = ctx.getParsedCommandLine(); if(ctx.isDomainMode()) { String profile = this.pro...
public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); if(ctx.isDomainMode()) { final String profile = this.profile.getValue(ctx.getParsedCommandLine()); if(profile == n...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(); if(ctx.isDomainMode()) { final String profile = this.profile.getValue(ctx.getParsedCommandLine()); i...
public InetSocketAddress getBindAddress() { return InetSocketAddress.class.cast(getLocalPort()); }
public InetSocketAddress getBindAddress() { return InetSocketAddress.class.cast(getLocalSocketAddress()); }
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue) throws OperationFailedException { AttributeDefinition attr = runtimeAttributes.get(attributeName); if (attr != null) { ServiceRegistry r...
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue) throws OperationFailedException { AttributeDefinition attr = runtimeAttributes.get(attributeName); if (attr != null) { ServiceRegistry r...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.ir; /* * 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 softwa...
package org.jboss.as.iiop.openjdk.rmi.marshal; /* * 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 s...
package org.jboss.as.iiop.openjdk.rmi.marshal; /* * 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 s...
package org.jboss.as.iiop.openjdk.rmi.marshal; /* * 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 s...
package org.jboss.as.iiop.openjdk.rmi.marshal; /* * 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 s...
public synchronized void start(StartContext context) throws StartException { final JMSServerManager jmsManager = jmsServer.getValue(); try { WritableServiceBasedNamingStore.pushOwner(context.getChildTarget()); try { jmsManager.createConnectionFactory(false, co...
public synchronized void start(StartContext context) throws StartException { final JMSServerManager jmsManager = jmsServer.getValue(); try { WritableServiceBasedNamingStore.pushOwner(context.getChildTarget()); try { jmsManager.createConnectionFactory(false, co...
public synchronized void start(StartContext context) throws StartException { final JMSServerManager jmsManager = jmsServer.getValue(); try { jmsManager.createQueue(false, queueName, selectorString, durable, jndi); } catch (Exception e) { throw new StartException(MESSA...
public synchronized void start(StartContext context) throws StartException { final JMSServerManager jmsManager = jmsServer.getValue(); try { jmsManager.createQueue(false, queueName, selectorString, durable, jndi); } catch (Exception e) { throw MESSAGES.failedToCreate(...
public synchronized void start(StartContext context) throws StartException { final JMSServerManager jmsManager = jmsServer.getValue(); try { jmsManager.createTopic(false, name, jndi); } catch (Exception e) { throw new StartException(MESSAGES.failedToCreate("queue"), e...
public synchronized void start(StartContext context) throws StartException { final JMSServerManager jmsManager = jmsServer.getValue(); try { jmsManager.createTopic(false, name, jndi); } catch (Exception e) { throw MESSAGES.failedToCreate(e, "queue"); } }
public void start(StartContext context) throws StartException { ServiceTarget serviceTarget = context.getChildTarget(); try { createService(serviceTarget, context.getController().getServiceContainer()); } catch (Exception e) { throw new StartException(MESSAGES...
public void start(StartContext context) throws StartException { ServiceTarget serviceTarget = context.getChildTarget(); try { createService(serviceTarget, context.getController().getServiceContainer()); } catch (Exception e) { throw MESSAGES.failedToCreate(e, ...
private boolean removeServer() throws Exception { ServerIdentity server = chooseServer(ServerStatus.STOPPED, ServerStatus.DISABLED); if (server != null) { stdout.println("Removing server " + server.getServerName()); ModelNode op = new ModelNode(); op.get("operati...
private boolean removeServer() throws Exception { ServerIdentity server = chooseServer(ServerStatus.STOPPED, ServerStatus.DISABLED); if (server != null) { stdout.println("Removing server " + server.getServerName()); ModelNode op = new ModelNode(); op.get("operati...
public synchronized void start(final StartContext context) throws StartException { // JTS expects the TCCL to be set to something that can find the log factory class. setContextLoader(ArjunaTransactionManagerService.class.getClassLoader()); try { // Global configuration. ...
public synchronized void start(final StartContext context) throws StartException { // JTS expects the TCCL to be set to something that can find the log factory class. setContextLoader(ArjunaTransactionManagerService.class.getClassLoader()); try { // Global configuration. ...
public interface OperationAttachments { /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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; you ...
public interface OperationAttachments { /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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; you ...
private ObjectFactory factoryFromModularReference(ModularReference modularReference) throws NamingException { try { final Module module = Module.getModule(modularReference.getModuleIdentifier()); final Class<?> factoryClass = module.getClassLoader().loadClass(modularReference.getFact...
private ObjectFactory factoryFromModularReference(ModularReference modularReference) throws NamingException { try { final Module module = Module.getCurrentModuleLoader().loadModule(modularReference.getModuleIdentifier()); final Class<?> factoryClass = module.getClassLoader().loadClas...
public OrderedBidiMap<V, K> inverseBidiMap();
OrderedBidiMap<V, K> inverseBidiMap(); /* * 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, ...