buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public ModelNode getModelDescription(final Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode operation = new ModelNode(); operation.get(OPERATION_NAME).set("add"); operation.get(DESCRIPTION).set(bundle.getString("datasource...
public ModelNode getModelDescription(final Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode operation = new ModelNode(); operation.get(OPERATION_NAME).set("add"); operation.get(DESCRIPTION).set(bundle.getString("data-sourc...
public Void invoke(Cache<Address, Map.Entry<K, V>> cache) { cache.removeAsync(getLocalAddress(cache)); return null; } }; // Add SKIP_LOCKING flag to so that we aren't blocked by state transfer lock this.invoker.invoke(this.cache.getValue(),...
public Void invoke(Cache<Address, Map.Entry<K, V>> cache) { cache.remove(getLocalAddress(cache)); return null; } }; // Add SKIP_LOCKING flag to so that we aren't blocked by state transfer lock this.invoker.invoke(this.cache.getValue(), oper...
public Collection<ServiceController<?>> installServices(ServiceTarget target) { InjectedValue<Cache> cache = new InjectedValue<Cache>(); InjectedValue<Registry.RegistryEntryProvider> providerValue = new InjectedValue<Registry.RegistryEntryProvider>(); ServiceController<?> controller = target...
public Collection<ServiceController<?>> installServices(ServiceTarget target) { InjectedValue<Cache> cache = new InjectedValue<Cache>(); InjectedValue<Registry.RegistryEntryProvider> providerValue = new InjectedValue<Registry.RegistryEntryProvider>(); ServiceController<?> controller = Asynch...
private void applyOperationToHornetQService(final OperationContext context, String name, String attributeName, ModelNode value, ServiceController<?> hqService) { HornetQServer server = HornetQServer.class.cast(hqService.getValue()); ConnectionFactoryControl control = ConnectionFactoryControl.class....
private void applyOperationToHornetQService(final OperationContext context, String name, String attributeName, ModelNode value, ServiceController<?> hqService) { HornetQServer server = HornetQServer.class.cast(hqService.getValue()); ConnectionFactoryControl control = ConnectionFactoryControl.class....
private void createService(ServiceTarget serviceTarget, ServiceContainer container) throws Exception { InputStream is = null; InputStream isIj = null; List<ConfigProperty> properties = new ArrayList<ConfigProperty>(); try { StringBuilder connectorClassname = new StringBui...
private void createService(ServiceTarget serviceTarget, ServiceContainer container) throws Exception { InputStream is = null; InputStream isIj = null; List<ConfigProperty> properties = new ArrayList<ConfigProperty>(); try { StringBuilder connectorClassname = new StringBui...
public static BigInteger createBigInteger(final String str) { if (str == null) { return null; } int pos = 0; // offset within string int radix = 10; boolean negate = false; // need to negate later? if (str.startsWith("-")) { negate = true; ...
public static BigInteger createBigInteger(final String str) { if (str == null) { return null; } int pos = 0; // offset within string int radix = 10; boolean negate = false; // need to negate later? if (str.startsWith("-")) { negate = true; ...
private static final PathElement STORE_PROPERTY_PATH = PathElement.pathElement(ModelKeys.PROPERTY); // attributes static final SimpleAttributeDefinition VALUE = new SimpleAttributeDefinitionBuilder("value", ModelType.STRING, false) .setXmlName("value") .s...
private static final PathElement STORE_PROPERTY_PATH = PathElement.pathElement(ModelKeys.PROPERTY); // attributes static final SimpleAttributeDefinition VALUE = new SimpleAttributeDefinitionBuilder("value", ModelType.STRING, false) .setXmlName("value") .s...
public static Archive getInstance(File file) throws ArchiveException { if(file == null && !file.isFile()) { throw new ArchiveException("ArchiverFactory could not create instance for this file"); } /* Archive result */ PackableObject packable = null; try { packable = PackableObject.identify...
public static Archive getInstance(File file) throws ArchiveException { if(file == null || !file.isFile()) { throw new ArchiveException("ArchiverFactory could not create instance for this file"); } /* Archive result */ PackableObject packable = null; try { packable = PackableObject.identify...
public static Compressor getInstance(File file) throws CompressException { if(file == null && !file.isFile()) { throw new CompressException("CompressorFactory could not create instance for this file"); } /* Archive result */ PackableObject packable = null; try { packable = PackableObject.i...
public static Compressor getInstance(File file) throws CompressException { if(file == null || !file.isFile()) { throw new CompressException("CompressorFactory could not create instance for this file"); } /* Archive result */ PackableObject packable = null; try { packable = PackableObject.i...
public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotationType) { Assert.notNull(clazz, "Class must not be null"); A annotation = clazz.getAnnotation(annotationType); if (annotation != null) { return annotation; } for (Class<?> ifc : clazz.getInterfaces()) { annotation = ...
public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotationType) { Assert.notNull(clazz, "Class must not be null"); A annotation = clazz.getAnnotation(annotationType); if (annotation != null) { return annotation; } for (Class<?> ifc : clazz.getInterfaces()) { annotation = ...
public TransformationDescription build() { final AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry empty = new AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry(); return buildDefault(DiscardPolicy.REJECT, tr...
public TransformationDescription build() { final AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry empty = new AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry(); return buildDefault(DiscardPolicy.REJECT_AND...
public void installRuntimeServices(OperationContext context, ModelNode model, List<ServiceController<?>> newControllers, String name) throws OperationFailedException { final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY_ADDRESS)); SessionCookieConfig config =...
public void installRuntimeServices(OperationContext context, ModelNode model, List<ServiceController<?>> newControllers, String name) throws OperationFailedException { final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY_ADDRESS)); SessionCookieConfig config =...
private void processDeployment(final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget, String hostName) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot()...
private void processDeployment(final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget, String hostName) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot()...
private ModelNode getNoTextValueTypeDescription(final ModelNode parent) { final ModelNode valueType = parent.get(VALUE_TYPE); final ModelNode code = valueType.get(CODE); code.get(DESCRIPTION); // placeholder code.get(TYPE).set(ModelType.STRING); code.get(NILLABLE).set(false);...
private ModelNode getNoTextValueTypeDescription(final ModelNode parent) { final ModelNode valueType = parent.get(VALUE_TYPE); final ModelNode code = valueType.get(CODE); code.get(DESCRIPTION); // placeholder code.get(TYPE).set(ModelType.STRING); code.get(NILLABLE).set(false);...
public boolean isSupportLowerBoundInclusive() { return true; }
public boolean isSupportLowerBoundInclusive() { return false; }
public boolean isSupportUpperBoundInclusive() { return false; }
public boolean isSupportUpperBoundInclusive() { return true; }
public String getResourceDescription(Locale locale, ResourceBundle bundle) { return bundle.getString(specificType); } }, new TransportConfigOperationHandlers.BasicTransportConfigAdd(isAcceptor, attrs), Transp...
public String getResourceDescription(Locale locale, ResourceBundle bundle) { return bundle.getString(specificType); } }, new TransportConfigOperationHandlers.BasicTransportConfigAdd(isAcceptor, attrs), new Ho...
public void testJavaSerialization() { exceptionContext.setContextValue("test Poorly written obj", "serializable replacement"); @SuppressWarnings("unchecked") T clone = (T)SerializationUtils.deserialize(SerializationUtils.serialize(exceptionContext)); assertEquals(exceptionCo...
public void testJavaSerialization() { exceptionContext.setContextValue("test Poorly written obj", "serializable replacement"); @SuppressWarnings("unchecked") T clone = SerializationUtils.deserialize(SerializationUtils.serialize(exceptionContext)); assertEquals(exceptionConte...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { // read /subsystem=jgroups/stack=* for update final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS); final ModelNode subModel = resource.getModel(); ...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { // read /subsystem=jgroups/stack=* for update final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS); final ModelNode subModel = resource.getModel(); ...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathElement transportRelativePath = PathElement.pathElement(ModelKeys.TRANSPORT, ModelKeys.TRANSPORT_NAME); final Resource resource = context.createResource(PathAddress.EMPTY_ADDRE...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathElement transportRelativePath = PathElement.pathElement(ModelKeys.TRANSPORT, ModelKeys.TRANSPORT_NAME); final Resource resource = context.createResource(PathAddress.EMPTY_ADDRE...
public void testConstructor() { assertNotNull(new DurationFormatUtils()); Constructor[] cons = DurationFormatUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPubli...
public void testConstructor() { assertNotNull(new DurationFormatUtils()); Constructor<?>[] cons = DurationFormatUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPu...
private PatchingResult applyPatch(final String patchId, final Patch patch, final IdentityPatchContext context) throws PatchingException, IOException, XMLStreamException { final List<String> invalidation; final Identity identity = patch.getIdentity(); final Patch.PatchType patchType = identi...
private PatchingResult applyPatch(final String patchId, final Patch patch, final IdentityPatchContext context) throws PatchingException, IOException, XMLStreamException { final List<String> invalidation; final Identity identity = patch.getIdentity(); final Patch.PatchType patchType = identi...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final String deploymentUnitName = deploymentUnit.getName(); final String moduleName; if (deploymentUnitName...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final String deploymentUnitName = deploymentUnit.getName(); final String moduleName; if (deploymentUnitName...
public static JBossWebMetaData getJBossWebMetaData(final DeploymentUnit unit) { final WarMetaData warMetaData = getOptionalAttachment(unit, WarMetaData.ATTACHMENT_KEY); JBossWebMetaData result = null; if (warMetaData != null) { result = warMetaData.getMergedJBossWebMetaData(); ...
public static JBossWebMetaData getJBossWebMetaData(final DeploymentUnit unit) { final WarMetaData warMetaData = getOptionalAttachment(unit, WarMetaData.ATTACHMENT_KEY); JBossWebMetaData result = null; if (warMetaData != null) { result = warMetaData.getMergedJBossWebMetaData(); ...
* do not have to be public. * * <p>In the case of multiple argument methods, the 'required' parameter is * applicable for all arguments. * * <p>In case of a {@link java.util.Collection} or {@link java.util.Map} * dependency type, the container will autowire all beans matching the * declared value type. In case ...
* do not have to be public. * * <p>In the case of multiple argument methods, the 'required' parameter is * applicable for all arguments. * * <p>In case of a {@link java.util.Collection} or {@link java.util.Map} * dependency type, the container will autowire all beans matching the * declared value type. In case ...
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE}) /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a co...
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE}) /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a co...
private Simple8BitZipEncoding encoding; /** * Instantiate a simple encoding holder. * * @param highChars The characters for byte codes 128 to 255. * * @see Simple8BitZipEncoding#Simple8BitZipEncoding(char[]) */ SimpleEncodingHolderxx(char ...
private Simple8BitZipEncoding encoding; /** * Instantiate a simple encoding holder. * * @param highChars The characters for byte codes 128 to 255. * * @see Simple8BitZipEncoding#Simple8BitZipEncoding(char[]) */ SimpleEncodingHolder(char []...
public SimpleSessionMetaData readObject(ObjectInput input) throws IOException, ClassNotFoundException { Date creationTime = new Date(input.readLong()); Date lastAccessedTime = new Date(input.readLong()); Time maxInactiveInterval = new Time(input.readInt(), TimeUnit.SECONDS); return n...
public SimpleSessionMetaData readObject(ObjectInput input) throws IOException { Date creationTime = new Date(input.readLong()); Date lastAccessedTime = new Date(input.readLong()); Time maxInactiveInterval = new Time(input.readInt(), TimeUnit.SECONDS); return new SimpleSessionMetaData...
public CoarseSessionCacheEntry<Object> readObject(ObjectInput input) throws IOException, ClassNotFoundException { return new CoarseSessionCacheEntry<>(this.externalizer.readObject(input)); } }
public CoarseSessionCacheEntry<Object> readObject(ObjectInput input) throws IOException { return new CoarseSessionCacheEntry<>(this.externalizer.readObject(input)); } }
public SessionAttributesCacheKey readObject(ObjectInput input) throws IOException, ClassNotFoundException { return new SessionAttributesCacheKey(input.readUTF()); } }
public SessionAttributesCacheKey readObject(ObjectInput input) throws IOException { return new SessionAttributesCacheKey(input.readUTF()); } }
public FineSessionCacheEntry<Object> readObject(ObjectInput input) throws IOException, ClassNotFoundException { FineSessionCacheEntry<Object> entry = new FineSessionCacheEntry<>(this.externalizer.readObject(input)); Set<String> attributes = entry.getAttributes(); int size = input.readInt(); ...
public FineSessionCacheEntry<Object> readObject(ObjectInput input) throws IOException { FineSessionCacheEntry<Object> entry = new FineSessionCacheEntry<>(this.externalizer.readObject(input)); Set<String> attributes = entry.getAttributes(); int size = input.readInt(); for (int i = 0; ...
public SessionAttributeCacheKey readObject(ObjectInput input) throws IOException, ClassNotFoundException { return new SessionAttributeCacheKey(input.readUTF(), input.readUTF()); } }
public SessionAttributeCacheKey readObject(ObjectInput input) throws IOException { return new SessionAttributeCacheKey(input.readUTF(), input.readUTF()); } }
public CoarseSSOCacheEntry<?> readObject(ObjectInput input) throws IOException, ClassNotFoundException { CoarseSSOCacheEntry<?> entry = new CoarseSSOCacheEntry<>(); entry.setAuthenticationType(AuthenticationType.values()[input.readByte()]); entry.setUser(input.readUTF()); entry.setPa...
public CoarseSSOCacheEntry<?> readObject(ObjectInput input) throws IOException { CoarseSSOCacheEntry<?> entry = new CoarseSSOCacheEntry<>(); entry.setAuthenticationType(AuthenticationType.values()[input.readByte()]); entry.setUser(input.readUTF()); entry.setPassword(input.readUTF());...
public void run() { cmdCtx.disconnectController(); } })); OperationRequestCompleter opCompleter = new OperationRequestCompleter(cmdCtx); console.addCompletor(new CommandCompleter(handlers.keySet(), opCompleter)); console.addCompletor(opCompleter); ...
public void run() { cmdCtx.disconnectController(); } })); OperationRequestCompleter opCompleter = new OperationRequestCompleter(cmdCtx); console.addCompletor(new CommandCompleter(handlers.keySet(), cmdCtx, opCompleter)); console.addCompletor(opComp...
private boolean containsElements(Collection<?> coll) { if (coll == null || coll.size() == 0) { return false; } for (Object name : coll) { if (name != null) { return true; } } return false; }
private boolean containsElements(Collection<?> coll) { if (coll == null || coll.isEmpty()) { return false; } for (Object name : coll) { if (name != null) { return true; } } return false; }
private static ConfigurationBuilderHolder load(String resource) { URL url = find(resource, CacheAdd.class.getClassLoader()); log.debugf("Loading Infinispan defaults from %s", url.toString()); ParserRegistry parser = new ParserRegistry(ParserRegistry.class.getClassLoader()); try (Inpu...
private static ConfigurationBuilderHolder load(String resource) { URL url = find(resource, CacheAdd.class.getClassLoader()); log.debugf("Loading Infinispan defaults from %s", url.toString()); ParserRegistry parser = new ParserRegistry(ParserRegistry.class.getClassLoader()); try (Inpu...
@Message(id = 10286, value = "Attribute 'virtual-nodes' has been deprecated - converting legacy 'virtual-nodes' value to 'segments' value") /* * 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...
@Message(id = 10286, value = "Attribute 'virtual-nodes' has been deprecated - converting legacy 'virtual-nodes' value to 'segments' value") /* * 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...
public String toString() { return String.format("[%d]: %s", Integer.valueOf(ino), name); }
public String toString() { return String.format("[%d]: %s", ino, name); }
private Archive readHeaders(byte[] password) throws IOException { final byte[] signature = new byte[6]; file.readFully(signature); if (!Arrays.equals(signature, sevenZSignature)) { throw new IOException("Bad 7z signature"); } // 7zFormat.txt has it wrong - it's fi...
private Archive readHeaders(byte[] password) throws IOException { final byte[] signature = new byte[6]; file.readFully(signature); if (!Arrays.equals(signature, sevenZSignature)) { throw new IOException("Bad 7z signature"); } // 7zFormat.txt has it wrong - it's fi...
protected int decompressNextSymbol() throws IOException { // // table entry table entry // _____________ _____ // table entry / \ / \ // ____________/ \ \ // / / \ ...
protected int decompressNextSymbol() throws IOException { // // table entry table entry // _____________ _____ // table entry / \ / \ // ____________/ \ \ // / / \ ...
public void testUnskippableChunk() { byte[] input = new byte[] { (byte) 0xff, 6, 0, 0, 's', 'N', 'a', 'P', 'p', 'Y', 2, 2, 0, 0, 1, 1 }; try { FramedSnappyCompressorInputStream in = new FramedSnappyCompressorInputStream(new ByteArrayInputSt...
public void testUnskippableChunk() { byte[] input = new byte[] { (byte) 0xff, 6, 0, 0, 's', 'N', 'a', 'P', 'p', 'Y', 2, 2, 0, 0, 1, 1 }; try { FramedSnappyCompressorInputStream in = new FramedSnappyCompressorInputStream(new ByteArrayInputSt...
public static void main(String[] args) throws Exception { final ModelControllerClient client = ModelControllerClient.Factory.create("localhost", 9999); try { final ModelNode domainOp = new ModelNode(); domainOp.get(OP).set(READ_RESOURCE_OPERATION); domainOp.get(O...
public static void main(String[] args) throws Exception { final ModelControllerClient client = ModelControllerClient.Factory.create("localhost", 9999); try { final ModelNode domainOp = new ModelNode(); domainOp.get(OP).set(READ_RESOURCE_OPERATION); domainOp.get(O...
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 abstract String getHostConfigFile(); static JBossAsManagedConfiguration createConfiguration(final String domainXmlName, final String hostXmlName, final String testConfiguration) { final File output = new File("target" + File.separator + "domains" + File.separator + testConfiguration); ...
protected abstract String getHostConfigFile(); static JBossAsManagedConfiguration createConfiguration(final String domainXmlName, final String hostXmlName, final String testConfiguration) { final File output = new File("target" + File.separator + "domains" + File.separator + testConfiguration); ...
StartException startFailedCannotResolveInitialCapability(@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 ind...
StartException startFailedCannotResolveInitialCapability(@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 ind...
public static Archive<?> deploy() throws Exception { EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, ARCHIVE_NAME + ".ear"); // add required jars as manifest dependencies ear.addAsManifestResource(new StringAsset("Dependencies: org.hibernate.envers export,org.hibernate\n"...
public static Archive<?> deploy() throws Exception { EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, ARCHIVE_NAME + ".ear"); // add required jars as manifest dependencies ear.addAsManifestResource(new StringAsset("Dependencies: org.hibernate\n"), "MANIFEST.MF"); ...
private void mergeBindingGroups(List<ModelNode> updates, Map<String, ModelNode> groups, final String groupName, ModelNode group, Set<String> processed) { addSocketBindings(updates, group, groupName, group.get(DEFAULT_INTERFACE)); if (group.has(INCLUDES) && group.get(INCLUDES).isDefined()) { ...
private void mergeBindingGroups(List<ModelNode> updates, Map<String, ModelNode> groups, final String groupName, ModelNode group, Set<String> processed) { addSocketBindings(updates, group, groupName, group.get(DEFAULT_INTERFACE)); if (group.has(INCLUDES) && group.get(INCLUDES).isDefined()) { ...
public void reconnectServer(final String serverName, final ModelNode domainModel, final byte[] authKey, final boolean running, final boolean stopping) { if(shutdown || connectionFinished) { throw HostControllerMessages.MESSAGES.hostAlreadyShutdown(); } final ManagedServer existin...
public void reconnectServer(final String serverName, final ModelNode domainModel, final byte[] authKey, final boolean running, final boolean stopping) { if(shutdown || connectionFinished) { throw HostControllerMessages.MESSAGES.hostAlreadyShutdown(); } final ManagedServer existin...
public void execute(RuntimeTaskContext context) throws OperationFailedException { updateContext.addDeploymentProcessor(Phase.DEPENDENCIES, Phase.DEPENDENCIES_MODULE, new SecurityDependencyProcessor()); log.info("Activating Security Subs...
public void execute(RuntimeTaskContext context) throws OperationFailedException { updateContext.addDeploymentProcessor(Phase.DEPENDENCIES, Phase.DEPENDENCIES_MODULE, new SecurityDependencyProcessor()); log.info("Activating Security Subs...
interface InjectionHandle { /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it an...
interface InjectionHandle { /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it an...
public void inject(T value) throws InjectionException { injectable.inject(new ValueManagedObject(new ImmediateValue<Object>(value))); }
public void inject(T value) throws InjectionException { injectable.inject(new ValueManagedReferenceFactory(new ImmediateValue<Object>(value))); }
public synchronized <T> ClassReflectionIndex<T> getClassIndex(Class<T> clazz) { ClassReflectionIndex<T> index = (ClassReflectionIndex<T>) classes.get(clazz); if (index == null) { classes.put(clazz, index = new ClassReflectionIndex<T>(clazz)); } return index; }
public synchronized <T> ClassReflectionIndex<T> getClassIndex(Class<T> clazz) { ClassReflectionIndex<T> index = (ClassReflectionIndex<T>) classes.get(clazz); if (index == null) { classes.put(clazz, index = new ClassReflectionIndex<T>(clazz, this)); } return index; }
public Object resolveEjb(InjectionPoint injectionPoint) { //TODO: some of this stuff should be cached EJB ejb = injectionPoint.getAnnotated().getAnnotation(EJB.class); if(ejb == null) { throw new RuntimeException("@Ejb annotation not found on " + injectionPoint.getMember()); ...
public Object resolveEjb(InjectionPoint injectionPoint) { //TODO: some of this stuff should be cached EJB ejb = injectionPoint.getAnnotated().getAnnotation(EJB.class); if(ejb == null) { throw new RuntimeException("@Ejb annotation not found on " + injectionPoint.getMember()); ...
protected ClientHttpRequestFactory createRequestFactory() { SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); factory.setStreaming(true); return factory; }
protected ClientHttpRequestFactory createRequestFactory() { SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); factory.setBufferRequestBody(false); return factory; }
Decomposition decompose(RealMatrix matrix); /* * Created on Nov 19, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package org.apache.commons.math.linear; /** * @author Administrator * * To change the template for this generated typ...
Decomposition decompose(RealMatrix matrix); /* * Created on Nov 19, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package org.apache.commons.math.linear; /** * @author Administrator * * To change the template for this generated typ...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ThreadFactoryService service = new ThreadFactoryService(); service.setNamePattern(threadNamePattern); service.setPriority(priority); service.se...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ThreadFactoryService service = new ThreadFactoryService(); service.setNamePattern(threadNamePattern); service.setPriority(priority); service.se...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> service = updateContext.getServiceContainer().getService(Services.threadFactoryName(name)); if (service == null) { handler.han...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> service = updateContext.getServiceContainer().getService(ThreadsServices.threadFactoryName(name)); if (service == null) { hand...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> service = updateContext.getServiceContainer().getService(Services.threadFactoryName(name)); if (service == null) { handler.han...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> service = updateContext.getServiceContainer().getService(ThreadsServices.threadFactoryName(name)); if (service == null) { hand...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> controller = updateContext.getServiceContainer(). getService(Services.threadFactoryName(name)); if (controller == null) { ...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> controller = updateContext.getServiceContainer(). getService(ThreadsServices.threadFactoryName(name)); if (controller == n...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> service = updateContext.getServiceContainer().getService(Services.threadFactoryName(name)); if (service == null) { handler.han...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ServiceController<?> service = updateContext.getServiceContainer().getService(ThreadsServices.threadFactoryName(name)); if (service == null) { hand...
public void setRepositoryAnnotationType(Class<? extends Annotation> repositoryAnnotationType) { Assert.notNull(repositoryAnnotationType, "'requiredAnnotationType' must not be null"); this.repositoryAnnotationType = repositoryAnnotationType; }
public void setRepositoryAnnotationType(Class<? extends Annotation> repositoryAnnotationType) { Assert.notNull(repositoryAnnotationType, "'repositoryAnnotationType' must not be null"); this.repositoryAnnotationType = repositoryAnnotationType; }
public File getDeploymentRoot(byte[] hash) { File file = primary.getDeploymentRoot(hash); return file != null ? file : secondary.getDeploymentRoot(hash); }
public File getDeploymentRoot(byte[] hash) { File file = primary.getDeploymentRoot(hash); return (file != null && file.exists()) ? file : secondary.getDeploymentRoot(hash); }
public LoadTimeWeaver loadTimeWeaver() { LoadTimeWeaver loadTimeWeaver = null; if (ltwConfigurer != null) { // the user has provided a custom LTW instance loadTimeWeaver = ltwConfigurer.getLoadTimeWeaver(); } if (loadTimeWeaver == null) { // no custom LTW provided -> fall back to the default load...
public LoadTimeWeaver loadTimeWeaver() { LoadTimeWeaver loadTimeWeaver = null; if (ltwConfigurer != null) { // the user has provided a custom LTW instance loadTimeWeaver = ltwConfigurer.getLoadTimeWeaver(); } if (loadTimeWeaver == null) { // no custom LTW provided -> fall back to the default load...
public double transform(Object o) throws MathException{ if (o == null) { throw new MathException("Conversion Exception in Transformation, Object is null"); } if (o instanceof Number) { return ((Number)o).doubleValue(); } try { ...
public double transform(Object o) throws MathException{ if (o == null) { throw new MathException("Conversion Exception in Transformation, Object is null"); } if (o instanceof Number) { return ((Number)o).doubleValue(); } try { ...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ServiceController<?> service = context.getServiceRegistry().getService(JMSSubsystemElement.JMS_CF_BASE.append(cfName)); if(service == null) { handler.handleSuccess(null, p...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ServiceController<?> service = context.getServiceRegistry().getService(JMSServices.JMS_CF_BASE.append(cfName)); if(service == null) { handler.handleSuccess(null, param); ...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ServiceController<?> service = context.getServiceRegistry().getService(JMSSubsystemElement.JMS_QUEUE_BASE.append(queueName)); if(service == null) { handler.handleSuccess(n...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ServiceController<?> service = context.getServiceRegistry().getService(JMSServices.JMS_QUEUE_BASE.append(queueName)); if(service == null) { handler.handleSuccess(null, par...
public static void addService(final ServiceTarget target) { final JMSService service = new JMSService(); target.addService(JMSSubsystemElement.JMS_MANAGER, service) .addDependency(MessagingSubsystemElement.JBOSS_MESSAGING, HornetQServer.class, service.getHornetQServer()) .add...
public static void addService(final ServiceTarget target) { final JMSService service = new JMSService(); target.addService(JMSServices.JMS_MANAGER, service) .addDependency(MessagingSubsystemElement.JBOSS_MESSAGING, HornetQServer.class, service.getHornetQServer()) .addDependen...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ServiceController<?> service = context.getServiceRegistry().getService(JMSSubsystemElement.JMS_TOPIC_BASE.append(topicName)); if(service == null) { handler.handleSuccess(n...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) { final ServiceController<?> service = context.getServiceRegistry().getService(JMSServices.JMS_TOPIC_BASE.append(topicName)); if(service == null) { handler.handleSuccess(null, par...
public static String RemoveQuotes(String string) { if (string.endsWith("\"") && string.startsWith("\"")) return string.substring(1, string.length() -1); return null; }
public static String RemoveQuotes(String string) { if (string.endsWith("\"") && string.startsWith("\"")) return string.substring(1, string.length() -1); return string; }
private static List<CacheParameterDetail> initializeAllParameterDetails(Method method) { List<CacheParameterDetail> result = new ArrayList<CacheParameterDetail>(); for (int i = 0; i < method.getParameterCount(); i++) { CacheParameterDetail detail = new CacheParameterDetail(method, i); result.add(detail); }...
private static List<CacheParameterDetail> initializeAllParameterDetails(Method method) { List<CacheParameterDetail> result = new ArrayList<CacheParameterDetail>(); for (int i = 0; i < method.getParameterTypes().length; i++) { CacheParameterDetail detail = new CacheParameterDetail(method, i); result.add(detai...
protected ConvexHullGenerator2D createConvexHullGenerator(boolean includeCollinearPoints) { return new GrahamScan(includeCollinearPoints); }
protected ConvexHullGenerator2D createConvexHullGenerator(boolean includeCollinearPoints) { return new MonotoneChain(includeCollinearPoints); }
add.get(OP_ADDR).set(new ModelNode().setEmptyList()).add(INTERFACE, "public"); add.get(OP).set(ADD); add.get(CRITERIA).get("inet-address").set("127.0.0.1"); nodes.add(add); }
add.get(OP_ADDR).set(new ModelNode().setEmptyList()).add(INTERFACE, "public"); add.get(OP).set(ADD); add.get("inet-address").set("127.0.0.1"); nodes.add(add); }
public BigReal divide(BigReal a) throws ArithmeticException { return new BigReal(d.divide(a.d)); }
public BigReal divide(BigReal a) throws ArithmeticException { return new BigReal(d.divide(a.d, scale, roundingMode)); }
private Properties getUsersProperties() throws IOException { /* * This method does attempt to minimise the effect of race conditions, however this is not overly critical * as if you have users attempting to authenticate at the exact point their details are added to the file there ...
private Properties getUsersProperties() throws IOException { /* * This method does attempt to minimise the effect of race conditions, however this is not overly critical * as if you have users attempting to authenticate at the exact point their details are added to the file there ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ModelNode op = operation.require(VALUE); PathAddress addr = PathAddress.pathAddress(op.get(OP_ADDR)); if (slave) { op = op.clone(); //Get rid of the initial host eleme...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ModelNode op = operation.require(VALUE); PathAddress addr = PathAddress.pathAddress(op.get(OP_ADDR)); if (slave) { op = op.clone(); //Get rid of the initial host eleme...
private Object getHeaderValue(String headerName) { if (this.headers.get(headerName) != null) { return this.headers.get(headerName); } else if (this.originalHeaders.get(headerName) != null) { return this.originalHeaders.get(headerName); } return null; }
private Object getHeaderValue(String headerName) { if (this.headers.get(headerName) != null) { return this.headers.get(headerName); } else if ((this.originalHeaders != null) && (this.originalHeaders.get(headerName) != null)) { return this.originalHeaders.get(headerName); } return null; }
/** {@inheritDoc} */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (th...
/** {@inheritDoc} */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (th...
public void startClientConnetion() throws IOException, URISyntaxException { ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration(); configuration.setEndpointName(ENDPOINT_NAME); configuration.setUriScheme(URI_SCHEME); configuration.setUri(new UR...
public void startClientConnetion() throws IOException, URISyntaxException { ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration(); configuration.setEndpointName(ENDPOINT_NAME); configuration.setUriScheme(URI_SCHEME); configuration.setUri(new UR...
public void startChannels() throws IOException, URISyntaxException { ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration(); configuration.setEndpointName(ENDPOINT_NAME); configuration.setUriScheme(URI_SCHEME); configuration.setUri(new URI("" + ...
public void startChannels() throws IOException, URISyntaxException { ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration(); configuration.setEndpointName(ENDPOINT_NAME); configuration.setUriScheme(URI_SCHEME); configuration.setUri(new URI("" + ...
public synchronized void start(StartContext context) throws StartException { ProtocolChannelClient client; try { ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration(); configuration.setEndpoint(endpointInjector.getValue()); ...
public synchronized void start(StartContext context) throws StartException { ProtocolChannelClient client; try { ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration(); configuration.setEndpoint(endpointInjector.getValue()); ...
public void activateProcessors(final DeploymentProcessorTarget updateContext) { updateContext.addDeploymentProcessor(DataSourcesExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_DSXML_DEPLOYMENT, new DsXmlDeploymentParsingProcessor()); updateContext.addDeploymentProcessor(DataSourcesExtension.SUBSY...
public void activateProcessors(final DeploymentProcessorTarget updateContext) { updateContext.addDeploymentProcessor(DataSourcesExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_DSXML_DEPLOYMENT, new DsXmlDeploymentParsingProcessor()); updateContext.addDeploymentProcessor(DataSourcesExtension.SUBSY...
public void undeploy(DeploymentUnit context) { context.removeAttachment(Attachments.SERVICE_MODULE_LOADER); } }); // Activate core processors for jar deployment DeployerChainAddHandler.addDeploymentProcessor(SERVER_NAME, Phase.STRU...
public void undeploy(DeploymentUnit context) { context.removeAttachment(Attachments.SERVICE_MODULE_LOADER); } }); // Activate core processors for jar deployment DeployerChainAddHandler.addDeploymentProcessor(SERVER_NAME, Phase.STRU...
protected boolean handleDirectoryStart(File directory, int depth, Collection results) { return false; } } }
protected boolean handleDirectory(File directory, int depth, Collection results) { return false; } } }
public ZipExtraField[] getExtraFields(boolean includeUnparseable) { if (extraFields == null) { return !includeUnparseable || unparseableExtra == null ? new ZipExtraField[0] : new ZipExtraField[] { unparseableExtra }; } List<ZipExtraField> result = ...
public ZipExtraField[] getExtraFields(boolean includeUnparseable) { if (extraFields == null) { return !includeUnparseable || unparseableExtra == null ? new ZipExtraField[0] : new ZipExtraField[] { unparseableExtra }; } List<ZipExtraField> result = ...
public Enumeration<ZipArchiveEntry> getEntriesInPhysicalOrder() { ZipArchiveEntry[] allEntries = entries.toArray(new ZipArchiveEntry[0]); Arrays.sort(allEntries, OFFSET_COMPARATOR); return Collections.enumeration(Arrays.asList(allEntries)); }
public Enumeration<ZipArchiveEntry> getEntriesInPhysicalOrder() { ZipArchiveEntry[] allEntries = entries.toArray(new ZipArchiveEntry[entries.size()]); Arrays.sort(allEntries, OFFSET_COMPARATOR); return Collections.enumeration(Arrays.asList(allEntries)); }
public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) { ApplicationClientConfigurationPersister persister = new ApplicationClientConfigurationPersister(earPath, deploymentName, options.hostUr...
public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) { ApplicationClientConfigurationPersister persister = new ApplicationClientConfigurationPersister(earPath, deploymentName, options.hostUr...
public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) { QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server"); StandaloneXml parser = n...
public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) { QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server"); StandaloneXml parser = n...
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { final Reference reference = Reference.class.cast(obj); RefAddr refAddr = reference.get(0); final ServiceName managedBeanName = (ServiceName)refAddr.getContent(); fi...
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { final Reference reference = Reference.class.cast(obj); RefAddr refAddr = reference.get(0); final ServiceName managedBeanName = (ServiceName)refAddr.getContent(); fi...
protected String getBaseUrl() { final String address = injectedSocketBinding.getValue().getAddress().getHostAddress(); final int port = injectedSocketBinding.getValue().getAbsolutePort(); if (injectedSocketBinding.getValue().getAddress() instanceof Inet4Address) { return "http:/...
protected String getBaseUrl() { final String address = injectedSocketBinding.getValue().getAddress().getHostAddress(); final int port = injectedSocketBinding.getValue().getPort(); if (injectedSocketBinding.getValue().getAddress() instanceof Inet4Address) { return "http://" + add...
public final void handleMessage(Message<?> message) { if (!this.running) { if (logger.isTraceEnabled()) { logger.trace("Message broker is not running. Ignoring message id=" + message.getHeaders().getId()); } return; } handleMessageInternal(message); }
public final void handleMessage(Message<?> message) { if (!this.running) { if (logger.isTraceEnabled()) { logger.trace("Message broker is not running. Ignoring message=" + message); } return; } handleMessageInternal(message); }
public List<Message<byte[]>> decode(ByteBuffer newBuffer) { this.chunks.add(newBuffer); checkBufferLimits(); if (getExpectedContentLength() != null && getBufferSize() < this.expectedContentLength) { return Collections.<Message<byte[]>>emptyList(); } ByteBuffer bufferToDecode = assembleChunksAndReset()...
public List<Message<byte[]>> decode(ByteBuffer newBuffer) { this.chunks.add(newBuffer); checkBufferLimits(); if (getExpectedContentLength() != null && getBufferSize() < this.expectedContentLength) { return Collections.<Message<byte[]>>emptyList(); } ByteBuffer bufferToDecode = assembleChunksAndReset()...
public final boolean send(Message<?> message, long timeout) { Assert.notNull(message, "Message must not be null"); if (logger.isTraceEnabled()) { logger.trace("[" + this.beanName + "] sending message id=" + message.getHeaders().getId()); } message = this.interceptorChain.preSend(message, this); if (mes...
public final boolean send(Message<?> message, long timeout) { Assert.notNull(message, "Message must not be null"); if (logger.isTraceEnabled()) { logger.trace("[" + this.beanName + "] sending message=" + message); } message = this.interceptorChain.preSend(message, this); if (message == null) { retur...
public void handleMessageFromClient() { TextMessage textMessage = StompTextMessageBuilder.create(StompCommand.CONNECT).headers( "login:guest", "passcode:guest", "accept-version:1.1,1.0", "heart-beat:10000,10000").build(); this.protocolHandler.afterSessionStarted(this.session, this.channel); this.protocolHa...
public void handleMessageFromClient() { TextMessage textMessage = StompTextMessageBuilder.create(StompCommand.CONNECT).headers( "login:guest", "passcode:guest", "accept-version:1.1,1.0", "heart-beat:10000,10000").build(); this.protocolHandler.afterSessionStarted(this.session, this.channel); this.protocolHa...
public ServiceRegistry getServiceRegistry() { return new DelegatingServiceRegistry(context.getController().getServiceContainer()); } }; serverController = new ServerControllerImpl(new ServerModel(configuration.getName(), configuration.getPortOffset()), context.get...
public ServiceRegistry getServiceRegistry() { return new DelegatingServiceRegistry(context.getController().getServiceContainer()); } }; serverController = new ServerControllerImpl(new ServerModel(configuration.getName(), configuration.getPortOffset()), context.get...
private void processMethod(final EEModuleDescription eeModuleDescription, final EJBResourceWrapper annotation, final MethodInfo methodInfo) { final String methodName = methodInfo.name(); if (!methodName.startsWith("set") || methodInfo.args().length != 1) { throw new IllegalArgumentExcept...
private void processMethod(final EEModuleDescription eeModuleDescription, final EJBResourceWrapper annotation, final MethodInfo methodInfo) { final String methodName = methodInfo.name(); if (!methodName.startsWith("set") || methodInfo.args().length != 1) { throw new IllegalArgumentExcept...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(BasicDeployment16TestCase.class, "basic16.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.CURRENT.getUriString(), new ResourceAdapterSubsystemParser());...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(BasicDeployment16TestCase.class, "basic16.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_0.getUriString(), new ResourceAdapterSubsys...
protected void setModel(String modelName) throws Exception { setBaseAddress(modelName + ".rar"); String xml = readXmlResource(System.getProperty("jbossas.ts.integ.dir") + "/basic/src/test/resources/jca/metrics/ra/" + modelName + ".xml"); List<ModelNode> operations = xmlToMode...
protected void setModel(String modelName) throws Exception { setBaseAddress(modelName + ".rar"); String xml = readXmlResource(System.getProperty("jbossas.ts.integ.dir") + "/basic/src/test/resources/jca/metrics/ra/" + modelName + ".xml"); List<ModelNode> operations = xmlToMode...
private void setup() throws Exception { String xml = FileUtils.readFile(AfterResourceCreationDeploymentTestCase.class, "basic-after.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.CURRENT.getUriString(), new ResourceAdapterSubsystemParser()); executeOperation(operatio...
private void setup() throws Exception { String xml = FileUtils.readFile(AfterResourceCreationDeploymentTestCase.class, "basic-after.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_0.getUriString(), new ResourceAdapterSubsystemParser()); executeOpera...
public void doSetup(final ManagementClient managementClient) throws Exception{ String xml = FileUtils.readFile(EarPackagedDeploymentTestCase.class, "ear_packaged.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.CURRENT.getUriString(), new ResourceAdapterSub...
public void doSetup(final ManagementClient managementClient) throws Exception{ String xml = FileUtils.readFile(EarPackagedDeploymentTestCase.class, "ear_packaged.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_0.getUriString(), new Resou...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(MultipleActivationTestCase.class, "simple.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.CURRENT.getUriString(), new ResourceAdapterSubsystemPa...
public void doSetup(final ManagementClient managementClient) throws Exception { String xml = FileUtils.readFile(MultipleActivationTestCase.class, "simple.xml"); List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_0.getUriString(), new ResourceAdapt...