public class GateAwareObject extends Object implements org.springframework.beans.factory.BeanFactoryAware
ensureGateInit()
to force the
initialisation of any Init
beans in the creating
BeanFactory
, thus ensuring that GATE will be properly
initialised. The method does nothing if the bean factory has not been
set (e.g. if the object is being used outside Spring). In this case,
we assume that GATE initialisation has already been handled
elsewhere.Constructor and Description |
---|
GateAwareObject() |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureGateInit()
To be called by subclasses to ensure that any
Init beans in
the containing bean factory (and its ancestor factories, if any)
have been initialised. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory factory) |
protected void ensureGateInit()
Init
beans in
the containing bean factory (and its ancestor factories, if any)
have been initialised.public void setBeanFactory(org.springframework.beans.factory.BeanFactory factory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
Copyright © 2023 GATE. All rights reserved.