Class DelegateFactory
java.lang.Object
is.galia.delegate.DelegateFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static Delegate
newDelegate
(RequestContext context) Returns a newDelegate
instance.
-
Method Details
-
isDelegateAvailable
public static boolean isDelegateAvailable()- Returns:
- Whether a delegate is available, i.e. whether
newDelegate(RequestContext)
will return one.
-
newDelegate
Returns a new
Delegate
instance.Normally this would be called only once at the beginning of a request lifecycle, and the returned instance passed around wherever it is needed.
- Parameters:
context
- Request context.- Returns:
- New instance.
- Throws:
DelegateException
- if there was an error parsing the script, instantiating a delegate object, etc.
-