public class DeploymentDescriptorImpl extends Object implements DeploymentDescriptor, Serializable
META_INF_LOCATION, TYPE_ALL, TYPE_EXECUTE, TYPE_VIEW| Constructor and Description |
|---|
DeploymentDescriptorImpl() |
DeploymentDescriptorImpl(String defaultPU) |
| Modifier and Type | Method and Description |
|---|---|
protected List<ObjectModel> |
cleanList(List<ObjectModel> input) |
protected Set<NamedObjectModel> |
cleanNamedSet(Set<NamedObjectModel> input) |
protected Set<ObjectModel> |
cleanSet(Set<ObjectModel> input) |
DeploymentDescriptor |
clearClone() |
AuditMode |
getAuditMode()
Returns the audit type configuration
|
String |
getAuditPersistenceUnit()
Returns name of the JPA persistence unit to be used by audit component
non empty should correspond to defined persistence unit in persistence.xml
null to use default persistence unit
|
DeploymentDescriptorBuilder |
getBuilder()
Returns implementation specific builder to construct instances of the descriptor;
|
List<String> |
getClasses()
Returns additional classes that shall be added to remote services context.
|
List<NamedObjectModel> |
getConfiguration()
List of kiesession configuration entries to be registered
|
List<NamedObjectModel> |
getEnvironmentEntries()
List of (kie) environment entries to be registered
|
List<ObjectModel> |
getEventListeners()
Returns list of event listeners (process, agenda, rule runtime) to be applied on
KieSession |
List<NamedObjectModel> |
getGlobals()
Return list of globals to be applied on
KieSession |
Boolean |
getLimitSerializationClasses()
Returns whether or not the classes used in the serialization mechanism
are limited to classes annotated with @
Remotable, @XmlRootElement,
or @XmlType. |
List<ObjectModel> |
getMarshallingStrategies()
Returns list of object marshaling strategies to be applied on
KieSession |
PersistenceMode |
getPersistenceMode()
Returns the runtime engine persistence type configuration
|
String |
getPersistenceUnit()
Returns name of the JPA persistence unit to be used for runtime engine
non empty should correspond to defined persistence unit in persistence.xml
null to use default persistence unit
|
List<String> |
getRequiredRoles()
Returns all required roles required to be granted access to the deployment.
|
List<String> |
getRequiredRoles(String type)
Returns required for given type of applicability.
|
RuntimeStrategy |
getRuntimeStrategy()
Returns runtime strategy to be used, default Singleton.
|
List<ObjectModel> |
getTaskEventListeners()
Returns list of task event listeners to be applied on
KieSession |
List<NamedObjectModel> |
getWorkItemHandlers()
Return list of work item handlers to be applied on
KieSession |
boolean |
isEmpty() |
protected void |
mapRequiredRoles() |
protected void |
removeTransient(Collection<?> input) |
void |
setAuditMode(AuditMode auditMode) |
void |
setAuditPersistenceUnit(String auditPersistenceUnit) |
void |
setClasses(List<String> classes) |
void |
setConfiguration(List<NamedObjectModel> configuration) |
void |
setEnvironmentEntries(List<NamedObjectModel> environmentEntires) |
void |
setEventListeners(List<ObjectModel> eventListeners) |
void |
setGlobals(List<NamedObjectModel> globals) |
void |
setLimitSerializationClasses(Boolean limitSerializationClasses) |
void |
setMarshallingStrategies(List<ObjectModel> marshallingStrategies) |
void |
setPersistenceMode(PersistenceMode persistenceMode) |
void |
setPersistenceUnit(String persistenceUnit) |
void |
setRequiredRoles(List<String> requiredRoles) |
void |
setRuntimeStrategy(RuntimeStrategy runtimeStrategy) |
void |
setTaskEventListeners(List<ObjectModel> taskEventListeners) |
void |
setWorkItemHandlers(List<NamedObjectModel> workItemHandlers) |
String |
toString() |
String |
toXml()
Returns XML representation of this descriptor instance
|
public DeploymentDescriptorImpl()
public DeploymentDescriptorImpl(String defaultPU)
protected void mapRequiredRoles()
public String getPersistenceUnit()
DeploymentDescriptorgetPersistenceUnit in interface DeploymentDescriptorpublic String getAuditPersistenceUnit()
DeploymentDescriptorgetAuditPersistenceUnit in interface DeploymentDescriptorpublic AuditMode getAuditMode()
DeploymentDescriptorgetAuditMode in interface DeploymentDescriptorpublic PersistenceMode getPersistenceMode()
DeploymentDescriptorgetPersistenceMode in interface DeploymentDescriptorpublic RuntimeStrategy getRuntimeStrategy()
DeploymentDescriptorgetRuntimeStrategy in interface DeploymentDescriptorpublic List<ObjectModel> getMarshallingStrategies()
DeploymentDescriptorKieSessiongetMarshallingStrategies in interface DeploymentDescriptorpublic List<ObjectModel> getEventListeners()
DeploymentDescriptorKieSessiongetEventListeners in interface DeploymentDescriptorpublic List<NamedObjectModel> getGlobals()
DeploymentDescriptorKieSessiongetGlobals in interface DeploymentDescriptorpublic List<NamedObjectModel> getWorkItemHandlers()
DeploymentDescriptorKieSessiongetWorkItemHandlers in interface DeploymentDescriptorpublic List<ObjectModel> getTaskEventListeners()
DeploymentDescriptorKieSessiongetTaskEventListeners in interface DeploymentDescriptorpublic List<NamedObjectModel> getEnvironmentEntries()
DeploymentDescriptorgetEnvironmentEntries in interface DeploymentDescriptorpublic List<NamedObjectModel> getConfiguration()
DeploymentDescriptorgetConfiguration in interface DeploymentDescriptorpublic List<String> getRequiredRoles()
DeploymentDescriptorgetRequiredRoles in interface DeploymentDescriptorpublic List<String> getRequiredRoles(String type)
DeploymentDescriptorgetRequiredRoles in interface DeploymentDescriptortype - indicates the type which required roles shoud applypublic List<String> getClasses()
DeploymentDescriptorgetClasses in interface DeploymentDescriptorpublic void setPersistenceUnit(String persistenceUnit)
public void setAuditPersistenceUnit(String auditPersistenceUnit)
public void setAuditMode(AuditMode auditMode)
public void setPersistenceMode(PersistenceMode persistenceMode)
public void setRuntimeStrategy(RuntimeStrategy runtimeStrategy)
public void setMarshallingStrategies(List<ObjectModel> marshallingStrategies)
public void setEventListeners(List<ObjectModel> eventListeners)
public void setTaskEventListeners(List<ObjectModel> taskEventListeners)
public void setGlobals(List<NamedObjectModel> globals)
public void setWorkItemHandlers(List<NamedObjectModel> workItemHandlers)
public void setEnvironmentEntries(List<NamedObjectModel> environmentEntires)
public void setConfiguration(List<NamedObjectModel> configuration)
public Boolean getLimitSerializationClasses()
DeploymentDescriptorRemotable, @XmlRootElement,
or @XmlType.
In the 6.x branches, the default is false (classes are not limited.)
In the 7.x branches, the default is true (classes are limited.)getLimitSerializationClasses in interface DeploymentDescriptorBooleanpublic void setLimitSerializationClasses(Boolean limitSerializationClasses)
protected Set<NamedObjectModel> cleanNamedSet(Set<NamedObjectModel> input)
protected Set<ObjectModel> cleanSet(Set<ObjectModel> input)
protected List<ObjectModel> cleanList(List<ObjectModel> input)
protected void removeTransient(Collection<?> input)
public DeploymentDescriptor clearClone() throws CloneNotSupportedException
CloneNotSupportedExceptionpublic boolean isEmpty()
public DeploymentDescriptorBuilder getBuilder()
DeploymentDescriptorgetBuilder in interface DeploymentDescriptorpublic String toXml()
DeploymentDescriptortoXml in interface DeploymentDescriptorCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.