Tabnine Logo
Extension.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jboss.jca.common.api.metadata.common.Extension
constructor

Best Java code snippets using org.jboss.jca.common.api.metadata.common.Extension.<init> (Showing top 5 results out of 315)

origin: wildfly/wildfly

public static Extension extractExtension(final OperationContext operationContext, final ModelNode dataSourceNode,
                     final SimpleAttributeDefinition className, final PropertiesAttributeDefinition propertyName)
    throws ValidateException, OperationFailedException {
  if (dataSourceNode.hasDefined(className.getName())) {
    String exceptionSorterClassName = getResolvedStringIfSetOrGetDefault(operationContext, dataSourceNode, className);
    Map<String, String> unwrapped = propertyName.unwrap(operationContext, dataSourceNode);
    Map<String, String> exceptionSorterProperty = unwrapped.size() > 0 ? unwrapped : null;
    return new Extension(exceptionSorterClassName, exceptionSorterProperty);
  } else {
    return null;
  }
}
origin: org.projectodd/polyglot-xa

@Override
public Validation getValidationFor(Map<String, Object> config) throws Exception {
  Boolean backgroundValidation = false;
  Long backgroundValidationMillis = 0L;
  Boolean useFastFail = false;
  Extension validConnectionChecker = new Extension( "org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker", null );
  String checkValidConnectionSql = null;
  Boolean validateOnMatch = false;
  Extension staleConnectionChecker = null;
  Extension exceptionSorter = new Extension( "org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter", null );
  return new ValidationImpl(
      backgroundValidation,
      backgroundValidationMillis,
      useFastFail,
      validConnectionChecker,
      checkValidConnectionSql,
      validateOnMatch,
      staleConnectionChecker,
      exceptionSorter );
}
origin: org.jboss.eap/wildfly-connector

public static Extension extractExtension(final OperationContext operationContext, final ModelNode dataSourceNode,
                     final SimpleAttributeDefinition className, final PropertiesAttributeDefinition propertyName)
    throws ValidateException, OperationFailedException {
  if (dataSourceNode.hasDefined(className.getName())) {
    String exceptionSorterClassName = getResolvedStringIfSetOrGetDefault(operationContext, dataSourceNode, className);
    Map<String, String> unwrapped = propertyName.unwrap(operationContext, dataSourceNode);
    Map<String, String> exceptionSorterProperty = unwrapped.size() > 0 ? unwrapped : null;
    return new Extension(exceptionSorterClassName, exceptionSorterProperty);
  } else {
    return null;
  }
}
origin: org.jboss.as/jboss-as-connector

  public static Extension extractExtension(final OperationContext operationContext, final ModelNode dataSourceNode,
                       final SimpleAttributeDefinition className, final PropertiesAttributeDefinition propertyName)
      throws ValidateException, OperationFailedException {
    if (dataSourceNode.hasDefined(className.getName())) {
      String exceptionSorterClassName = getResolvedStringIfSetOrGetDefault(operationContext, dataSourceNode, className);

      Map<String, String> unwrapped = propertyName.unwrap(operationContext, dataSourceNode);
      Map<String, String> exceptionSorterProperty = unwrapped.size() > 0 ? unwrapped : null;

      return new Extension(exceptionSorterClassName, exceptionSorterProperty);
    } else {
      return null;
    }
  }
}
origin: org.jboss.ironjacamar.jdk8/ironjacamar-common-impl

return new Extension(className, properties);
org.jboss.jca.common.api.metadata.commonExtension<init>

Javadoc

Create a new JdbcAdapterExtension.

Popular methods of Extension

  • getClassName
    Get the className.
  • getConfigPropertiesMap
    Get the configPropertiesMap.
  • equals
  • hashCode
  • validate

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JTextField (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now