Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source.
   * Copyright 2010, Red Hat, Inc., and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.jboss.as.connector.subsystems.resourceadapters;
 
 

Author(s):
@author Stefano Maestri
 
 public class Constants {
 
     public static final String RESOURCEADAPTER_NAME = "resource-adapter";
 
     public static final String WORKMANAGER_NAME = "workmanager";
 
     public static final String DISTRIBUTED_WORKMANAGER_NAME = "distributed-workmanager";
 
     static final String RESOURCEADAPTERS_NAME = "resource-adapters";
 
     public static final String IRONJACAMAR_NAME = "ironjacamar";
 
     public static final String STATISTICS_NAME = "statistics";
 
     public static final String CONNECTIONDEFINITIONS_NAME = "connection-definitions";
 
     private static final String CLASS_NAME_NAME = "class-name";
 
     static final String POOL_NAME_NAME = "pool-name";
 
     private static final String USE_JAVA_CONTEXT_NAME = "use-java-context";
 
     private static final String ENABLED_NAME = "enabled";
 
     private static final String JNDINAME_NAME = "jndi-name";
 
     private static final String ALLOCATION_RETRY_NAME = "allocation-retry";
 
     private static final String ALLOCATION_RETRY_WAIT_MILLIS_NAME = "allocation-retry-wait-millis";
 
     private static final String XA_RESOURCE_TIMEOUT_NAME = "xa-resource-timeout";
 
     private static final String USETRYLOCK_NAME = "use-try-lock";
 
     private static final String SECURITY_DOMAIN_AND_APPLICATION_NAME = "security-domain-and-application";
 
     private static final String SECURITY_DOMAIN_NAME = "security-domain";
 
    private static final String APPLICATION_NAME = "security-application";
    private static final String USE_CCM_NAME = "use-ccm";
    private static final String SHARABLE_NAME = "sharable";
    private static final String ENLISTMENT_NAME = "enlistment";
    private static final String CONFIG_PROPERTIES_NAME = "config-properties";
    private static final String CONFIG_PROPERTY_VALUE_NAME = "value";
    private static final String ARCHIVE_NAME = "archive";
    private static final String MODULE_NAME = "module";
    private static final String BOOTSTRAPCONTEXT_NAME = "bootstrap-context";
    private static final String TRANSACTIONSUPPORT_NAME = "transaction-support";
    private static final String WM_SECURITY_NAME = "wm-security";
    private static final String WM_SECURITY_MAPPING_REQUIRED_NAME = "wm-security-mapping-required";
    private static final String WM_SECURITY_DOMAIN_NAME = "wm-security-domain";
    private static final String WM_SECURITY_DEFAULT_PRINCIPAL_NAME = "wm-security-default-principal";
    private static final String WM_SECURITY_DEFAULT_GROUP_NAME = "wm-security-default-group";
    private static final String WM_SECURITY_DEFAULT_GROUPS_NAME = "wm-security-default-groups";
    private static final String WM_SECURITY_MAPPING_FROM_NAME = "from";
    private static final String WM_SECURITY_MAPPING_TO_NAME = "to";
    private static final String WM_SECURITY_MAPPING_GROUP_NAME = "wm-security-mapping-group";
    private static final String WM_SECURITY_MAPPING_GROUPS_NAME = "wm-security-mapping-groups";
    private static final String WM_SECURITY_MAPPING_USER_NAME = "wm-security-mapping-user";
    private static final String WM_SECURITY_MAPPING_USERS_NAME = "wm-security-mapping-users";
    private static final String BEANVALIDATIONGROUPS_NAME = "beanvalidationgroups";
    static final String ADMIN_OBJECTS_NAME = "admin-objects";
    private static final String INTERLEAVING_NAME = "interleaving";
    private static final String NOTXSEPARATEPOOL_NAME = "no-tx-separate-pool";
    private static final String PAD_XID_NAME = "pad-xid";
    private static final String SAME_RM_OVERRIDE_NAME = "same-rm-override";
    private static final String WRAP_XA_RESOURCE_NAME = "wrap-xa-resource";
    private static final String RECOVERY_USERNAME_NAME = "recovery-username";
    private static final String RECOVERY_PASSWORD_NAME = "recovery-password";
    private static final String RECOVERY_SECURITY_DOMAIN_NAME = "recovery-security-domain";
    private static final String RECOVERLUGIN_CLASSNAME_NAME = "recovery-plugin-class-name";
    private static final String RECOVERLUGIN_PROPERTIES_NAME = "recovery-plugin-properties";
    private static final String NO_RECOVERY_NAME = "no-recovery";
    public static final String ACTIVATE = "activate";
    public static final String FLUSH_ALL_CONNECTION_IN_POOL = "flush-all-connection-in-pool";
    public static final String FLUSH_IDLE_CONNECTION_IN_POOL = "flush-idle-connection-in-pool";
    public static final String FLUSH_INVALID_CONNECTION_IN_POOL = "flush-invalid-connection-in-pool";
    public static final String FLUSH_GRACEFULLY_CONNECTION_IN_POOL = "flush-gracefully-connection-in-pool";
    public static final String TEST_CONNECTION_IN_POOL = "test-connection-in-pool";
    public static final String CLEAR_STATISTICS = "clear-statistics";
    static final SimpleAttributeDefinition ARCHIVE = SimpleAttributeDefinitionBuilder.create(.)
            .setAllowNull(true)
            .setAllowExpression(false)
            .setMeasurementUnit(.)
            .setAttributeMarshaller(new AttributeMarshaller() {
                @Override
                public void marshallAsElement(AttributeDefinition attributeModelNode resourceModelboolean marshallDefaultXMLStreamWriter writerthrows XMLStreamException {
                    if (resourceModel.hasDefined(attribute.getName())) {
                        writer.writeStartElement(attribute.getXmlName());
                        String archive = resourceModel.get(attribute.getName()).asString();
                        writer.writeCharacters(archive);
                        writer.writeEndElement();
                    }
                }
            })
            .setAlternatives().build();
    static final SimpleAttributeDefinition MODULE = SimpleAttributeDefinitionBuilder.create(.)
            .setAllowNull(true)
            .setAllowExpression(false)
            .setMeasurementUnit(.)
            .setAttributeMarshaller(new AttributeMarshaller() {
                @Override
                public void marshallAsElement(AttributeDefinition attributeModelNode resourceModelboolean marshallDefaultXMLStreamWriter writerthrows XMLStreamException {
                    if (resourceModel.hasDefined(attribute.getName())) {
                        writer.writeStartElement(attribute.getXmlName());
                        String module = resourceModel.get(attribute.getName()).asString();
                        int separatorIndex = module.indexOf(":");
                        if (separatorIndex != -1) {
                            writer.writeAttribute("slot"module.substring(separatorIndex + 1));
                            module = module.substring(0, separatorIndex);
                        } else {
                            if (marshallDefault) {
                                writer.writeAttribute("slot""main");
                            }
                        }
                        writer.writeAttribute("id"module);
                        writer.writeEndElement();
                    }
                }
            })
            .setAlternatives().build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .setDefaultValue(new ModelNode(false))
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .setDefaultValue(new ModelNode(false))
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .setDefaultValue(new ModelNode("other"))
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .build();
            .setAllowNull(true)
            .setAllowExpression(true)
            .setElementValidator(new StringLengthValidator(1, falsetrue))
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .build();
            .setAllowNull(true)
            .build();
            .setAllowNull(true)
            .build();
            .setAllowNull(true)
            .setAllowExpression(true)
            .setElementValidator(new StringLengthValidator(1, falsetrue))
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .setMeasurementUnit(.)
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .setDefaultValue(new ModelNode(.))
            .build();
            .setAllowExpression(true)
            .setAllowNull(true)
            .setDefaultValue(new ModelNode(.))
            .build();
            .setAllowNull(true)
            .setAllowExpression(true)
            .build();
            .setXmlName(...getLocalName())
            .setDefaultValue(new ModelNode())
            .setAllowExpression(true)
            .setMeasurementUnit(.)
            .build();
            .setXmlName(...getLocalName())
            .setDefaultValue(new ModelNode())
            .setAllowExpression(true)
            .setMeasurementUnit(.)
            .build();
            .setAllowExpression(true)
            .setMeasurementUnit(.)
            .setDefaultValue(new ModelNode())
            .build();
            .setAllowExpression(true)
            .build();
    static final String WORK_ACTIVE_NAME = "work-active";
    static final String WORK_SUCEESSFUL_NAME = "work-successful";
    static final String WORK_FAILED_NAME = "work-failed";
    static final String DO_WORK_ACCEPTED_NAME = "dowork-accepted";
    static final String DO_WORK_REJECTED_NAME = "dowork-rejected";
    static final String SCHEDULED_WORK_ACCEPTED_NAME = "schedulework-accepted";
    static final String SCHEDULED_WORK_REJECTED_NAME = "schedulework-rejected";
    static final String START_WORK_ACCEPTED_NAME = "startwork-accepted";
    static final String START_WORK_REJECTED_NAME = "startwork-rejected";
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .build();
    public static final String WORKMANAGER_STATISTICS_ENABLED_NAME = "workmanager-statistics-enabled";
            .setStorageRuntime()
            .build();
                .setStorageRuntime()
                .setDeprecated(ModelVersion.create(2))
                .build();
    public static final String DISTRIBUTED_STATISTICS_ENABLED_NAME = "distributed-workmanager-statistics-enabled";
            .setStorageRuntime()
            .build();
            .setStorageRuntime()
            .setDeprecated(ModelVersion.create(2))
            .build();
    public static final String DOWORK_DISTRIBUTION_ENABLED_NAME = "dowork-distribution-enabled";
            .setStorageRuntime()
            .build();
    public static final String SCHEDULEWORK_DISTRIBUTION_ENABLED_NAME = "schedulework-distribution-enabled";
            .setStorageRuntime()
            .build();
    public static final String STARTWORK_DISTRIBUTION_ENABLED_NAME = "startwork-distribution-enabled";
            .setStorageRuntime()
            .build();
            ,
    };
            ,
            ,
            ,
            
    };
New to GrepCode? Check out our FAQ X