Class DeploymentDescriptorImpl
java.lang.Object
org.kie.internal.runtime.manager.deploy.DeploymentDescriptorImpl
- All Implemented Interfaces:
Serializable,DeploymentDescriptor
- See Also:
-
Field Summary
Fields inherited from interface org.kie.internal.runtime.conf.DeploymentDescriptor
META_INF_LOCATION, TYPE_ALL, TYPE_EXECUTE, TYPE_VIEW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ObjectModel>cleanList(List<ObjectModel> input) protected Set<NamedObjectModel>cleanNamedSet(Set<NamedObjectModel> input) protected Set<ObjectModel>cleanSet(Set<ObjectModel> input) Returns the audit type configurationReturns 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 unitReturns implementation specific builder to construct instances of the descriptor;Returns additional classes that shall be added to remote services context.List of kiesession configuration entries to be registeredList of (kie) environment entries to be registeredReturns list of event listeners (process, agenda, rule runtime) to be applied onKieSessionReturn list of globals to be applied onKieSessionReturns whether or not the classes used in the serialization mechanism are limited to classes annotated with @Remotable, @XmlRootElement, or @XmlType.Returns list of object marshaling strategies to be applied onKieSessionReturns the runtime engine persistence type configurationReturns 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 unitReturns all required roles required to be granted access to the deployment.getRequiredRoles(String type) Returns required for given type of applicability.Returns runtime strategy to be used, default Singleton.Returns list of task event listeners to be applied onKieSessionReturn list of work item handlers to be applied onKieSessionbooleanisEmpty()protected voidprotected voidremoveTransient(Collection<?> input) voidsetAuditMode(AuditMode auditMode) voidsetAuditPersistenceUnit(String auditPersistenceUnit) voidsetClasses(List<String> classes) voidsetConfiguration(List<NamedObjectModel> configuration) voidsetEnvironmentEntries(List<NamedObjectModel> environmentEntires) voidsetEventListeners(List<ObjectModel> eventListeners) voidsetGlobals(List<NamedObjectModel> globals) voidsetLimitSerializationClasses(Boolean limitSerializationClasses) voidsetMarshallingStrategies(List<ObjectModel> marshallingStrategies) voidsetPersistenceMode(PersistenceMode persistenceMode) voidsetPersistenceUnit(String persistenceUnit) voidsetRequiredRoles(List<String> requiredRoles) voidsetRuntimeStrategy(RuntimeStrategy runtimeStrategy) voidsetTaskEventListeners(List<ObjectModel> taskEventListeners) voidsetWorkItemHandlers(List<NamedObjectModel> workItemHandlers) toString()toXml()Returns XML representation of this descriptor instance
-
Constructor Details
-
DeploymentDescriptorImpl
public DeploymentDescriptorImpl() -
DeploymentDescriptorImpl
-
-
Method Details
-
mapRequiredRoles
protected void mapRequiredRoles() -
getPersistenceUnit
Description copied from interface:DeploymentDescriptorReturns 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
- Specified by:
getPersistenceUnitin interfaceDeploymentDescriptor- Returns:
- non empty string should correspond to defined persistence unit in persistence.xml, in case null is returned persistence will use default one - org.jbpm.domain
-
getAuditPersistenceUnit
Description copied from interface:DeploymentDescriptorReturns 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
- Specified by:
getAuditPersistenceUnitin interfaceDeploymentDescriptor- Returns:
- non empty string should correspond to defined persistence unit in persistence.xml, in case null is returned persistence will use default one - org.jbpm.domain
-
getAuditMode
Description copied from interface:DeploymentDescriptorReturns the audit type configuration- Specified by:
getAuditModein interfaceDeploymentDescriptor- Returns:
-
getPersistenceMode
Description copied from interface:DeploymentDescriptorReturns the runtime engine persistence type configuration- Specified by:
getPersistenceModein interfaceDeploymentDescriptor- Returns:
-
getRuntimeStrategy
Description copied from interface:DeploymentDescriptorReturns runtime strategy to be used, default Singleton.- Specified by:
getRuntimeStrategyin interfaceDeploymentDescriptor- Returns:
-
getMarshallingStrategies
Description copied from interface:DeploymentDescriptorReturns list of object marshaling strategies to be applied onKieSession- Specified by:
getMarshallingStrategiesin interfaceDeploymentDescriptor- Returns:
-
getEventListeners
Description copied from interface:DeploymentDescriptorReturns list of event listeners (process, agenda, rule runtime) to be applied onKieSession- Specified by:
getEventListenersin interfaceDeploymentDescriptor- Returns:
-
getGlobals
Description copied from interface:DeploymentDescriptorReturn list of globals to be applied onKieSession- Specified by:
getGlobalsin interfaceDeploymentDescriptor- Returns:
-
getWorkItemHandlers
Description copied from interface:DeploymentDescriptorReturn list of work item handlers to be applied onKieSession- Specified by:
getWorkItemHandlersin interfaceDeploymentDescriptor- Returns:
-
getTaskEventListeners
Description copied from interface:DeploymentDescriptorReturns list of task event listeners to be applied onKieSession- Specified by:
getTaskEventListenersin interfaceDeploymentDescriptor- Returns:
-
getEnvironmentEntries
Description copied from interface:DeploymentDescriptorList of (kie) environment entries to be registered- Specified by:
getEnvironmentEntriesin interfaceDeploymentDescriptor- Returns:
-
getConfiguration
Description copied from interface:DeploymentDescriptorList of kiesession configuration entries to be registered- Specified by:
getConfigurationin interfaceDeploymentDescriptor- Returns:
-
getRequiredRoles
Description copied from interface:DeploymentDescriptorReturns all required roles required to be granted access to the deployment. Empty list or null means no security will be applied.- Specified by:
getRequiredRolesin interfaceDeploymentDescriptor- Returns:
-
getRequiredRoles
Description copied from interface:DeploymentDescriptorReturns required for given type of applicability. Supported types are:- all
- view
- execute
- Specified by:
getRequiredRolesin interfaceDeploymentDescriptor- Parameters:
type- indicates the type which required roles shoud apply- Returns:
-
getClasses
Description copied from interface:DeploymentDescriptorReturns additional classes that shall be added to remote services context. All classes that directly belong to kjar (or are declared as dependency of type kjar) do not need to be listed as part of this collection.- Specified by:
getClassesin interfaceDeploymentDescriptor- Returns:
-
setPersistenceUnit
-
setAuditPersistenceUnit
-
setAuditMode
-
setPersistenceMode
-
setRuntimeStrategy
-
setMarshallingStrategies
-
setEventListeners
-
setTaskEventListeners
-
setGlobals
-
setWorkItemHandlers
-
setEnvironmentEntries
-
setConfiguration
-
setRequiredRoles
-
setClasses
-
getLimitSerializationClasses
Description copied from interface:DeploymentDescriptorReturns whether or not the classes used in the serialization mechanism are limited to classes annotated with @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.)- Specified by:
getLimitSerializationClassesin interfaceDeploymentDescriptor- Returns:
- a
Boolean
-
setLimitSerializationClasses
-
cleanNamedSet
-
cleanSet
-
cleanList
-
removeTransient
-
clearClone
- Throws:
CloneNotSupportedException
-
isEmpty
public boolean isEmpty() -
getBuilder
Description copied from interface:DeploymentDescriptorReturns implementation specific builder to construct instances of the descriptor;- Specified by:
getBuilderin interfaceDeploymentDescriptor- Returns:
-
toXml
Description copied from interface:DeploymentDescriptorReturns XML representation of this descriptor instance- Specified by:
toXmlin interfaceDeploymentDescriptor- Returns:
-
toString
-