Package org.kie.api.internal.io
Interface ResourceTypePackage<T>
- Type Parameters:
T- the type of such a processed resource
- All Superinterfaces:
Iterable<T>,Serializable
A container for resources that have been processed by a
KieAssemblerService.
Resources are expected to be able to be looked up by a "name" or identifier.
Each ResourceTypePackage is identified by a namespace.-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault booleanremoveResource(Resource resource) Remove artifacts inside this ResourceTypePackage which belong to the resource passed as parameter.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getResourceType
ResourceType getResourceType() -
removeResource
Remove artifacts inside this ResourceTypePackage which belong to the resource passed as parameter. Concrete implementation of this interface shall extend this method in order to properly support incremental KieContainer updates.- Parameters:
resource-- Returns:
- true if this ResourceTypePackage mutated as part of this method invocation.
-
add
-