org.wildfly.swarm.config.ejb3.IIOPService Maven / Gradle / Ivy
package org.wildfly.swarm.config.ejb3;
import org.wildfly.swarm.config.runtime.AttributeDocumentation;
import org.wildfly.swarm.config.runtime.ResourceDocumentation;
import org.wildfly.swarm.config.runtime.SingletonResource;
import org.wildfly.swarm.config.runtime.Address;
import org.wildfly.swarm.config.runtime.ResourceType;
import org.wildfly.swarm.config.runtime.Implicit;
import java.beans.PropertyChangeSupport;
import java.beans.PropertyChangeListener;
import org.wildfly.swarm.config.runtime.ModelNodeBinding;
/**
* The IIOP service
*/
@Address("/subsystem=ejb3/service=iiop")
@ResourceType("service")
@Implicit
public class IIOPService>
implements
org.wildfly.swarm.config.runtime.Keyed {
private String key;
private PropertyChangeSupport pcs;
@AttributeDocumentation("If this is true EJB's will be exposed over IIOP by default, otherwise it needs to be explicitly enabled in the deployment descriptor")
private Boolean enableByDefault;
@AttributeDocumentation("If true EJB names will be bound into the naming service with the application and module name prepended to the name (e.g. myapp/mymodule/MyEjb)")
private Boolean useQualifiedName;
public IIOPService() {
super();
this.key = "iiop";
this.pcs = new PropertyChangeSupport(this);
}
public String getKey() {
return this.key;
}
/**
* Adds a property change listener
*/
public void addPropertyChangeListener(PropertyChangeListener listener) {
if (null == this.pcs)
this.pcs = new PropertyChangeSupport(this);
this.pcs.addPropertyChangeListener(listener);
}
/**
* Removes a property change listener
*/
public void removePropertyChangeListener(
java.beans.PropertyChangeListener listener) {
if (this.pcs != null)
this.pcs.removePropertyChangeListener(listener);
}
/**
* If this is true EJB's will be exposed over IIOP by default, otherwise it
* needs to be explicitly enabled in the deployment descriptor
*/
@ModelNodeBinding(detypedName = "enable-by-default")
public Boolean enableByDefault() {
return this.enableByDefault;
}
/**
* If this is true EJB's will be exposed over IIOP by default, otherwise it
* needs to be explicitly enabled in the deployment descriptor
*/
@SuppressWarnings("unchecked")
public T enableByDefault(java.lang.Boolean value) {
Object oldValue = this.enableByDefault;
this.enableByDefault = value;
if (this.pcs != null)
this.pcs.firePropertyChange("enableByDefault", oldValue, value);
return (T) this;
}
/**
* If true EJB names will be bound into the naming service with the
* application and module name prepended to the name (e.g.
* myapp/mymodule/MyEjb)
*/
@ModelNodeBinding(detypedName = "use-qualified-name")
public Boolean useQualifiedName() {
return this.useQualifiedName;
}
/**
* If true EJB names will be bound into the naming service with the
* application and module name prepended to the name (e.g.
* myapp/mymodule/MyEjb)
*/
@SuppressWarnings("unchecked")
public T useQualifiedName(java.lang.Boolean value) {
Object oldValue = this.useQualifiedName;
this.useQualifiedName = value;
if (this.pcs != null)
this.pcs.firePropertyChange("useQualifiedName", oldValue, value);
return (T) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy