All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.swarm.config.ee.ContextService Maven / Gradle / Ivy

package org.wildfly.swarm.config.ee;

import org.wildfly.config.runtime.Implicit;
import org.wildfly.config.runtime.ResourceType;
import org.wildfly.config.runtime.ModelNodeBinding;
/**
 * A context service
 */
@ResourceType("context-service")
public class ContextService {

	private String key;
	private String jndiName;
	private Boolean useTransactionSetupProvider;

	public ContextService(String key) {
		this.key = key;
	}

	public String getKey() {
		return this.key;
	}

	/**
	 * The JNDI Name to lookup the context service.
	 */
	@ModelNodeBinding(detypedName = "jndi-name")
	public String jndiName() {
		return this.jndiName;
	}

	/**
	 * The JNDI Name to lookup the context service.
	 */
	@SuppressWarnings("unchecked")
	public ContextService jndiName(String value) {
		this.jndiName = value;
		return (ContextService) this;
	}

	/**
	 * Flag which indicates if the transaction setup provider should be used
	 */
	@ModelNodeBinding(detypedName = "use-transaction-setup-provider")
	public Boolean useTransactionSetupProvider() {
		return this.useTransactionSetupProvider;
	}

	/**
	 * Flag which indicates if the transaction setup provider should be used
	 */
	@SuppressWarnings("unchecked")
	public ContextService useTransactionSetupProvider(Boolean value) {
		this.useTransactionSetupProvider = value;
		return (ContextService) this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy