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 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(Set<?> 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 |
toXml()
Returns XML representation of this descriptor instance
|
public DeploymentDescriptorImpl()
public DeploymentDescriptorImpl(String defaultPU)
protected void mapRequiredRoles()
public String getPersistenceUnit()
DeploymentDescriptor
getPersistenceUnit
in interface DeploymentDescriptor
public String getAuditPersistenceUnit()
DeploymentDescriptor
getAuditPersistenceUnit
in interface DeploymentDescriptor
public AuditMode getAuditMode()
DeploymentDescriptor
getAuditMode
in interface DeploymentDescriptor
public PersistenceMode getPersistenceMode()
DeploymentDescriptor
getPersistenceMode
in interface DeploymentDescriptor
public RuntimeStrategy getRuntimeStrategy()
DeploymentDescriptor
getRuntimeStrategy
in interface DeploymentDescriptor
public List<ObjectModel> getMarshallingStrategies()
DeploymentDescriptor
KieSession
getMarshallingStrategies
in interface DeploymentDescriptor
public List<ObjectModel> getEventListeners()
DeploymentDescriptor
KieSession
getEventListeners
in interface DeploymentDescriptor
public List<NamedObjectModel> getGlobals()
DeploymentDescriptor
KieSession
getGlobals
in interface DeploymentDescriptor
public List<NamedObjectModel> getWorkItemHandlers()
DeploymentDescriptor
KieSession
getWorkItemHandlers
in interface DeploymentDescriptor
public List<ObjectModel> getTaskEventListeners()
DeploymentDescriptor
KieSession
getTaskEventListeners
in interface DeploymentDescriptor
public List<NamedObjectModel> getEnvironmentEntries()
DeploymentDescriptor
getEnvironmentEntries
in interface DeploymentDescriptor
public List<NamedObjectModel> getConfiguration()
DeploymentDescriptor
getConfiguration
in interface DeploymentDescriptor
public List<String> getRequiredRoles()
DeploymentDescriptor
getRequiredRoles
in interface DeploymentDescriptor
public List<String> getRequiredRoles(String type)
DeploymentDescriptor
getRequiredRoles
in interface DeploymentDescriptor
type
- indicates the type which required roles shoud applypublic List<String> getClasses()
DeploymentDescriptor
getClasses
in interface DeploymentDescriptor
public 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()
DeploymentDescriptor
Remotable
, @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 DeploymentDescriptor
Boolean
public void setLimitSerializationClasses(Boolean limitSerializationClasses)
protected Set<NamedObjectModel> cleanNamedSet(Set<NamedObjectModel> input)
protected Set<ObjectModel> cleanSet(Set<ObjectModel> input)
protected void removeTransient(Set<?> input)
public DeploymentDescriptor clearClone() throws CloneNotSupportedException
CloneNotSupportedException
public boolean isEmpty()
public DeploymentDescriptorBuilder getBuilder()
DeploymentDescriptor
getBuilder
in interface DeploymentDescriptor
public String toXml()
DeploymentDescriptor
toXml
in interface DeploymentDescriptor
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.