Tabnine Logo
ResourceDescriptor.addAttributeTranslation
Code IndexAdd Tabnine to your IDE (free)

How to use
addAttributeTranslation
method
in
org.jboss.as.clustering.controller.ResourceDescriptor

Best Java code snippets using org.jboss.as.clustering.controller.ResourceDescriptor.addAttributeTranslation (Showing top 6 results out of 315)

origin: wildfly/wildfly

  @Override
  public ResourceDescriptor apply(ResourceDescriptor descriptor) {
    return this.configurator.apply(descriptor)
        .addAttributes(Attribute.class)
        // Translate deprecated DATASOURCE attribute to DATA_SOURCE attribute
        .addAttributeTranslation(DeprecatedAttribute.DATASOURCE, DATA_SOURCE_TRANSLATION)
        ;
  }
}
origin: wildfly/wildfly

  @Override
  public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
    ManagementResourceRegistration registration = parent.registerSubModel(this);

    ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver())
        .addAttributes(this.prefixAttribute)
        .addAttributes(Attribute.class)
        .addAttributes(ColumnAttribute.class)
        .addAttributeTranslation(DeprecatedAttribute.BATCH_SIZE, BATCH_SIZE_TRANSLATION)
        ;
    ResourceServiceHandler handler = new SimpleResourceServiceHandler(address -> new TableServiceConfigurator(this.prefixAttribute, address));
    new SimpleResourceRegistration(descriptor, handler).register(registration);

    return registration;
  }
}
origin: wildfly/wildfly

.addAttributes(EnumSet.complementOf(EnumSet.of(Attribute.SSL_CONTEXT)))
.addExtraParameters(Attribute.SSL_CONTEXT)
.addAttributeTranslation(DeprecatedAttribute.SIMPLE_LOAD_PROVIDER, SIMPLE_LOAD_PROVIDER_TRANSLATION)
.addAlias(DeprecatedAttribute.CONNECTOR, Attribute.LISTENER)
.addRequiredSingletonChildren(SimpleLoadProviderResourceDefinition.PATH)
origin: org.wildfly/wildfly-clustering-infinispan-extension

  @Override
  public ResourceDescriptor apply(ResourceDescriptor descriptor) {
    return this.configurator.apply(descriptor)
        .addAttributes(Attribute.class)
        // Translate deprecated DATASOURCE attribute to DATA_SOURCE attribute
        .addAttributeTranslation(DeprecatedAttribute.DATASOURCE, DATA_SOURCE_TRANSLATION)
        ;
  }
}
origin: org.wildfly/wildfly-clustering-infinispan-extension

  @Override
  public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
    ManagementResourceRegistration registration = parent.registerSubModel(this);

    ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver())
        .addAttributes(this.prefixAttribute)
        .addAttributes(Attribute.class)
        .addAttributes(ColumnAttribute.class)
        .addAttributeTranslation(DeprecatedAttribute.BATCH_SIZE, BATCH_SIZE_TRANSLATION)
        ;
    ResourceServiceHandler handler = new SimpleResourceServiceHandler(address -> new TableServiceConfigurator(this.prefixAttribute, address));
    new SimpleResourceRegistration(descriptor, handler).register(registration);

    return registration;
  }
}
origin: org.jboss.eap/wildfly-mod_cluster-extension

.addAttributes(EnumSet.complementOf(EnumSet.of(Attribute.SSL_CONTEXT)))
.addExtraParameters(Attribute.SSL_CONTEXT)
.addAttributeTranslation(DeprecatedAttribute.SIMPLE_LOAD_PROVIDER, SIMPLE_LOAD_PROVIDER_TRANSLATION)
.addAlias(DeprecatedAttribute.CONNECTOR, Attribute.LISTENER)
.addRequiredSingletonChildren(SimpleLoadProviderResourceDefinition.PATH)
org.jboss.as.clustering.controllerResourceDescriptoraddAttributeTranslation

Popular methods of ResourceDescriptor

  • addAttributes
  • addCapabilities
  • <init>
  • addExtraParameters
  • addAlias
  • addRequiredChildren
  • addRequiredSingletonChildren
  • addResourceCapabilityReference
  • setAddOperationTransformation
  • addRuntimeResourceRegistration
  • setOperationTransformation
  • getName
  • setOperationTransformation,
  • getName,
  • getParentFolder,
  • setHasData,
  • setIsNew,
  • setLabel,
  • setMainReport,
  • setName,
  • setParentFolder

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top PhpStorm 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