The formatting got a bit wonky on the code snippet you provided, but
if your GroovyRecordSetWriterFactory extends
AbstractControllerService, it should have access to the getProperty()
method. Try without the context, just
"getProperty(CACHE_CLIENT).asControllerService(DistributedMapCacheClient)"
O
Matt,
So we learned somebut not enough there.
This snippet of code:
@Override
def init(context) {
mapCacheClient =
context.getProperty(CACHE_CLIENT).asControllerService(DistributedMapCacheClient)
The problem seems to get that the "getProperty().asController
Dave,
You can't override the initialize() method as it is final, but note
that it calls the init() method at the bottom, that's the method you
can override, its signature is:
protected void init(final ControllerServiceInitializationContext
config) throws InitializationException
so instead of "de
All,
I am drafting a co-worker to go try and understand where this is getting
hung up, but if anyone has any additional information/thoughts on how to get
this working, I would greatly appreciate it.
Matt, thanks so much for your help, if you have an additional epiphany, let
me know!
Dave
--
Matt,
The method "initialization" in AbstractControllerService is this:
@Override
public final void initialize(final ControllerServiceInitializationContext
context) throws InitializationException {
this.identifier = context.getIdentifier();
serviceLookup = context.getControllerServiceLookup();
Matt,
This is very cool of you, and I feel like this is close, but once again
hanging up on my inexperience with the Java environment for getting the
pipes all lined up.
Below is my entire code. Note you originally had :
@Override
def init(context) {
mapCacheClient =