congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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