Class DelegateFactory
java.lang.Object
is.galia.delegate.DelegateFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic DelegatenewDelegate(RequestContext context) Returns a newDelegateinstance.
-
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
Delegateinstance.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.
-