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

org.wildfly.swarm.config.ee.DefaultBindingsService 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;
/**
 * The JNDI names for the default EE bindings
 */
@ResourceType("service")
@Implicit
public class DefaultBindingsService {

	private String key;
	private String contextService;
	private String datasource;
	private String jmsConnectionFactory;
	private String managedExecutorService;
	private String managedScheduledExecutorService;
	private String managedThreadFactory;

	public DefaultBindingsService() {
		this.key = "default-bindings";
	}

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

	/**
	 * The JNDI name where the default EE Context Service can be found
	 */
	@ModelNodeBinding(detypedName = "context-service")
	public String contextService() {
		return this.contextService;
	}

	/**
	 * The JNDI name where the default EE Context Service can be found
	 */
	@SuppressWarnings("unchecked")
	public DefaultBindingsService contextService(String value) {
		this.contextService = value;
		return (DefaultBindingsService) this;
	}

	/**
	 * The JNDI name where the default EE Datasource can be found
	 */
	@ModelNodeBinding(detypedName = "datasource")
	public String datasource() {
		return this.datasource;
	}

	/**
	 * The JNDI name where the default EE Datasource can be found
	 */
	@SuppressWarnings("unchecked")
	public DefaultBindingsService datasource(String value) {
		this.datasource = value;
		return (DefaultBindingsService) this;
	}

	/**
	 * The JNDI name where the default EE JMS Connection Factory can be found
	 */
	@ModelNodeBinding(detypedName = "jms-connection-factory")
	public String jmsConnectionFactory() {
		return this.jmsConnectionFactory;
	}

	/**
	 * The JNDI name where the default EE JMS Connection Factory can be found
	 */
	@SuppressWarnings("unchecked")
	public DefaultBindingsService jmsConnectionFactory(String value) {
		this.jmsConnectionFactory = value;
		return (DefaultBindingsService) this;
	}

	/**
	 * The JNDI name where the default EE Managed Executor Service can be found
	 */
	@ModelNodeBinding(detypedName = "managed-executor-service")
	public String managedExecutorService() {
		return this.managedExecutorService;
	}

	/**
	 * The JNDI name where the default EE Managed Executor Service can be found
	 */
	@SuppressWarnings("unchecked")
	public DefaultBindingsService managedExecutorService(String value) {
		this.managedExecutorService = value;
		return (DefaultBindingsService) this;
	}

	/**
	 * The JNDI name where the default EE Managed Scheduled Executor Service can be found
	 */
	@ModelNodeBinding(detypedName = "managed-scheduled-executor-service")
	public String managedScheduledExecutorService() {
		return this.managedScheduledExecutorService;
	}

	/**
	 * The JNDI name where the default EE Managed Scheduled Executor Service can be found
	 */
	@SuppressWarnings("unchecked")
	public DefaultBindingsService managedScheduledExecutorService(String value) {
		this.managedScheduledExecutorService = value;
		return (DefaultBindingsService) this;
	}

	/**
	 * The JNDI name where the default EE Managed Thread Factory can be found
	 */
	@ModelNodeBinding(detypedName = "managed-thread-factory")
	public String managedThreadFactory() {
		return this.managedThreadFactory;
	}

	/**
	 * The JNDI name where the default EE Managed Thread Factory can be found
	 */
	@SuppressWarnings("unchecked")
	public DefaultBindingsService managedThreadFactory(String value) {
		this.managedThreadFactory = value;
		return (DefaultBindingsService) this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy