| java.lang.Object de.schlund.pfixcore.workflow.ContextResourceManagerImpl
ContextResourceManagerImpl | public class ContextResourceManagerImpl implements ContextResourceManager(Code) | | Implements the ability to store objects implementing a number of interfaces extending
the ContextResource interface
author: jtl, thomas |
init | public void init(Context context, ContextConfig config) throws PustefixApplicationException, PustefixCoreException(Code) | | Instanciates the objects and registers the interfaces which
should be used from each.
In general such an object implements a number of interfaces extending
the ContextResource interface. You are able to specify the classes
you want to instanciate and to specify which interfaces you want to
use from such an object.
The configuration is done by passing properties, each object you want
to use must be specified in a single property.
The name of this property consists of the prefix
context.resource.[A_NUMBER]. followed by the
full qualified classname of the class.
The value of the property specifies the interfaces you want to use
from this object. All interfaces are declared by the full qualified
classname of the interface and separated by a comma.
An wrong example:
context.rescoure.1.de.foo.FooImpl = Foo
context.rescoure.2.de.foo.FooAndBarAndBazImpl = Foo,Bar,Baz
This example, written as above, would be invalid as no two ContextRessources
are allowed to act as an implementation for the same interface(Foo in this case).
Note that the classes may implement the same interface, they are just not allowed to act as
an implementation for the same interface in a ContextRessource declaration.
The correct example could be:
context.rescoure.1.de.foo.FooImpl = Foo
context.rescoure.2.de.foo.FooAndBarAndBazImpl = Bar,Baz
which is correct without any change in the code of the implementing classes.
throws: PustefixApplicationException - throws: PustefixCoreException - |
|
|