Package org.kie.internal.runtime.conf
Interface DeploymentDescriptor
- All Known Implementing Classes:
DeploymentDescriptorImpl
public interface DeploymentDescriptor
Deployment descriptor defines configurable components of deployable unit - kjar
that will be used upon deployment to execution environment providing flexible and
independent setup per deployment unit
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 onKieSessiontoXml()Returns XML representation of this descriptor instance
-
Field Details
-
META_INF_LOCATION
- See Also:
-
TYPE_ALL
- See Also:
-
TYPE_VIEW
- See Also:
-
TYPE_EXECUTE
- See Also:
-
-
Method Details
-
getPersistenceUnit
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
- 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
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
- 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
AuditMode getAuditMode()Returns the audit type configuration- Returns:
-
getPersistenceMode
PersistenceMode getPersistenceMode()Returns the runtime engine persistence type configuration- Returns:
-
getRuntimeStrategy
RuntimeStrategy getRuntimeStrategy()Returns runtime strategy to be used, default Singleton.- Returns:
-
getMarshallingStrategies
List<ObjectModel> getMarshallingStrategies()Returns list of object marshaling strategies to be applied onKieSession- Returns:
-
getEventListeners
List<ObjectModel> getEventListeners()Returns list of event listeners (process, agenda, rule runtime) to be applied onKieSession- Returns:
-
getGlobals
List<NamedObjectModel> getGlobals()Return list of globals to be applied onKieSession- Returns:
-
getWorkItemHandlers
List<NamedObjectModel> getWorkItemHandlers()Return list of work item handlers to be applied onKieSession- Returns:
-
getTaskEventListeners
List<ObjectModel> getTaskEventListeners()Returns list of task event listeners to be applied onKieSession- Returns:
-
getEnvironmentEntries
List<NamedObjectModel> getEnvironmentEntries()List of (kie) environment entries to be registered- Returns:
-
getConfiguration
List<NamedObjectModel> getConfiguration()List of kiesession configuration entries to be registered- Returns:
-
getBuilder
DeploymentDescriptorBuilder getBuilder()Returns implementation specific builder to construct instances of the descriptor;- Returns:
-
getRequiredRoles
Returns all required roles required to be granted access to the deployment. Empty list or null means no security will be applied.- Returns:
-
getRequiredRoles
Returns required for given type of applicability. Supported types are:- all
- view
- execute
- Parameters:
type- indicates the type which required roles shoud apply- Returns:
-
getClasses
Returns 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.- Returns:
-
getLimitSerializationClasses
Boolean getLimitSerializationClasses()Returns 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.)- Returns:
- a
Boolean
-
toXml
String toXml()Returns XML representation of this descriptor instance- Returns:
-