buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void testShutdown() throws Exception { Session session = null; MessageProducer sender = null; MessageConsumer receiver = null; Connection connection = null; try { deployer.deploy("mdb"); Queue queue = new HornetQQueue(QUEUE_SEND); ...
public void testShutdown() throws Exception { Session session = null; MessageProducer sender = null; MessageConsumer receiver = null; Connection connection = null; try { deployer.deploy("mdb"); Queue queue = new HornetQQueue(QUEUE_SEND); ...
protected void makeCall(String user, String pass, int expectedStatusCode) throws Exception { DefaultHttpClient httpclient = new DefaultHttpClient(); try { String req = url.toExternalForm() + "secured/"; HttpGet httpget = new HttpGet(req); HttpResponse response = ...
protected void makeCall(String user, String pass, int expectedStatusCode) throws Exception { DefaultHttpClient httpclient = new DefaultHttpClient(); try { String req = url.toExternalForm() + "secured/"; HttpGet httpget = new HttpGet(req); HttpResponse response = ...
public void testInterceptorPostConstructWithProceed() throws NamingException { InitialContext ctx = new InitialContext(); InterceptedWithProceedSLSB bean = (InterceptedWithProceedSLSB)ctx.lookup("java:module/" + InterceptedWithProceedSLSB.class.getSimpleName()); bean.doStuff(); Asser...
public void testInterceptorPostConstructWithProceed() throws NamingException { InitialContext ctx = new InitialContext(); InterceptedWithProceedSLSB bean = (InterceptedWithProceedSLSB)ctx.lookup("java:module/" + InterceptedWithProceedSLSB.class.getSimpleName()); bean.doStuff(); Asser...
private static String getXmlProlog(final InputStream is, final String guessedEnc) throws IOException { String encoding = null; if (guessedEnc != null) { final byte[] bytes = new byte[BUFFER_SIZE]; is.mark(BUFFER_SIZE); int offset = 0; int m...
private static String getXmlProlog(final InputStream is, final String guessedEnc) throws IOException { String encoding = null; if (guessedEnc != null) { final byte[] bytes = new byte[BUFFER_SIZE]; is.mark(BUFFER_SIZE); int offset = 0; int m...
private static String getXmlProlog(final BufferedInputStream is, final String guessedEnc) throws IOException { String encoding = null; if (guessedEnc != null) { final byte[] bytes = new byte[BUFFER_SIZE]; is.mark(BUFFER_SIZE); int offset = 0; ...
private static String getXmlProlog(final BufferedInputStream is, final String guessedEnc) throws IOException { String encoding = null; if (guessedEnc != null) { final byte[] bytes = new byte[BUFFER_SIZE]; is.mark(BUFFER_SIZE); int offset = 0; ...
private Map<String, Collection<CacheOperationContext>> createOperationContext(Collection<CacheOperation> cacheOp, Method method, Object[] args, Object target, Class<?> targetClass) { Map<String, Collection<CacheOperationContext>> map = new LinkedHashMap<String, Collection<CacheOperationContext>>(3); Collection...
private Map<String, Collection<CacheOperationContext>> createOperationContext(Collection<CacheOperation> cacheOp, Method method, Object[] args, Object target, Class<?> targetClass) { Map<String, Collection<CacheOperationContext>> map = new LinkedHashMap<String, Collection<CacheOperationContext>>(3); Collection...
public interface AMBean { /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 interface AMBean { /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 <P> void deploy(final String deploymentName, final String runtimeName, final byte[] deploymentHash, final BatchBuilder batchBuilder, final ServiceContainer serviceContainer, final UpdateResultHandler<?, P> resultHandler, final P param) { try { ServiceName deploymen...
public <P> void deploy(final String deploymentName, final String runtimeName, final byte[] deploymentHash, final BatchBuilder batchBuilder, final ServiceContainer serviceContainer, final UpdateResultHandler<?, P> resultHandler, final P param) { try { ServiceName deploymen...
protected void parseStatefulBean(final XMLExtendedStreamReader reader, final List<ModelNode> operations, final ModelNode ejb3SubsystemAddOperation) throws XMLStreamException { final int count = reader.getAttributeCount(); final EnumSet<EJB3SubsystemXMLAttribute> missingRequiredAttributes = EnumSet.o...
protected void parseStatefulBean(final XMLExtendedStreamReader reader, final List<ModelNode> operations, final ModelNode ejb3SubsystemAddOperation) throws XMLStreamException { final int count = reader.getAttributeCount(); final EnumSet<EJB3SubsystemXMLAttribute> missingRequiredAttributes = EnumSet.o...
public boolean isPostConstructCalled() { return postConstructCalled; } }
public static boolean isPostConstructCalled() { return postConstructCalled; } }
public void removeSystemProperties() { final ModelNode removeDestinationOp = new ModelNode(); removeDestinationOp.get(ClientConstants.OP).set("remove"); removeDestinationOp.get(ClientConstants.OP_ADDR).add("system-property", "destination"); final ModelNode removeResourceAdapterOp = n...
public void removeSystemProperties() { final ModelNode removeDestinationOp = new ModelNode(); removeDestinationOp.get(ClientConstants.OP).set("remove"); removeDestinationOp.get(ClientConstants.OP_ADDR).add("system-property", "destination"); final ModelNode removeResourceAdapterOp = n...
public void persistSessions(String deploymentName, Map<String, PersistentSession> sessionData) { try { final Marshaller marshaller = createMarshaller(); try { final Map<String, SessionEntry> serializedData = new HashMap<String, SessionEntry>(); for (Ma...
public void persistSessions(String deploymentName, Map<String, PersistentSession> sessionData) { try { final Marshaller marshaller = createMarshaller(); try { final Map<String, SessionEntry> serializedData = new HashMap<String, SessionEntry>(); for (Ma...
public WeldJBossAllConfiguration(Boolean requireBeanDescriptor, Boolean nonPortableMode) { this.requireBeanDescriptor = requireBeanDescriptor; this.nonPortableMode = nonPortableMode; }
private final Boolean nonPortableMode; WeldJBossAllConfiguration(Boolean requireBeanDescriptor, Boolean nonPortableMode) { this.requireBeanDescriptor = requireBeanDescriptor; this.nonPortableMode = nonPortableMode; }
static ExtensionContext initializeDomainLevel(final ModelNodeRegistration root, final ExtensibleConfigurationPersister configurationPersister, final DeploymentRepository deploymentRepo, final FileRepository fileRepository) { /** * */ package org.jboss.as.domain.controller; import static org.jboss.as.controller.desc...
static ExtensionContext initializeDomainLevel(final ModelNodeRegistration root, final ExtensibleConfigurationPersister configurationPersister, final DeploymentRepository deploymentRepo, final FileRepository fileRepository) { /** * */ package org.jboss.as.domain.controller; import static org.jboss.as.controller.desc...
public List<ModelNode> load() throws ConfigurationPersistenceException { return null; } }, null); }
public List<ModelNode> load() throws ConfigurationPersistenceException { return null; } }, (DescriptionProvider) null); }
private boolean isMultipart(MultiValueMap<String, ?> map, MediaType contentType) { if (contentType != null) { return MediaType.MULTIPART_FORM_DATA.equals(contentType); } for (String name : map.keySet()) { for (Object value : map.get(name)) { if (value != null && !(value instanceof String)) { retur...
private boolean isMultipart(MultiValueMap<String, ?> map, MediaType contentType) { if (contentType != null) { return MediaType.MULTIPART_FORM_DATA.includes(contentType); } for (String name : map.keySet()) { for (Object value : map.get(name)) { if (value != null && !(value instanceof String)) { ret...
public void setup() throws Exception { final ScheduledExecutorService executorService = Executors.newScheduledThreadPool(10); communicationService = new ManagementCommunicationService(); communicationService.getThreadFactoryInjector().inject(Executors.defaultThreadFactory()); commun...
public void setup() throws Exception { final ScheduledExecutorService executorService = Executors.newScheduledThreadPool(10); communicationService = new ManagementCommunicationService(); communicationService.getThreadFactoryInjector().inject(Executors.defaultThreadFactory()); commun...
private void populateServerGroupResults(final OperationContext context, final ModelNode result) { final Set<String> groupNames = new TreeSet<String>(); final Map<String, Set<HostServer>> groupToServerMap = new HashMap<String, Set<HostServer>>(); for (Map.Entry<ServerIdentity, ModelNode> entr...
private void populateServerGroupResults(final OperationContext context, final ModelNode result) { final Set<String> groupNames = new TreeSet<String>(); final Map<String, Set<HostServer>> groupToServerMap = new HashMap<String, Set<HostServer>>(); for (Map.Entry<ServerIdentity, ModelNode> entr...
public void testTransformedSet_decorateTransform() { final Set<Object> originalSet = new TreeSet<Object>(); final Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"}; Collections.addAll(originalSet, els); final Set<?> set = TransformedSortedSet.transformedSet(originalSet,...
public void testTransformedSet_decorateTransform() { final Set<Object> originalSet = new TreeSet<Object>(); final Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"}; Collections.addAll(originalSet, els); final Set<?> set = TransformedSet.transformedSet(originalSet, Trans...
public void start(StartContext context) throws StartException { String pathname = "file://RaActivator" + deploymentName; try { ResourceAdapterActivator activator = new ResourceAdapterActivator(context.getChildTarget(), new URL(pathname), deploymentName, new File(pat...
public void start(StartContext context) throws StartException { String pathname = "file://RaActivator" + deploymentName; try { ResourceAdapterActivator activator = new ResourceAdapterActivator(context.getChildTarget(), new URL(pathname), deploymentName, new File(pat...
protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue) throws OperationFailedException { if (newValue.equals(currentValue)) { //Set an attachment to avoid propagation to the servers, we don't want t...
protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue) throws OperationFailedException { if (newValue.equals(currentValue)) { //Set an attachment to avoid propagation to the servers, we don't want t...
protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue) throws OperationFailedException { if (newValue.equals(currentValue)) { //Set an attachment to avoid propagation to the servers, we don't want t...
protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue) throws OperationFailedException { if (newValue.equals(currentValue)) { //Set an attachment to avoid propagation to the servers, we don't want t...
package org.jboss.as.testsuite.integration.ws.injection.ejb.as1675; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * Th...
package org.jboss.as.testsuite.integration.ws.injection.ejb.as1675; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * Th...
package org.jboss.as.testsuite.integration.ws.injection.ejb.as1675.shared; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. ...
package org.jboss.as.testsuite.integration.ws.injection.ejb.as1675.shared; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. ...
public void resolve(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Set<ViewDescription> componentsForViewName = getViews(phaseContext); //we cannot be sure that this injection...
public void resolve(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Set<ViewDescription> componentsForViewName = getViews(phaseContext); //we cannot be sure that this injection...
protected void execute(DeploymentProcessorTarget processorTarget) { //DUP's that are used even for app client deployments processorTarget.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_EJB_DEPLOYMENT, new EjbJarParsingDeploymentUnitProcessor()); processorTar...
protected void execute(DeploymentProcessorTarget processorTarget) { //DUP's that are used even for app client deployments processorTarget.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_EJB_DEPLOYMENT, new EjbJarParsingDeploymentUnitProcessor()); processorTar...
public String toString() { return "StompMessage [headers=" + this.headers + ", payload=" + new String(this.payload) + "]"; }
public String toString() { return "StompMessage [" + command + ", headers=" + this.headers + ", payload=" + new String(this.payload) + "]"; }
public void asyncCancel() { futureResult.asyncCancel(false); } }
public void asyncCancel() { futureResult.asyncCancel(true); } }
public void testSkipBig() throws Throwable { InputStream ins = new ByteArrayInputStream(StringUtils.getBytesIso8859_1(ENCODED_B64)); Base64InputStream b64stream = new Base64InputStream(ins); assertEquals(6, b64stream.skip(1024)); // End of stream reached assertEquals(-1, b64s...
public void testSkipBig() throws Throwable { InputStream ins = new ByteArrayInputStream(StringUtils.getBytesIso8859_1(ENCODED_B64)); Base64InputStream b64stream = new Base64InputStream(ins); assertEquals(6, b64stream.skip(Integer.MAX_VALUE)); // End of stream reached assertEq...
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { // Require no content ParseUtils.requireNoContent(reader); list.add(createAddSubsystemOperation()); while (reader.hasNext() && reader.nextTag() != END_ELEMENT...
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { // Require no content //ParseUtils.requireNoContent(reader); list.add(createAddSubsystemOperation()); while (reader.hasNext() && reader.nextTag() != END_ELEME...
public void testMessageNumber() { Assert.assertEquals(309, LocalizedFormats.values().length); }
public void testMessageNumber() { Assert.assertEquals(310, LocalizedFormats.values().length); }
private Object newValue(Class<?> type, String name) { try { if (type.isArray()) { Class<?> componentType = type.getComponentType(); // TODO - only handles 2-dimensional arrays if (componentType.isArray()) { Object array = Array.newInstance(componentType, 1); Array.set(array, 0, Array.newInst...
private Object newValue(Class<?> type, String name) { try { if (type.isArray()) { Class<?> componentType = type.getComponentType(); // TODO - only handles 2-dimensional arrays if (componentType.isArray()) { Object array = Array.newInstance(componentType, 1); Array.set(array, 0, Array.newInst...
public static double round(double x, int scale, int roundingMethod) { try { return (new BigDecimal (new Double(x).toString()) .setScale(scale, roundingMethod)) .doubleValue(); } catch (NumberFormatException ex) { if (Do...
public static double round(double x, int scale, int roundingMethod) { try { return (new BigDecimal (Double.toString(x)) .setScale(scale, roundingMethod)) .doubleValue(); } catch (NumberFormatException ex) { if (Double.i...
public Template getTemplate(String name) { Template template = (Template) this.templates.get(name); if (template == null) { throw new ResourceNotFoundException("No template registered for name [" + name + "]"); } return template; } }
public Template getTemplate(String name) throws ResourceNotFoundException { Template template = (Template) this.templates.get(name); if (template == null) { throw new ResourceNotFoundException("No template registered for name [" + name + "]"); } return template; } }
public NestedServletException(String msg, Throwable cause) { super(msg, cause); // Set JDK 1.4 exception chain cause if not done by ServletException class already // (this differs between Servlet API versions). if (getCause() == null) { initCause(cause); } }
public NestedServletException(String msg, Throwable cause) { super(msg, cause); // Set JDK 1.4 exception chain cause if not done by ServletException class already // (this differs between Servlet API versions). if (getCause() == null && cause!=null) { initCause(cause); } }
protected File getFile(String path) throws IOException { URL url = getClass().getResource(path); if (url == null) { throw new java.io.FileNotFoundException(path + " doesn't exist"); } try { return new File(new URI(url.toString())); } catch (java.net.UR...
protected File getFile(String path) throws IOException { URL url = getClass().getResource(path); if (url == null) { throw new java.io.FileNotFoundException(path + " doesn't exist"); } try { return new File(new URI(url.toString())); } catch (java.net.UR...
public static void setupDomain() throws Exception { testSupport = DomainTestSuite.createSupport(ManagementAccessTestCase.class.getSimpleName()); domainMasterLifecycleUtil = testSupport.getDomainMasterLifecycleUtil(); domainSlaveLifecycleUtil = testSupport.getDomainSlaveLifecycleUtil(); }...
public static void setupDomain() throws Exception { testSupport = DomainTestSuite.createSupport(DatasourceTestCase.class.getSimpleName()); domainMasterLifecycleUtil = testSupport.getDomainMasterLifecycleUtil(); domainSlaveLifecycleUtil = testSupport.getDomainSlaveLifecycleUtil(); }
public static void setupDomain() throws Exception { testSupport = DomainTestSuite.createSupport(CoreResourceManagementTestCase.class.getSimpleName()); }
public static void setupDomain() throws Exception { testSupport = DomainTestSuite.createSupport(DirectoryGroupingByTypeTestCase.class.getSimpleName()); }
private BufferPoolResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanDescriptions.getResolver(BUFFER_POOL)); }
private BufferPoolResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanUtil.getResolver(BUFFER_POOL)); }
private ClassLoadingResourceDefinition() { super(PlatformMBeanConstants.CLASS_LOADING_PATH, PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.CLASS_LOADING)); }
private ClassLoadingResourceDefinition() { super(PlatformMBeanConstants.CLASS_LOADING_PATH, PlatformMBeanUtil.getResolver(PlatformMBeanConstants.CLASS_LOADING)); }
private CompilationResourceDefinition() { super(PlatformMBeanConstants.COMPILATION_PATH, PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.COMPILATION)); }
private CompilationResourceDefinition() { super(PlatformMBeanConstants.COMPILATION_PATH, PlatformMBeanUtil.getResolver(PlatformMBeanConstants.COMPILATION)); }
private GarbageCollectorResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.GARBAGE_COLLECTOR)); }
private GarbageCollectorResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanUtil.getResolver(PlatformMBeanConstants.GARBAGE_COLLECTOR)); }
private MemoryManagerResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.MEMORY_MANAGER)); }
private MemoryManagerResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanUtil.getResolver(PlatformMBeanConstants.MEMORY_MANAGER)); }
private MemoryPoolResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.MEMORY_POOL)); }
private MemoryPoolResourceDefinition() { super(PathElement.pathElement(NAME.getName()), PlatformMBeanUtil.getResolver(PlatformMBeanConstants.MEMORY_POOL)); }
private MemoryResourceDefinition() { super(MEMORY_PATH, PlatformMBeanDescriptions.getResolver(MEMORY)); }
private MemoryResourceDefinition() { super(MEMORY_PATH, PlatformMBeanUtil.getResolver(MEMORY)); }
private OperatingSystemResourceDefinition() { super(OPERATING_SYSTEM_PATH, PlatformMBeanDescriptions.getResolver(PlatformMBeanConstants.OPERATING_SYSTEM)); }
private OperatingSystemResourceDefinition() { super(OPERATING_SYSTEM_PATH, PlatformMBeanUtil.getResolver(PlatformMBeanConstants.OPERATING_SYSTEM)); }
private PlatformMBeanResourceDefinition() { super(PlatformMBeanConstants.PLATFORM_MBEAN_PATH, PlatformMBeanDescriptions.getResolver("platform-mbeans")); }
private PlatformMBeanResourceDefinition() { super(PlatformMBeanConstants.PLATFORM_MBEAN_PATH, PlatformMBeanUtil.getResolver("platform-mbeans")); }
public CSVLexer(final CSVFormat format, final ExtendedBufferedReader in) { super(format, in); }
private Token parseEncapsulatedToken(final Token tkn) throws IOException { // save current line number in case needed for IOE final long startLineNumber = getLineNumber(); int c; while (true) { c = in.read(); if (isEscape(c)) { tkn.content.app...
public void setAutodetectMode(int autodetectMode) { if (!constants.getValues(CONSTANT_PREFIX_AUTODETECT).contains(new Integer(autodetectMode))) { throw new IllegalArgumentException("Only values of autodetect constants allowed"); } this.autodetectMode = autodetectMode; }
public void setAutodetectMode(int autodetectMode) { if (!constants.getValues(CONSTANT_PREFIX_AUTODETECT).contains(autodetectMode)) { throw new IllegalArgumentException("Only values of autodetect constants allowed"); } this.autodetectMode = autodetectMode; }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // Invocation on ConnectionProxy interface coming in... if (method.getName().equals("getTargetConnection")) { // Handle getTargetConnection method: return underlying Connection. return this.target; } else if (meth...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // Invocation on ConnectionProxy interface coming in... if (method.getName().equals("getTargetConnection")) { // Handle getTargetConnection method: return underlying Connection. return this.target; } else if (meth...
public static Integer prepareConnectionForTransaction(Connection con, TransactionDefinition definition) throws SQLException { Assert.notNull(con, "No Connection specified"); // Set read-only flag. if (definition != null && definition.isReadOnly()) { try { if (logger.isDebugEnabled()) { logger.de...
public static Integer prepareConnectionForTransaction(Connection con, TransactionDefinition definition) throws SQLException { Assert.notNull(con, "No Connection specified"); // Set read-only flag. if (definition != null && definition.isReadOnly()) { try { if (logger.isDebugEnabled()) { logger.de...
protected BeanDefinition parseContainer(Element listenerEle, Element containerEle, ParserContext parserContext) { RootBeanDefinition containerDef = new RootBeanDefinition(); containerDef.setSource(parserContext.extractSource(containerEle)); containerDef.setBeanClassName("org.springframework.jms.listener.endpoint...
protected BeanDefinition parseContainer(Element listenerEle, Element containerEle, ParserContext parserContext) { RootBeanDefinition containerDef = new RootBeanDefinition(); containerDef.setSource(parserContext.extractSource(containerEle)); containerDef.setBeanClassName("org.springframework.jms.listener.endpoint...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (method.getName().equals("equals")) { // Only consider equal when proxies are identical. return (proxy == args[0] ? Boolean.TRUE : Boolean.FALSE); } else if (method.getName().equals("hashCode")) { // Use hashCo...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (method.getName().equals("equals")) { // Only consider equal when proxies are identical. return (proxy == args[0]); } else if (method.getName().equals("hashCode")) { // Use hashCode of Connection proxy. ret...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // Invocation on Session interface coming in... if (method.getName().equals("equals")) { // Only consider equal when proxies are identical. return (proxy == args[0] ? Boolean.TRUE : Boolean.FALSE); } else if (meth...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // Invocation on Session interface coming in... if (method.getName().equals("equals")) { // Only consider equal when proxies are identical. return (proxy == args[0]); } else if (method.getName().equals("hashCode")...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { try { if (method.getName().equals("equals")) { // Only consider equal when proxies are identical. return (proxy == args[0] ? Boolean.TRUE : Boolean.FALSE); } else if (method.getName().equals("hashCode")) { ...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { try { if (method.getName().equals("equals")) { // Only consider equal when proxies are identical. return (proxy == args[0]); } else if (method.getName().equals("hashCode")) { // Use hashCode of EntityMana...
public void testSingleton() throws Exception { final String message = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:test=\"http://wsejb.integration.testsuite.as.jboss.org/\">" + " <soapenv:Header/>" + " <soapenv:Body>" ...
public void testSingleton() throws Exception { final String message = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:test=\"http://wsejb.integration.testsuite.as.jboss.org/\">" + " <soapenv:Header/>" + " <soapenv:Body>" ...
public CholeskyDecompositionImpl(final RealMatrix matrix, final double relativeSymmetryThreshold, final double absolutePositivityThreshold) { if (!matrix.isSquare()) { throw new NonSquareMatrixException(matrix.getRowDimens...
public CholeskyDecompositionImpl(final RealMatrix matrix, final double relativeSymmetryThreshold, final double absolutePositivityThreshold) { if (!matrix.isSquare()) { throw new NonSquareMatrixException(matrix.getRowDimens...
public void testExcelPrintAllArrayOfLists() throws IOException { final StringWriter sw = new StringWriter(); final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.EXCEL); printer.printRecords(new List[] { Arrays.asList("r1c1", "r1c2"), Arrays.asList("r2c1", "r2c2") }); assertEquals...
public void testExcelPrintAllArrayOfLists() throws IOException { final StringWriter sw = new StringWriter(); final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.EXCEL); printer.printRecords((Object[]) new List[] { Arrays.asList("r1c1", "r1c2"), Arrays.asList("r2c1", "r2c2") }); a...
public void bootstrap() throws Exception { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(false); ServiceTarget target = serviceContainer.subTarget(); ControlledProcessStat...
public void bootstrap() throws Exception { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(true); ServiceTarget target = serviceContainer.subTarget(); ControlledProcessState...
public static Iterator getIterator(Object obj) { if (obj == null) { return emptyIterator(); } else if (obj instanceof Iterator) { return (Iterator) obj; } else if (obj instanceof Collection) { return ((Collection) obj).iterator();...
public static Iterator getIterator(Object obj) { if (obj == null) { return emptyIterator(); } else if (obj instanceof Iterator) { return (Iterator) obj; } else if (obj instanceof Collection) { return ((Collection) obj).iterator();...
public JSPConfig(final boolean developmentMode, final boolean disabled, final boolean keepGenerated, final boolean trimSpaces, final boolean tagPooling, final boolean mappedFile, final int checkInterval, int modificationTestInterval, ...
public JSPConfig(final boolean developmentMode, final boolean disabled, final boolean keepGenerated, final boolean trimSpaces, final boolean tagPooling, final boolean mappedFile, final int checkInterval, int modificationTestInterval, ...
protected void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> controllers) throws OperationFailedException { final ModelNode address = operation.require(OP_ADDR); final String...
protected void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> controllers) throws OperationFailedException { final ModelNode address = operation.require(OP_ADDR); final String...
public WeldDeployment(Set<BeanDeploymentArchiveImpl> beanDeploymentArchives, Collection<Metadata<Extension>> extensions, Module module) { this.additionalBeanDeploymentArchive = new BeanDeploymentArchiveImpl(Collections.<String> emptySet(), BeansXml.EMPTY_BEANS_XML, module, getCla...
public WeldDeployment(Set<BeanDeploymentArchiveImpl> beanDeploymentArchives, Collection<Metadata<Extension>> extensions, Module module) { this.additionalBeanDeploymentArchive = new BeanDeploymentArchiveImpl(Collections.<String> emptySet(), BeansXml.EMPTY_BEANS_XML, module, getCla...
public T extractData(ClientHttpResponse response) throws IOException { MediaType contentType = response.getHeaders().getContentType(); if (contentType == null) { throw new RestClientException("Cannot extract response: no Content-Type found"); } for (HttpMessageConverter<T> messageConverter : getSuppor...
public T extractData(ClientHttpResponse response) throws IOException { MediaType contentType = response.getHeaders().getContentType(); if (contentType == null) { throw new RestClientException("Cannot extract response: no Content-Type found"); } for (HttpMessageConverter<T> messageConverter : getSuppor...
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).g...
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).g...
public static long freeSpaceKb(String path) throws IOException { return INSTANCE.freeSpaceOS(path, OS, true); } //----------------------------------------------------------------------- /** * Returns the free space on a drive or volume in a cross-platform manner. * Note that some OS's...
public static long freeSpaceKb(String path) throws IOException { return INSTANCE.freeSpaceOS(path, OS, true); } //----------------------------------------------------------------------- /** * Returns the free space on a drive or volume in a cross-platform manner. * Note that some OS's...
public interface AddDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 contr...
public interface AddDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 contr...
public interface DeployDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 co...
public interface DeployDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 co...
public interface DeploymentActionsCompleteBuilder extends DeploymentPlanBuilder { /* * 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 contribu...
public interface DeploymentActionsCompleteBuilder extends DeploymentPlanBuilder { /* * 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 contribu...
public interface RemoveDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 co...
public interface RemoveDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 co...
public interface ReplaceDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 c...
public interface ReplaceDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 c...
public interface UndeployDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 ...
public interface UndeployDeploymentPlanBuilder extends DeploymentActionsCompleteBuilder { /* * 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 ...
public void handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws IOException, HttpMediaTypeNotAcceptableException { mavContainer.setRequestHandled(true); if (returnValue != null) { writeWithMessageConverters(returnValue,...
public void handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws IOException, HttpMediaTypeNotAcceptableException { mavContainer.setRequestHandled(true); if (returnValue != null || getAdviceChain().hasAdvice()) { writeWi...
private void validatePool(ModelNode address, ModelNode resourceDescription, ModelNode resource) { for (AttributeDefinition attr : POOL_ATTRIBUTES) { final String name = attr.getName(); final ModelType expectedType = attr.getType(); assertTrue(resourceDescription.get(ATTR...
private void validatePool(ModelNode address, ModelNode resourceDescription, ModelNode resource) { for (AttributeDefinition attr : POOL_ATTRIBUTES) { final String name = attr.getName(); final ModelType expectedType = attr.getType(); assertTrue(resourceDescription.get(ATTR...
protected <T> T convertIfNecessary( String propertyName, Object oldValue, Object newValue, Class<T> requiredType, PropertyDescriptor descriptor, MethodParameter methodParam) throws IllegalArgumentException { Object convertedValue = newValue; // Custom editor for this type? PropertyEditor editor = this...
protected <T> T convertIfNecessary( String propertyName, Object oldValue, Object newValue, Class<T> requiredType, PropertyDescriptor descriptor, MethodParameter methodParam) throws IllegalArgumentException { Object convertedValue = newValue; // Custom editor for this type? PropertyEditor editor = this...
private static final MarshallingConfiguration CONFIG; static { try { MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling:jboss-marshalling-river")); } catch (ModuleLoadException e) { throw new RuntimeExcep...
private static final MarshallingConfiguration CONFIG; static { try { MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling.jboss-marshalling-river")); } catch (ModuleLoadException e) { throw new RuntimeExcep...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { if(context.getAttachment(ModuleConfig.ATTACHMENT_KEY) != null) return; final VirtualFile deploymentRoot = getVirtualFileAttachment(context); final MountHandle deploymentRootMou...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { if(context.getAttachment(ModuleConfig.ATTACHMENT_KEY) != null) return; final VirtualFile deploymentRoot = getVirtualFileAttachment(context); final MountHandle deploymentRootMou...
private static final MarshallingConfiguration CONFIG; static { try { MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling:jboss-marshalling-river")); } catch (ModuleLoadException e) { throw new RuntimeExcept...
private static final MarshallingConfiguration CONFIG; static { try { MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling.jboss-marshalling-river")); } catch (ModuleLoadException e) { throw new RuntimeExcept...
public void writeContent(final XMLExtendedStreamWriter writer, final ModelMarshallingContext context) throws XMLStreamException { ModelNode modelNode = context.getModelNode(); writer.writeStartDocument(); writer.writeStartElement(Element.DOMAIN.getLocalName()); writer.writeDefaultN...
public void writeContent(final XMLExtendedStreamWriter writer, final ModelMarshallingContext context) throws XMLStreamException { ModelNode modelNode = context.getModelNode(); writer.writeStartDocument(); writer.writeStartElement(Element.DOMAIN.getLocalName()); writer.writeDefaultN...
public void writeContent(final XMLExtendedStreamWriter writer, final ModelMarshallingContext context) throws XMLStreamException { ModelNode modelNode = context.getModelNode(); writer.writeStartDocument(); writer.writeStartElement(Element.SERVER.getLocalName()); if (mode...
public void writeContent(final XMLExtendedStreamWriter writer, final ModelMarshallingContext context) throws XMLStreamException { ModelNode modelNode = context.getModelNode(); writer.writeStartDocument(); writer.writeStartElement(Element.SERVER.getLocalName()); if (mode...
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { newControllers.addAll(installRuntimeServices(context, model, verificationHandler)); ...
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { newControllers.addAll(installRuntimeServices(context, model, verificationHandler)); ...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final BoundedThreadPoolParameters params = Thr...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final BoundedThreadPoolParameters params = Thr...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final QueuelessThreadPoolParameters params = T...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final QueuelessThreadPoolParameters params = T...
public interface HandlerMethodArgumentResolver { /* * 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 interface HandlerMethodArgumentResolver { /* * 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 interface HandlerMethodReturnValueHandler { /* * 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/l...
public interface HandlerMethodReturnValueHandler { /* * 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/l...
public <A extends Annotation> A getMethodAnnotation(Class<A> annotationType) { return AnnotationUtils.findAnnotation(this.method, annotationType); }
public <A extends Annotation> A getMethodAnnotation(Class<A> annotationType) { return AnnotationUtils.findAnnotation(this.bridgedMethod, annotationType); }
protected void doFinalize() throws DerivativeException { throw new DerivativeException(null); } };
protected void doFinalize() throws DerivativeException { throw new DerivativeException(null); } }
public void testNextInt() { try { testGenerator.nextInt(-1); fail("IllegalArgumentException expected"); } catch (IllegalArgumentException ex) { ; } Frequency freq = new Frequency(); int value = 0; for (int i=0; i<smallSampleSize; i+...
public void testNextInt() { try { testGenerator.nextInt(-1); fail("IllegalArgumentException expected"); } catch (IllegalArgumentException ex) { // ignored } Frequency freq = new Frequency(); int value = 0; for (int i=0; i<smallSampl...
public static void parseDomainRootElement(final XMLExtendedStreamReader reader, final List<? super AbstractDomainModelUpdate<?>> list) throws XMLStreamException { // Read namespaces final List<NamespacePrefix> prefixes = readNamespaces(reader); if (! prefixes.isEmpty()) list.add(new DomainN...
public static void parseDomainRootElement(final XMLExtendedStreamReader reader, final List<? super AbstractDomainModelUpdate<?>> list) throws XMLStreamException { // Read namespaces final List<NamespacePrefix> prefixes = readNamespaces(reader); if (! prefixes.isEmpty()) list.add(new DomainN...
public static Void combine(DomainModel domainModel, HostModel hostModel, String serverName, List<AbstractServerModelUpdate<?>> list) { final ServerElement serverElement = hostModel.getServer(serverName); final String serverGroupName = serverElement.getServerGroup(); final ServerGroupElement ...
public static Void combine(DomainModel domainModel, HostModel hostModel, String serverName, List<AbstractServerModelUpdate<?>> list) { final ServerElement serverElement = hostModel.getServer(serverName); final String serverGroupName = serverElement.getServerGroup(); final ServerGroupElement ...
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attac...
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attac...
public static void init(){ addArguments(CommandLineConstants.ADMIN_ONLY); instructions.add(MESSAGES.argAdminOnly()); addArguments(CommandLineConstants.PUBLIC_BIND_ADDRESS + " <value>", CommandLineConstants.PUBLIC_BIND_ADDRESS + "=<value>"); instructions.add(MESSAGES.argPublicBindAd...
public static void init(){ addArguments(CommandLineConstants.ADMIN_ONLY); instructions.add(MESSAGES.argAdminOnly()); addArguments(CommandLineConstants.PUBLIC_BIND_ADDRESS + " <value>", CommandLineConstants.PUBLIC_BIND_ADDRESS + "=<value>"); instructions.add(MESSAGES.argPublicBindAd...
public void testCOMPRESS114() throws Exception { final File input = getFile("compress-114.tar"); final InputStream is = new FileInputStream(input); final ArchiveInputStream in = new ArchiveStreamFactory().createArchiveInputStream("tar", is); TarArchiveEntry entry = (TarArchiveEntry)i...
public void testCOMPRESS114() throws Exception { final File input = getFile("COMPRESS-114.tar"); final InputStream is = new FileInputStream(input); final ArchiveInputStream in = new ArchiveStreamFactory().createArchiveInputStream("tar", is); TarArchiveEntry entry = (TarArchiveEntry)i...
public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException { if (!value.isDefined()) { if (!nullable) throw new OperationFailedException(new ModelNode().set(parameterName + " may not be null ")); //TODO i18n } else { ...
public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException { if (!value.isDefined()) { if (!nullable) throw new OperationFailedException(new ModelNode().set(parameterName + " may not be null.")); //TODO i18n } else { ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { // get hold of the deployment unit DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleLoader moduleLoader = Module.getBootModuleLoader(); final ModuleSpeci...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { // get hold of the deployment unit DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleLoader moduleLoader = Module.getBootModuleLoader(); final ModuleSpeci...
public synchronized void start(final StartContext context) throws StartException { final EJBClientContext clientContext = EJBClientContext.create(new LocalOnlyEjbClientConfiguration()); // register the default local EJB receiver (if present - app clients don't have local EJB receivers) final...
public synchronized void start(final StartContext context) throws StartException { final EJBClientContext clientContext = EJBClientContext.create(new LocalOnlyEjbClientConfiguration(), this.getClass().getClassLoader()); // register the default local EJB receiver (if present - app clients don't have ...
public void configureDependency(ServiceBuilder<?> serviceBuilder, Service<Component> service) throws DeploymentUnitProcessingException { final String securityDomainName = SecurityDomainDependencyConfigurator.this.ejbComponentDescription.getSecurityDomain(); if (se...
public void configureDependency(ServiceBuilder<?> serviceBuilder, Service<Component> service) throws DeploymentUnitProcessingException { final String securityDomainName = SecurityDomainDependencyConfigurator.this.ejbComponentDescription.getSecurityDomain(); if (se...
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException { if (componentConfiguration.getComponentDescription() instanceof EJBComponentDescription == fal...
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException { if (componentConfiguration.getComponentDescription() instanceof EJBComponentDescription == fal...
public static FileOutputStream openOutputStream(File file) throws IOException { if (file.exists()) { if (file.isDirectory()) { throw new IOException("File '" + file + "' exists but is a directory"); } if (file.canWrite() == false) { throw n...
public static FileOutputStream openOutputStream(File file) throws IOException { if (file.exists()) { if (file.isDirectory()) { throw new IOException("File '" + file + "' exists but is a directory"); } if (file.canWrite() == false) { throw n...
public static final SimpleAttributeDefinition DOMAIN_NAME = SimpleAttributeDefinitionBuilder.create(CommonAttributes.DOMAIN_NAME, ModelType.STRING, true) /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyr...
public static final SimpleAttributeDefinition DOMAIN_NAME = SimpleAttributeDefinitionBuilder.create(CommonAttributes.DOMAIN_NAME, ModelType.STRING, true) .setAllowExpression(true) .setDefaultValue(new ModelNode(CommonAttributes.DEFAULT_EXPRESSION_DOMAIN)) .build(); static fi...