Drools :: Core 6.1.0.Beta1

org.drools.core.world.impl
Class WorldImpl

java.lang.Object
  extended by org.drools.core.world.impl.WorldImpl
All Implemented Interfaces:
GetDefaultValue, org.kie.api.runtime.CommandExecutor, org.kie.internal.command.Context, org.kie.internal.command.World

public class WorldImpl
extends Object
implements org.kie.internal.command.World, GetDefaultValue, org.kie.api.runtime.CommandExecutor


Nested Class Summary
static interface WorldImpl.CommandExecutionHandler
           
static class WorldImpl.DefaultCommandExecutionHandler
           
 
Constructor Summary
WorldImpl()
           
 
Method Summary
 org.kie.internal.command.Context createContext(String identifier)
           
<T> T
execute(org.kie.api.command.Command<T> command)
           
 Object get(String identifier)
           
 org.kie.internal.command.Context getContext(String identifier)
           
 org.kie.internal.command.World getContextManager()
           
 Object getLastReturnValue()
           
 String getName()
           
 Object getObject()
           
 org.kie.internal.command.Context getRootContext()
           
 void remove(String identifier)
           
 void set(String identifier, Object value)
           
 void setCommandExecutionHandler(WorldImpl.CommandExecutionHandler executionHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldImpl

public WorldImpl()
Method Detail

execute

public <T> T execute(org.kie.api.command.Command<T> command)
Specified by:
execute in interface org.kie.api.runtime.CommandExecutor

setCommandExecutionHandler

public void setCommandExecutionHandler(WorldImpl.CommandExecutionHandler executionHandler)

createContext

public org.kie.internal.command.Context createContext(String identifier)

getContext

public org.kie.internal.command.Context getContext(String identifier)
Specified by:
getContext in interface org.kie.internal.command.World

getRootContext

public org.kie.internal.command.Context getRootContext()

getLastReturnValue

public Object getLastReturnValue()

getObject

public Object getObject()
Specified by:
getObject in interface GetDefaultValue

getContextManager

public org.kie.internal.command.World getContextManager()
Specified by:
getContextManager in interface org.kie.internal.command.Context

getName

public String getName()
Specified by:
getName in interface org.kie.internal.command.Context

get

public Object get(String identifier)
Specified by:
get in interface org.kie.internal.command.Context

set

public void set(String identifier,
                Object value)
Specified by:
set in interface org.kie.internal.command.Context

remove

public void remove(String identifier)
Specified by:
remove in interface org.kie.internal.command.Context

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.