org.jbpm.api.cmd
Interface Environment


public interface Environment

exposes configured process engine scope objects and transaction scope objects to command implementations.

Author:
Tom Baeyens

Method Summary
<T> T
get(java.lang.Class<T> type)
          searches an object based on type.
 java.lang.Object get(java.lang.String name)
          searches a named object in all the contexts in the default search order.
 

Method Detail

get

java.lang.Object get(java.lang.String name)
searches a named object in all the contexts in the default search order.

Returns:
the object if it exists in the environment, null if there is no object with the given name in the environment.

get

<T> T get(java.lang.Class<T> type)
searches an object based on type. The search doesn take superclasses of the context elements into account.

Returns:
the first object of the given type or null in case no such element was found.


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.