- @Property
- private SchemaService schemaService;
-
- @Property
- private extension ControllerContext schemaContext;
-
-
- def void init() {
- checkState(dataService !== null)
- checkState(schemaService !== null)
- schemaContext = new ControllerContext();
- schemaContext.schemas = schemaService.globalContext;
+ private new() {
+ if (INSTANCE != null) {
+ throw new IllegalStateException("Already instantiated");
+ }
+ }
+
+ def static BrokerFacade getInstance() {
+ return INSTANCE