private void generateGatewayEventFilter(GatewayEventFilter gef) throws SAXException { handler.startElement("", GATEWAY_EVENT_FILTER, GATEWAY_EVENT_FILTER, EMPTY); String className = gef.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (gef instanceof Declarable2) { props = ((Declarable2)gef).getConfig(); generate(props, null); } handler.endElement("", GATEWAY_EVENT_FILTER, GATEWAY_EVENT_FILTER); }
private void generateGatewayEventFilter(GatewayEventFilter gef) throws SAXException { handler.startElement("", GATEWAY_EVENT_FILTER, GATEWAY_EVENT_FILTER, EMPTY); String className = gef.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (gef instanceof Declarable2) { props = ((Declarable2)gef).getConfig(); generate(props, null); } handler.endElement("", GATEWAY_EVENT_FILTER, GATEWAY_EVENT_FILTER); }
private void generateGatewayTransportFilter(GatewayTransportFilter gef) throws SAXException { handler.startElement("", GATEWAY_TRANSPORT_FILTER, GATEWAY_TRANSPORT_FILTER, EMPTY); String className = gef.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (gef instanceof Declarable2) { props = ((Declarable2)gef).getConfig(); generate(props, null); } handler.endElement("", GATEWAY_TRANSPORT_FILTER, GATEWAY_TRANSPORT_FILTER); } //
private void generateGatewayTransportFilter(GatewayTransportFilter gef) throws SAXException { handler.startElement("", GATEWAY_TRANSPORT_FILTER, GATEWAY_TRANSPORT_FILTER, EMPTY); String className = gef.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (gef instanceof Declarable2) { props = ((Declarable2)gef).getConfig(); generate(props, null); } handler.endElement("", GATEWAY_TRANSPORT_FILTER, GATEWAY_TRANSPORT_FILTER); } //
/** * Generate XML for partition-resolver element in PartitionedRegion Attributes */ private void generate(String kind, PartitionResolver rr) throws SAXException { if (rr == null) return; handler.startElement("", kind, kind, EMPTY); String className = rr.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (rr instanceof Declarable2) { props = ((Declarable2) rr).getConfig(); generate(props, null); } handler.endElement("", kind, kind); }
/** * Generate XML for partition-resolver element in PartitionedRegion Attributes */ private void generate(String kind, PartitionResolver rr) throws SAXException { if (rr == null) return; handler.startElement("", kind, kind, EMPTY); String className = rr.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (rr instanceof Declarable2) { props = ((Declarable2) rr).getConfig(); generate(props, null); } handler.endElement("", kind, kind); }
/** * Generate XML for partition-listener element in PartitionedRegion Attributes */ private void generate(String kind, PartitionListener pl) throws SAXException { if (pl == null) return; handler.startElement("", kind, kind, EMPTY); String className = pl.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (pl instanceof Declarable2) { props = ((Declarable2)pl).getConfig(); generate(props, null); } handler.endElement("", kind, kind); }
/** * Generate XML for partition-listener element in PartitionedRegion Attributes */ private void generate(String kind, PartitionListener pl) throws SAXException { if (pl == null) return; handler.startElement("", kind, kind, EMPTY); String className = pl.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (pl instanceof Declarable2) { props = ((Declarable2)pl).getConfig(); generate(props, null); } handler.endElement("", kind, kind); }
Properties props = ((Declarable2) d).getConfig(); generate(props, null);
Properties props = ((Declarable2) d).getConfig(); generate(props, null);
/** * Generates XML for a <code>CacheCallback</code> */ private void generate(String kind, Object callback) throws SAXException { if (callback == null) { return; } handler.startElement("", kind, kind, EMPTY); String className = callback.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (callback instanceof Declarable2) { props = ((Declarable2) callback).getConfig(); } else if (callback instanceof ReflectionBasedAutoSerializer) { props = ((ReflectionBasedAutoSerializer) callback).getConfig(); } else if (callback instanceof Declarable && cache instanceof GemFireCacheImpl) { props = ((GemFireCacheImpl) cache).getDeclarableProperties((Declarable) callback); } generate(props, null); handler.endElement("", kind, kind); }
/** * Generates XML for a <code>CacheCallback</code> */ private void generate(String kind, Object callback) throws SAXException { if (callback == null) { return; } handler.startElement("", kind, kind, EMPTY); String className = callback.getClass().getName(); handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY); handler.characters(className.toCharArray(), 0, className.length()); handler.endElement("", CLASS_NAME, CLASS_NAME); Properties props = null; if (callback instanceof Declarable2) { props = ((Declarable2) callback).getConfig(); } else if (callback instanceof BridgeWriter) { props = ((BridgeWriter) callback).getProperties(); } else if (callback instanceof BridgeLoader) { props = ((BridgeLoader) callback).getProperties(); } else if (callback instanceof ReflectionBasedAutoSerializer) { props = ((ReflectionBasedAutoSerializer) callback).getConfig(); } else if (callback instanceof Declarable && cache instanceof GemFireCacheImpl) { props = ((GemFireCacheImpl) cache).getDeclarableProperties((Declarable) callback); } generate(props, null); handler.endElement("", kind, kind); }
Properties listenerProperties = new Properties(); if (listener instanceof Declarable2) { listenerProperties = ((Declarable2) listener).getConfig();
Properties listenerProperties = new Properties(); if (listener instanceof Declarable2) { listenerProperties = ((Declarable2) listener).getConfig();