public class ClassCacheManager extends Object
Constructor and Description |
---|
ClassCacheManager() |
Modifier and Type | Method and Description |
---|---|
List<org.kie.api.executor.CommandCallback> |
buildCommandCallback(org.kie.api.executor.CommandContext ctx,
ClassLoader cl)
Builds completely initialized list of callbacks for given context.
|
protected void |
closeInstance(Object instance) |
void |
dispose() |
org.kie.api.executor.Command |
findCommand(String name,
ClassLoader cl)
Finds command by FQCN and if not found loads the class and store the instance in
the cache.
|
org.kie.api.executor.CommandCallback |
findCommandCallback(String name,
ClassLoader cl)
Finds command callback by FQCN and if not found loads the class and store the instance in
the cache.
|
public org.kie.api.executor.Command findCommand(String name, ClassLoader cl)
name
- - fully qualified class name of the commandpublic org.kie.api.executor.CommandCallback findCommandCallback(String name, ClassLoader cl)
name
- - fully qualified class name of the command callbackpublic List<org.kie.api.executor.CommandCallback> buildCommandCallback(org.kie.api.executor.CommandContext ctx, ClassLoader cl)
ctx
- contextual data given by execution serviceprotected void closeInstance(Object instance)
public void dispose()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.