public interface PolicyHandler
The PolicyHandler is Strolch's mechanism of dependency injection
Objects which require delegation can use a PolicyConfiguration element and then retrieve a StrolchPolicy
instance from this PolicyHandler.
PolicyConfiguration have a mapping of a policy type, i.e. an interface for a specific delegation. This
interface has concrete implementations which are then returned by the PolicyHandler depending on the current
configuration
The resolving of a policy instance is handled by a PolicyDefVisitor
| Modifier and Type | Method and Description |
|---|---|
<T extends StrolchPolicy> |
getPolicy(PolicyDef policyDef,
StrolchTransaction tx)
Instantiates the actual policy by resolving the
PolicyDef using a PolicyDefVisitor |
<T extends StrolchPolicy> T getPolicy(PolicyDef policyDef, StrolchTransaction tx)
PolicyDef using a PolicyDefVisitorpolicyDef - the PolicyDef referencing a concrete policytx - the current transaction for which the policy is instantiatedCopyright © 2011–2016 Strolch. All rights reserved.