buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private Entry() { ; // empty constructor }
private Entry() { super(); }
public EnumUtils() { ; // empty constructor }
public EnumUtils() { super(); }
StartException cannotResolveInitialCapability(@Cause Throwable th, String identifier); /* * 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 con...
StartException cannotResolveInitialCapability(@Cause Throwable th, String identifier); /* * 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 con...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { if(context.getAttachment(MODULE_ATTACHMENT_KEY) != null) return; // Skip it if someone else attached a module final ModuleConfig moduleConfig = context.getAttachment(ModuleConfig.ATTA...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { if(context.getAttachment(MODULE_ATTACHMENT_KEY) != null) return; // Skip it if someone else attached a module final ModuleConfig moduleConfig = context.getAttachment(ModuleConfig.ATTA...
public VisitorAttributes getAttributes() { return VisitorAttributes.RECURSE_LEAVES_ONLY; } }); } catch (IOException e) { throw new DeploymentUnitProcessingException("Could not mount nested jars in deployment: " + deploymentRoot.getName(...
public VisitorAttributes getAttributes() { return VisitorAttributes.RECURSE_LEAVES_ONLY; } }); } catch (IOException e) { throw new DeploymentUnitProcessingException("Could not mount nested jars in deployment: " + deploymentRoot.getName(...
private void addReference(final int sourcePosition, final int referencePosition) { if (srcAndRefPositions == null) { srcAndRefPositions = new int[6]; } if (referenceCount >= srcAndRefPositions.length) { int[] a = new int[srcAndRefPositions.length + 6]; ...
private void addReference(final int sourcePosition, final int referencePosition) { if (srcAndRefPositions == null) { srcAndRefPositions = new int[6]; } if (referenceCount >= srcAndRefPositions.length) { int[] a = new int[srcAndRefPositions.length + 6]; ...
public static Chart createChart(String title, int minX, int maxX, LegendPosition position) { Chart chart = new ChartBuilder().width(235).height(200).build(); // Customize Chart chart.setChartTitle(title); chart.getStyleManager().setChartTitleVisible(true); chart.getStyleMana...
public static Chart createChart(String title, int minX, int maxX, LegendPosition position) { Chart chart = new ChartBuilder().width(235).height(200).build(); // Customize Chart chart.setChartTitle(title); chart.getStyleManager().setChartTitleVisible(true); chart.getStyleMana...
public void transition(final ServiceController<? extends Object> controller, final ServiceController.Transition transition) { switch (transition) { case STARTING_to_UP: { SUBSYSTEM_DATASOURCES_LOGGER.boundDataSource(...
public void transition(final ServiceController<? extends Object> controller, final ServiceController.Transition transition) { switch (transition) { case STARTING_to_UP: { SUBSYSTEM_DATASOURCES_LOGGER.boundDataSource(...
private void writeAsynchHandler(final XMLExtendedStreamWriter writer, final ModelNode node, final String name) throws XMLStreamException { writer.writeStartElement(Element.ASYNC_HANDLER.getLocalName()); writer.writeAttribute(NAME.getXmlName(), name); writeLevel(writer, node); writeFi...
private void writeAsynchHandler(final XMLExtendedStreamWriter writer, final ModelNode node, final String name) throws XMLStreamException { writer.writeStartElement(Element.ASYNC_HANDLER.getLocalName()); writer.writeAttribute(NAME.getXmlName(), name); writeLevel(writer, node); writeFi...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { Activation val = Activation.valueOf(operation.require(ModelDescriptionConstants.VALUE).asString().toUpperCase(Locale.ENGLISH)); ModelNode node = context.readResourceForUpdate(PathAddress.EMPTY_ADDRE...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { Activation val = Activation.valueOf(operation.require(ModelDescriptionConstants.VALUE).asString().toUpperCase(Locale.ENGLISH)); ModelNode node = context.readResourceForUpdate(PathAddress.EMPTY_ADDRE...
public void marshallAsElement(ModelNode resourceModel, XMLStreamWriter writer) throws XMLStreamException { if (resourceModel.hasDefined(getName()) && resourceModel.asInt() > 0) { final ModelNode modules = resourceModel.get(getName()); for (ModelNode module : modules.asList()) { ...
public void marshallAsElement(ModelNode resourceModel, XMLStreamWriter writer) throws XMLStreamException { if (resourceModel.hasDefined(getName()) && resourceModel.asInt() > 0) { final ModelNode modules = resourceModel.get(getName()); for (ModelNode module : modules.asList()) { ...
private void writeAttributeLowerCaseValue(final XMLExtendedStreamWriter writer, final Attribute attr, final ModelNode value) throws XMLStreamException { writer.writeAttribute(attr.getLocalName(), value.asString().toLowerCase()); }
private void writeAttributeLowerCaseValue(final XMLExtendedStreamWriter writer, final Attribute attr, final ModelNode value) throws XMLStreamException { writer.writeAttribute(attr.getLocalName(), value.asString().toLowerCase(Locale.ENGLISH)); }
private static void processMethodRef(final DeploymentUnit unit, final WSRefAnnotationWrapper annotation, final MethodInfo methodInfo) throws DeploymentUnitProcessingException { final String methodName = methodInfo.name(); if (!methodName.startsWith("set") || methodInfo.args().length != 1) { ...
private static void processMethodRef(final DeploymentUnit unit, final WSRefAnnotationWrapper annotation, final MethodInfo methodInfo) throws DeploymentUnitProcessingException { final String methodName = methodInfo.name(); if (!methodName.startsWith("set") || methodInfo.args().length != 1) { ...
protected AntPathStringMatcher getStringMatcher(String pattern) { AntPathStringMatcher matcher = null; Boolean cachePatterns = this.cachePatterns; if (cachePatterns == null || cachePatterns.booleanValue()) { matcher = this.stringMatcherCache.get(pattern); } if (matcher == null) { matcher = new AntPathS...
protected AntPathStringMatcher getStringMatcher(String pattern) { AntPathStringMatcher matcher = null; Boolean cachePatterns = this.cachePatterns; if (cachePatterns == null || cachePatterns.booleanValue()) { matcher = this.stringMatcherCache.get(pattern); } if (matcher == null) { matcher = new AntPathS...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); String hornetqServerName = address.getElement(address.size() - 2).getValue(); Stri...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); String hornetqServerName = address.getElement(address.size() - 2).getValue(); Stri...
private void startedPooledConnectionFactory(ResolutionContext context, String name, ServiceBuilder<?> serviceBuilder, ServiceTarget serviceTarget, DeploymentUnit deploymentUnit, Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException, OperationFailedException { Map<String, Strin...
private void startedPooledConnectionFactory(ResolutionContext context, String name, ServiceBuilder<?> serviceBuilder, ServiceTarget serviceTarget, DeploymentUnit deploymentUnit, Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException, OperationFailedException { Map<String, Strin...
private T getResourceConfig(final PathAddress operationAddress) throws OperationFailedException { final String name = operationAddress.getLastElement().getValue(); final String server = operationAddress.getElement(operationAddress.size() - 2).getValue(); T config = resources.get(new Resour...
private T getResourceConfig(final PathAddress operationAddress) throws OperationFailedException { final String name = operationAddress.getLastElement().getValue(); final String server = operationAddress.getElement(operationAddress.size() - 2).getValue(); T config = resources.get(new Resour...
public void testInlineMapCreation02() { evaluate("#{1:'January', 2:'February', 3:'March'}", "{2=February, 1=January, 3=March}", HashMap.class); }
public void testInlineMapCreation02() { evaluate("#{1:'January', 2:'February', 3:'March'}.size()", 3, Integer.class);//"{2=February, 1=January, 3=March}", HashMap.class); }
public String format(final Object... values) { final StringWriter out = new StringWriter(); try { new CSVPrinter(out, this).println(values); return out.toString().trim(); } catch (final IOException e) { // should not happen because a StringWriter does not ...
public String format(final Object... values) { final StringWriter out = new StringWriter(); try { new CSVPrinter(out, this).printRecord(values); return out.toString().trim(); } catch (final IOException e) { // should not happen because a StringWriter does ...
protected void run(ModelControllerClient client) throws Exception { // Create a new socket binding final ModelNode bindingResult = createSocketBinding(client); checkSuccess(bindingResult); // Add a new web connector final ModelNode connectorResult = createWebConnector(client)...
protected void run(ModelControllerClient client) throws Exception { // Create a new socket binding final ModelNode bindingResult = createSocketBinding(client); checkSuccess(bindingResult); // Add a new web connector final ModelNode connectorResult = createWebConnector(client)...
protected void registerListener(AbstractListenerService<?> listener) { listeners.add(listener); if (listener.isSecure()) { SocketBinding binding = (SocketBinding) listener.getBinding().getValue(); servletContainer.getValue().registerSecurePort(listener.getName(), binding.getP...
protected void registerListener(AbstractListenerService<?> listener) { listeners.add(listener); if (listener.isSecure()) { SocketBinding binding = (SocketBinding) listener.getBinding().getValue(); servletContainer.getValue().registerSecurePort(listener.getName(), binding.getS...
public static NumberFormat getDefaultNumberFormat(final Locale locale) { final NumberFormat nf = NumberFormat.getInstance(locale); nf.setMaximumFractionDigits(8); return nf; }
public static NumberFormat getDefaultNumberFormat(final Locale locale) { final NumberFormat nf = NumberFormat.getInstance(locale); nf.setMaximumFractionDigits(2); return nf; }
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { TypedValue context = state.getActiveContextObject(); Object targetObject = context.getValue(); TypeDescriptor targetObjectTypeDescriptor = context.getTypeDescriptor(); TypedValue indexValue = null; Object index = null; ...
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { TypedValue context = state.getActiveContextObject(); Object targetObject = context.getValue(); TypeDescriptor targetObjectTypeDescriptor = context.getTypeDescriptor(); TypedValue indexValue = null; Object index = null; ...
protected void writeFrame(SockJsFrame frame) throws IOException { if (logger.isTraceEnabled()) { logger.trace("Preparing to write " + frame); } try { writeFrameInternal(frame); } catch (IOException ex) { if (ex instanceof EOFException || ex instanceof SocketException) { logger.warn("Client went ...
protected void writeFrame(SockJsFrame frame) throws IOException { if (logger.isTraceEnabled()) { logger.trace("Preparing to write " + frame); } try { writeFrameInternal(frame); } catch (IOException ex) { if (ex instanceof EOFException || ex instanceof SocketException) { logger.warn("Client went ...
protected void setParams(CommandContext ctx, ModelNode request) throws CommandFormatException { for(RequestParameterArgument arg : params) { arg.set(ctx.getParsedArguments(), request); } }
protected void setParams(CommandContext ctx, ModelNode request) throws CommandFormatException { for(RequestParameterArgument arg : params) { arg.set(ctx.getParsedCommandLine(), request); } }
public void handle(CommandContext ctx) throws CommandFormatException { if(helpArg.isPresent(ctx.getParsedArguments())) { printHelp(ctx); return; } if(!isAvailable(ctx)) { ctx.printLine("The command is not available in the current context (e.g. required s...
public void handle(CommandContext ctx) throws CommandFormatException { if(helpArg.isPresent(ctx.getParsedCommandLine())) { printHelp(ctx); return; } if(!isAvailable(ctx)) { ctx.printLine("The command is not available in the current context (e.g. required...
public void handle(CommandContext ctx) { boolean printCommands; try { printCommands = commands.isPresent(ctx.getParsedArguments()); } catch (CommandFormatException e) { ctx.printLine(e.getLocalizedMessage()); return; } if(printCommands) { ...
public void handle(CommandContext ctx) { boolean printCommands; try { printCommands = commands.isPresent(ctx.getParsedCommandLine()); } catch (CommandFormatException e) { ctx.printLine(e.getLocalizedMessage()); return; } if(printCommands) ...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { //DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(ctx.getPrefix()); //ctx.getOperationRequestParser().parse(ctx.getArgumentsString(), builder); //return builder.buildRequest(); ...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { //DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder(ctx.getPrefix()); //ctx.getOperationRequestParser().parse(ctx.getArgumentsString(), builder); //return builder.buildRequest(); ...
protected void doHandle(CommandContext ctx) { final String nodePath = this.nodePath.getValue(ctx.getParsedArguments()); OperationRequestAddress prefix = ctx.getPrefix(); if(nodePath == null) { ctx.printLine(ctx.getPrefixFormatter().format(prefix)); return; ...
protected void doHandle(CommandContext ctx) { final String nodePath = this.nodePath.getValue(ctx.getParsedCommandLine()); OperationRequestAddress prefix = ctx.getPrefix(); if(nodePath == null) { ctx.printLine(ctx.getPrefixFormatter().format(prefix)); return; ...
protected void doHandle(CommandContext ctx) throws CommandFormatException { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); ...
protected void doHandle(CommandContext ctx) throws CommandFormatException { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); ...
protected void doHandle(CommandContext ctx) throws CommandFormatException { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); ...
protected void doHandle(CommandContext ctx) throws CommandFormatException { BatchManager batchManager = ctx.getBatchManager(); if(!batchManager.isBatchActive()) { ctx.printLine("No active batch."); return; } Batch batch = batchManager.getActiveBatch(); ...
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException { try { if(!ctx.getParsedArguments().hasProperties()) { throw new OperationFormatException("Arguments are missing"); } } catch (CommandFormatException e) { throw new...
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 buildRequest(CommandContext ctx) throws OperationFormatException { try { if(!ctx.getParsedArguments().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 OperationNameState() { super(ID); //setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER); setDefaultHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER); putHandler('(', GlobalCharacterHandlers.LEAVE_STATE_HANDLER); putHandler(OutputTargetState.OUTP...
public OperationNameState() { super(ID); setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER); setDefaultHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER); putHandler('(', GlobalCharacterHandlers.LEAVE_STATE_HANDLER); putHandler(OutputTargetState.OUTPUT...
protected AbstractGeneratedAddressCompleterTest() { init(); }
protected AbstractGeneratedAddressCompleterTest() { super(); }
protected DefaultOperationCallbackHandler parse(String line) { DefaultOperationCallbackHandler args = new DefaultOperationCallbackHandler(); try { args.parse(line); } catch (CommandFormatException e) { e.printStackTrace(); org.junit.Assert.fail(e.getLocali...
protected DefaultOperationCallbackHandler parse(String line) { DefaultOperationCallbackHandler args = new DefaultOperationCallbackHandler(); try { args.parse(null, line); } catch (CommandFormatException e) { e.printStackTrace(); org.junit.Assert.fail(e.get...
public OutputStream _invoke(final String opName, final InputStream in, final ResponseHandler handler) { if (logger.isTraceEnabled()) { logger.trace("EJBObject invocation: " + opName); } SkeletonStrategy op = methodInvokerMap.get(opName); if (op == null) { lo...
public OutputStream _invoke(final String opName, final InputStream in, final ResponseHandler handler) { if (logger.isTraceEnabled()) { logger.trace("EJBObject invocation: " + opName); } SkeletonStrategy op = methodInvokerMap.get(opName); if (op == null) { lo...
public static boolean isDefaultJndiEnvironmentAvailable() { try { new InitialContext(); return true; } catch (Throwable ex) { return false; } }
public static boolean isDefaultJndiEnvironmentAvailable() { try { new InitialContext().getEnvironment(); return true; } catch (Throwable ex) { return false; } }
public void testInvalidateWKey(CacheableService service) throws Exception { Object o1 = new Object(); Object o2 = new Object(); Object r1 = service.cache(o1); Object r2 = service.cache(o1); assertSame(r1, r2); service.invalidate(o1, null); Object r3 = service.cache(o1); Object r4 = service.cache(o1);...
public void testInvalidateWKey(CacheableService service) throws Exception { Object o1 = new Object(); Object o2 = new Object(); Object r1 = service.cache(o1); Object r2 = service.cache(o1); assertSame(r1, r2); service.evict(o1, null); Object r3 = service.cache(o1); Object r4 = service.cache(o1); as...
void evict(Object arg1, Object arg2); /* * Copyright 2010-2011 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/...
void evict(Object arg1, Object arg2); /* * Copyright 2010-2011 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/...
private String getFullyQualifiedDeploymentPath(final String fileName) { return fileName; // TODO: Need some way to get fully qualified path for this (should be a system prop) }
private String getFullyQualifiedDeploymentPath(final String fileName) { return System.getProperty("jboss.server.deploy.dir") + "/" + fileName; }
public static void writeJVMElement(final XMLExtendedStreamWriter writer, final String jvmName, final ModelNode jvmElement) throws XMLStreamException { writer.writeStartElement(Element.JVM.getLocalName()); writer.writeAttribute(Attribute.NAME.getLocalName(), jvmName); JvmAttribut...
public static void writeJVMElement(final XMLExtendedStreamWriter writer, final String jvmName, final ModelNode jvmElement) throws XMLStreamException { writer.writeStartElement(Element.JVM.getLocalName()); writer.writeAttribute(Attribute.NAME.getLocalName(), jvmName); JvmAttribut...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { return null; } Collection<?> sourceCollection = (Collection<?>) source; if (sourceCollection.size() == 0) { return null; } Object firstElement = sourceCollection.iterator().next(); ret...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { return null; } Collection<?> sourceCollection = (Collection<?>) source; if (sourceCollection.size() == 0) { return null; } Object firstElement = sourceCollection.iterator().next(); ret...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { return null; } Collection<?> sourceCollection = (Collection<?>) source; if (sourceCollection.size() == 0) { return ""; } StringBuilder sb = new StringBuilder(); int i = 0; for (Objec...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { return null; } Collection<?> sourceCollection = (Collection<?>) source; if (sourceCollection.size() == 0) { return ""; } StringBuilder sb = new StringBuilder(); int i = 0; for (Objec...
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { TypedValue op = state.getActiveContextObject(); Object operand = op.getValue(); SpelNodeImpl selectionCriteria = children[0]; if (operand instanceof Map) { Map<?, ?> mapdata = (Map<?, ?>) operand; // TODO don't lose...
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { TypedValue op = state.getActiveContextObject(); Object operand = op.getValue(); SpelNodeImpl selectionCriteria = children[0]; if (operand instanceof Map) { Map<?, ?> mapdata = (Map<?, ?>) operand; // TODO don't lose...
public static int getTypeDifferenceWeight(List<TypeDescriptor> paramTypes, List<TypeDescriptor> argTypes) { int result = 0; for (int i = 0,max=paramTypes.size(); i < max; i++) { TypeDescriptor argType = argTypes.get(i); TypeDescriptor paramType = paramTypes.get(i); if (argType == null) { if (paramType...
public static int getTypeDifferenceWeight(List<TypeDescriptor> paramTypes, List<TypeDescriptor> argTypes) { int result = 0; for (int i = 0,max=paramTypes.size(); i < max; i++) { TypeDescriptor argType = argTypes.get(i); TypeDescriptor paramType = paramTypes.get(i); if (argType == null) { if (paramType...
public synchronized boolean updateCredentials2(Principal principal, String authType, String username, String password) { boolean changed = (safeEquals(this.principal, principal) || safeEquals(this.authType, authType) || safeEquals(this.username, username) || safeEquals(this.password, password)); t...
public synchronized boolean updateCredentials2(Principal principal, String authType, String username, String password) { boolean changed = (safeEquals(this.principal, principal) || safeEquals(this.authType, authType) || safeEquals(this.username, username) || safeEquals(this.password, password)); t...
protected void tearDown() throws Exception { super.tearDown(); ToStringBuilder.setDefaultStyle(STYLE); }
protected void tearDown() throws Exception { super.tearDown(); ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); }
protected void parseContentOverride(final String name, final XMLExtendedStreamReader reader, final ModelNode baseAddress, final List<ModelNode> list) throws XMLStreamException { final EnumSet<Attribute> required = EnumSet.of(Attribute.PATH, Attribute.CONTENT); String path = null; byte[] con...
protected void parseContentOverride(final String name, final XMLExtendedStreamReader reader, final ModelNode baseAddress, final List<ModelNode> list) throws XMLStreamException { final EnumSet<Attribute> required = EnumSet.of(Attribute.PATH, Attribute.CONTENT); String path = null; byte[] con...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification attachment = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); if (attachment == ...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification attachment = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); if (attachment == ...
public void start(StartContext context) throws StartException { final ServiceContainer container = context.getController().getServiceContainer(); final URL url = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getUrl(); final String deploymentName = connectorXmlDescriptor == n...
public void start(StartContext context) throws StartException { final ServiceContainer container = context.getController().getServiceContainer(); final URL url = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getUrl(); final String deploymentName = connectorXmlDescriptor == n...
public void execute(Tuple input) { TransactionAttempt attempt = (TransactionAttempt) input.getValue(0); try { if(input.getSourceStreamId().equals(TransactionalSpoutCoordinator.TRANSACTION_COMMIT_STREAM_ID)) { if(attempt.equals(_activeTransactions.get(attempt.getTransactio...
public void execute(Tuple input) { TransactionAttempt attempt = (TransactionAttempt) input.getValue(0); try { if(input.getSourceStreamId().equals(TransactionalSpoutCoordinator.TRANSACTION_COMMIT_STREAM_ID)) { if(attempt.equals(_activeTransactions.get(attempt.getTransactio...
void undeploy(DeploymentUnit context); /* * 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 ...
void undeploy(DeploymentUnit context); /* * 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 ...
@MessageLogger(projectCode = "WFLYRTS", length = 4) /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
@MessageLogger(projectCode = "WFLYRTS", length = 4) /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ServiceTarget serviceTarget = phaseContext.getServiceTarget(); if (!WeldDeploymentMarker.isWeldDeployment(deployme...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ServiceTarget serviceTarget = phaseContext.getServiceTarget(); if (!WeldDeploymentMarker.isWeldDeployment(deployme...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final Resource resource = context.removeResource(PathAddress.EMPTY_ADDRESS); reloadRequiredStep(context); context.completeStep(); } }; static void register(fi...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final Resource resource = context.removeResource(PathAddress.EMPTY_ADDRESS); reloadRequiredStep(context); context.completeStep(); } }; static void register(fi...
private void writeFilter(final XMLExtendedStreamWriter writer, final ModelNode node) throws XMLStreamException { if (node.hasDefined(CommonAttributes.FILTER.getName())) { writer.writeEmptyElement(CommonAttributes.FILTER.getXmlName()); writer.writeAttribute(CommonAttributes.STRING, no...
private void writeFilter(final XMLExtendedStreamWriter writer, final ModelNode node) throws XMLStreamException { if (node.hasDefined(CommonAttributes.FILTER.getName())) { writer.writeEmptyElement(CommonAttributes.FILTER.getXmlName()); writer.writeAttribute(CommonAttributes.STRING, no...
public static Properties raConnectionProperties() { Properties params = new Properties(); //attributes params.put("use-java-context", "false"); params.put("class-name", "Class1"); params.put("use-ccm", "true"); params.put("jndi-name", "java:jboss/name1"); para...
public static Properties raConnectionProperties() { Properties params = new Properties(); //attributes params.put("use-java-context", "false"); params.put("class-name", "Class1"); params.put("use-ccm", "true"); params.put("jndi-name", "java:jboss/name1"); para...
void registerCustomEditor(Class<?> requiredType, Class<? extends PropertyEditor> propertyEditorClass); /* * Copyright 2002-2009 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 ...
void registerCustomEditor(Class<?> requiredType, Class<? extends PropertyEditor> propertyEditorClass); /* * Copyright 2002-2009 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 ...
void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName); /* * 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 obt...
void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName); /* * 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 obt...
public ShellMsg readShellMsg() throws IOException, NoOutputException { JSONObject msg = (JSONObject) readMessage(); ShellMsg shellMsg = new ShellMsg(); String command = (String) msg.get("command"); shellMsg.setCommand(command); String id = (String) msg.get("id"); sh...
public ShellMsg readShellMsg() throws IOException, NoOutputException { JSONObject msg = (JSONObject) readMessage(); ShellMsg shellMsg = new ShellMsg(); String command = (String) msg.get("command"); shellMsg.setCommand(command); Object id = msg.get("id"); shellMsg.se...
public static void main(String[] args) throws Exception { LinearDRPCTopologyBuilder builder = new LinearDRPCTopologyBuilder("exclamation"); builder.addBolt(new ExclaimBolt(), 3); Config conf = new Config(); if (args == null || args.length == 0) { LocalDRPC drpc = new LocalDRPC(); LocalCl...
public static void main(String[] args) throws Exception { LinearDRPCTopologyBuilder builder = new LinearDRPCTopologyBuilder("exclamation"); builder.addBolt(new ExclaimBolt(), 3); Config conf = new Config(); if (args == null || args.length == 0) { LocalDRPC drpc = new LocalDRPC(); LocalCl...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { validator.validate(operation); ModelNode opAddr = operation.get(OP_ADDR); PathAddress address = PathAddress.pathAddress(opAddr); String name ...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { validator.validate(operation); ModelNode opAddr = operation.get(OP_ADDR); PathAddress address = PathAddress.pathAddress(opAddr); String name ...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { validator.validate(operation); ModelNode opAddr = operation.get(OP_ADDR); PathAddress address = PathAddress.pathAddress(opAddr); String name ...
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException { validator.validate(operation); ModelNode opAddr = operation.get(OP_ADDR); PathAddress address = PathAddress.pathAddress(opAddr); String name ...
public Channel createChannel(String id) throws Exception { JChannel channel = new MuxChannel(this); // We need to synchronize on shared transport, // so we don't attempt to init a shared transport multiple times TP transport = channel.getProtocolStack().getTransport(); if (t...
public Channel createChannel(String id) throws Exception { JChannel channel = new MuxChannel(this); // We need to synchronize on shared transport, // so we don't attempt to init a shared transport multiple times TP transport = channel.getProtocolStack().getTransport(); if (t...
ListenableFuture<Void> send(Message<P> message); /* * 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/lic...
ListenableFuture<Void> send(Message<P> message); /* * 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/lic...
public void testLazyLoading() { try { Person tony = new Person(); tony.setFirstName("Tony"); tony.setLastName("Blair"); tony.setDriversLicense(new DriversLicense("8439DK")); sharedEntityManager.persist(tony); setComplete(); endTransaction(); startNewTransaction(); sharedEntityManager.clea...
public void testLazyLoading() { try { Person tony = new Person(); tony.setFirstName("Tony"); tony.setLastName("Blair"); tony.setDriversLicense(new DriversLicense("8439DK")); sharedEntityManager.persist(tony); setComplete(); endTransaction(); startNewTransaction(); sharedEntityManager.clea...
private static BeanDefinitionHolder registerBeanPostProcessor( BeanDefinitionRegistry registry, RootBeanDefinition definition, String beanName) { // Default infrastructure bean: lowest order value; role infrastructure. definition.getPropertyValues().addPropertyValue("order", new Integer(Ordered.LOWEST_PRECEDEN...
private static BeanDefinitionHolder registerBeanPostProcessor( BeanDefinitionRegistry registry, RootBeanDefinition definition, String beanName) { // Default infrastructure bean: lowest order value; role infrastructure. definition.getPropertyValues().addPropertyValue("order", Ordered.LOWEST_PRECEDENCE); defin...
public boolean canRead(ArchiveEntry ae) { if (ae instanceof ZipArchiveEntry) { ZipArchiveEntry ze = (ZipArchiveEntry) ae; return !ze.isEncrypted() && (ze.getMethod() == ZipArchiveEntry.STORED || ze.getMethod() == ZipArchiveEntry.DEFLATED); } ...
public boolean canRead(ArchiveEntry ae) { if (ae instanceof ZipArchiveEntry) { ZipArchiveEntry ze = (ZipArchiveEntry) ae; return !ze.isEncrypted() && (ze.getMethod() == ZipArchiveEntry.STORED || ze.getMethod() == ZipArchiveEntry.DEFLATED); } ...
public boolean canWrite(ArchiveEntry ae) { if (ae instanceof ZipArchiveEntry) { ZipArchiveEntry ze = (ZipArchiveEntry) ae; return !ze.isEncrypted() && (ze.getMethod() == STORED || ze.getMethod() == DEFLATED); } return super.canWrite(ae); }
public boolean canWrite(ArchiveEntry ae) { if (ae instanceof ZipArchiveEntry) { ZipArchiveEntry ze = (ZipArchiveEntry) ae; return !ze.isEncrypted() && (ze.getMethod() == STORED || ze.getMethod() == DEFLATED); } return false; }
protected void handleMissingValue(String name, MethodParameter param) throws ServletRequestBindingException { String paramType = param.getParameterType().getName(); throw new ServletRequestBindingException( "Missing URI path parameter '" + name + "' for method parameter type [" + paramType + "]"); }
protected void handleMissingValue(String name, MethodParameter param) throws ServletRequestBindingException { String paramType = param.getParameterType().getName(); throw new ServletRequestBindingException( "Missing matrix variable '" + name + "' for method parameter type [" + paramType + "]"); }
public CLIWrapper(boolean connect, String[] cliArgs) throws Exception { init(cliArgs); if (!connect) { return; } //connect // wait for cli welcome message String line = readLine(10000); while (!line.contains("You are disconnected")) { ...
public CLIWrapper(boolean connect, String[] cliArgs) throws Exception { init(cliArgs); if (!connect) { return; } //connect // wait for cli welcome message String line = readLine(30000); while (!line.contains("You are disconnected")) { ...
public void test() throws Exception { List<ModelNode> operations = parse("subsystem.xml"); Assert.assertEquals(1, operations.size()); final ModelNode operation = operations.get(0); System.err.println(operation); operation.get(OP_ADDR).asPropertyList(); final ModelN...
public void test() throws Exception { List<ModelNode> operations = parse("subsystem.xml"); Assert.assertEquals(1, operations.size()); final ModelNode operation = operations.get(0); System.err.println(operation); operation.get(OP_ADDR).asPropertyList(); final ModelN...
protected CacheDefinition determineCacheDefinition(AnnotatedElement ae) { for (CacheAnnotationParser annotationParser : this.annotationParsers) { CacheDefinition attr = annotationParser.parseTransactionAnnotation(ae); if (attr != null) { return attr; } } return null; }
protected CacheDefinition determineCacheDefinition(AnnotatedElement ae) { for (CacheAnnotationParser annotationParser : this.annotationParsers) { CacheDefinition attr = annotationParser.parseCacheAnnotation(ae); if (attr != null) { return attr; } } return null; }
CacheDefinition parseCacheAnnotation(AnnotatedElement ae); /* * Copyright 2010 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.apac...
CacheDefinition parseCacheAnnotation(AnnotatedElement ae); /* * Copyright 2010 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.apac...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); fina...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); fina...
private static ModelNode validateResolvedModel(final AttributeDefinition definition, final OperationContext context, final ModelNode subModel) throws OperationFailedException { final String attributeName = definition.getName(); final boolean has = s...
private static ModelNode validateResolvedModel(final AttributeDefinition definition, final OperationContext context, final ModelNode subModel) throws OperationFailedException { final String attributeName = definition.getName(); final boolean has = s...
OperationFailedException mustBeUndefinedIfTrue(String attrOne, String attrTwo); /* * 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...
OperationFailedException mustBeUndefinedIfTrue(String attrOne, String attrTwo); /* * 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 static void createHostRegistry(final String hostName, final ManagementResourceRegistration root, final HostControllerConfigurationPersister configurationPersister, final HostControllerEnvironment environment, final HostRunnin...
public static void createHostRegistry(final String hostName, final ManagementResourceRegistration root, final HostControllerConfigurationPersister configurationPersister, final HostControllerEnvironment environment, final HostRunnin...
public static final String CRLF = "\r\n";
static final String CRLF = "\r\n"; /* * 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, Vers...
public double[][] getCovariances(EstimationProblem problem) throws EstimationException { // set up the jacobian updateJacobian(); // compute transpose(J).J, avoiding building big intermediate matrices final int rows = problem.getMeasurements().length; final int cols ...
public double[][] getCovariances(EstimationProblem problem) throws EstimationException { // set up the jacobian updateJacobian(); // compute transpose(J).J, avoiding building big intermediate matrices final int rows = problem.getMeasurements().length; final int cols ...
private BundleContext getBundleContext() { BundleManager bundleManager = injectedBundleManager.getOptionalValue(); BundleContext context = bundleManager != null ? bundleManager.getSystemBundle().getBundleContext() : null; if (context == null) { LOGGER.warnBundleContextNotAvailabl...
private BundleContext getBundleContext() { BundleManager bundleManager = injectedBundleManager.getOptionalValue(); BundleContext context = bundleManager != null ? bundleManager.getSystemBundle().getBundleContext() : null; if (context == null) { LOGGER.debugf("BundleContext not av...
private void writeBridges(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { List<Property> properties = node.asPropertyList(); if (!properties.isEmpty()) { writer.writeStartElement(Element.BRIDGES.getLocalName()); for(final Property property : node.a...
private void writeBridges(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { List<Property> properties = node.asPropertyList(); if (!properties.isEmpty()) { writer.writeStartElement(Element.BRIDGES.getLocalName()); for(final Property property : node.a...
public Object lookupLink(String name) throws NamingException { return lookup(parseName(name)); }
public Object lookupLink(String name) throws NamingException { return lookupLink(parseName(name)); }
public synchronized void execute(final OperationContext context, final ModelNode operation) { // Wait for services to reach rest state. // Additionally... // Temp workaround to MSC issue of geting STARTING_TO_STARTED notification for parent service before // getting the PROBLEM_TO_S...
public synchronized void execute(final OperationContext context, final ModelNode operation) { // Wait for services to reach rest state. // Additionally... // Temp workaround to MSC issue of geting STARTING_TO_STARTED notification for parent service before // getting the PROBLEM_TO_S...
public void getResourceValue(final AbstractComponentDescription componentDescription, final BindingDescription bindingDescription, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<JndiInjectable> injector) { if (lookupName.startsWith("java:")) { /...
public void getResourceValue(final AbstractComponentDescription componentDescription, final BindingDescription bindingDescription, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<JndiInjectable> injector) { if (lookupName.startsWith("java:")) { /...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if(!DeploymentTypeMarker.isType(DeploymentType.WAR,deploymentUnit)) { return; } final Map<String, A...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if(!DeploymentTypeMarker.isType(DeploymentType.WAR,deploymentUnit)) { return; } final Map<String, A...
public CSVPrinter(final Appendable out, final CSVFormat format) { this.out = out; this.format = format == null ? CSVFormat.DEFAULT : format; format.validate(); }
public CSVPrinter(final Appendable out, final CSVFormat format) { this.out = out; this.format = format == null ? CSVFormat.DEFAULT : format; this.format.validate(); }
public void persist(XMLExtendedStreamWriter writer, ModelNode model, String namespaceURI) throws XMLStreamException { boolean wildcard = resourceDefinition.getPathElement().isWildcard(); model = wildcard ? model.get(resourceDefinition.getPathElement().getKey()) : model.get(resourceDefinition.getPath...
public void persist(XMLExtendedStreamWriter writer, ModelNode model, String namespaceURI) throws XMLStreamException { boolean wildcard = resourceDefinition.getPathElement().isWildcard(); model = wildcard ? model.get(resourceDefinition.getPathElement().getKey()) : model.get(resourceDefinition.getPath...
public void testMDBLifecycle() throws Exception { deployer.deploy("mdb"); SecurityClient client = this.login(); ITestResultsSingleton results = this.getResultsSingleton(); MessageProducer producer = null; MessageConsumer consumer = null; QueueConnection conn = null; ...
public void testMDBLifecycle() throws Exception { deployer.deploy("mdb"); SecurityClient client = this.login(); ITestResultsSingleton results = this.getResultsSingleton(); MessageProducer producer = null; MessageConsumer consumer = null; QueueConnection conn = null; ...
public void testSendMessage() throws Exception { ConnectionFactory connFactory = lookup("ConnectionFactory", ConnectionFactory.class); Connection conn = connFactory.createConnection(); conn.start(); Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Tempor...
public void testSendMessage() throws Exception { ConnectionFactory connFactory = lookup("ConnectionFactory", ConnectionFactory.class); Connection conn = connFactory.createConnection(); conn.start(); Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Tempor...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); Boolean ignore = deploymentUnit.getAttachment(Attachments.IGNORE_OSGI); if (ignore != null && ignore.booleanValue()...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); Boolean ignore = deploymentUnit.getAttachment(Attachments.IGNORE_OSGI); if (ignore != null && ignore.booleanValue()...
K extract(Object target, Method method, Object... params); /* * Copyright 2010-2011 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...
K extract(Object target, Method method, Object... params); /* * Copyright 2010-2011 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...
public Object extract(Method method, Object... params) { if (params.length == 1) { return params[0]; } if (params.length == 0) { return 0; } int hashCode = 17; for (Object object : params) { hashCode = 31 * hashCode + object.hashCode(); } return Integer.valueOf(hashCode); } }
public Object extract(Object target, Method method, Object... params) { if (params.length == 1) { return params[0]; } if (params.length == 0) { return 0; } int hashCode = 17; for (Object object : params) { hashCode = 31 * hashCode + object.hashCode(); } return Integer.valueOf(hashCode); }...
private boolean updateXTSEndpoint(final String endpoint, final EndpointMetaData endpointMetaData, final WebservicesMetaData webservicesMetaData, final DeploymentUnit unit) { if (endpointMetaData.isWebservice() && endpointMetaData.getWebServiceAnnotation().isValidDeclaration()) { fin...
private boolean updateXTSEndpoint(final String endpoint, final EndpointMetaData endpointMetaData, final WebservicesMetaData webservicesMetaData, final DeploymentUnit unit) { if (endpointMetaData.isWebservice()) { final List<String> handlers = new ArrayList<String>(); if...
public void testGetCompressedFilename() { assertEquals(".bz2", BZip2Utils.getCompressedFilename("")); assertEquals(" .bz2", BZip2Utils.getCompressedFilename(" ")); assertEquals("x.bz2", BZip2Utils.getCompressedFilename("x")); assertEquals("X.bz2", BZip2Utils.getCompressedFilename("X"...
public void testGetCompressedFilename() { assertEquals(".bz2", BZip2Utils.getCompressedFilename("")); assertEquals(" .bz2", BZip2Utils.getCompressedFilename(" ")); assertEquals("x.bz2", BZip2Utils.getCompressedFilename("x")); assertEquals("X.bz2", BZip2Utils.getCompressedFilename("X"...
public UpdatePropertiesHandler(ConsoleWrapper theConsole) { this.theConsole = theConsole; } /** * Implement the persistence handler for storing the properties */ abstract void persist(String[] entry, File file) throws IOException; /** * Customize message for update or add u...
public UpdatePropertiesHandler(ConsoleWrapper theConsole) { this.theConsole = theConsole; } /** * Implement the persistence handler for storing the properties */ abstract void persist(String[] entry, File file) throws IOException; /** * Customize message for update or add u...
public void testAddUser() throws IOException, StartException { values.setRoles(ROLES); AddUser addUserState = new AddUser(consoleMock, values); AssertConsoleBuilder consoleBuilder = new AssertConsoleBuilder(). expectedDisplayText(MESSAGES.addedUser(values.getUserName(), valu...
public void testAddUser() throws IOException, StartException { values.setRoles(ROLES); AddUser addUserState = new AddUser(consoleMock, values); AssertConsoleBuilder consoleBuilder = new AssertConsoleBuilder(). expectedDisplayText(MESSAGES.addedUser(values.getUserName(), valu...
Component getComponent(); /* * 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 redistribute ...
Component getComponent(); /* * 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 redistribute ...
public Object getObjectInstance(Object serviceValue, Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { final Component<Object> component = (Component<Object>)serviceValue; return component.createProxy(); }
public Object getObjectInstance(Object serviceValue, Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { final Component component = (Component)serviceValue; return component.createProxy(); }