@Override public String toString() { return "GraniteChannel{" + "id=" + id + ", uri=" + endPoint.getUri() + ", context=" + context + ", gravity=true" + '}'; } }
public ServicesConfig(InputStream customConfigIs, Configuration configuration, boolean scan) throws IOException, SAXException { if (customConfigIs != null) loadConfig(customConfigIs); if (scan) scan(configuration); }
public static Channel forElement(XMap element) { String id = element.get("@id"); String className = element.get("@class"); XMap endPointElt = element.getOne("endpoint"); if (endPointElt == null) throw new RuntimeException("Excepting a 'endpoint' element in 'channel-definition': " + id); EndPoint endPoint = EndPoint.forElement(endPointElt); XMap properties = new XMap(element.getOne("properties")); return new Channel(id, className, endPoint, properties); } }
protected static boolean getChannelProperty(String channelId, ChannelConfig channelConfig, String name) { if (channelId != null && channelConfig != null) return channelConfig.getChannelProperty(channelId, name); return false; }
@Override public String toString() { return "Service{" + "id=" + id + ", class=" + className + ", messageTypes=" + messageTypes + ", defaultAdapter=" + adapter.getId() + '}'; } }
@Override public String toString() { return "Destination{" + "id='" + id + '\'' + ", service='" + service.getId() + '\'' + '}'; } }
public void remove() { if (removeListener != null) removeListener.destinationRemoved(this); }
public static EndPoint forElement(XMap element) { String uri = element.get("@uri"); String className = element.get("@class"); return new EndPoint(uri, className); } }
public static Factory forElement(XMap element) { String id = element.get("@id"); String className = element.get("@class"); XMap properties = new XMap(element.getOne("properties")); return new Factory(id, className, properties); } }
public static Adapter forElement(XMap element) { String id = element.get("@id"); String className = element.get("@class"); XMap properties = new XMap(element.getOne("properties")); return new Adapter(id, className, properties); } }
@Override public Adapter getAdapter() { return service.getDefaultAdapter(); }
public static synchronized ServicesConfig loadConfig(ServletContext context) throws ServletException { return loadConfig(context, false); }
public ServicesConfig(InputStream customConfigIs, Configuration configuration, boolean scan) throws IOException, SAXException { if (customConfigIs != null) loadConfig(customConfigIs); if (scan) scan(configuration); }
public static Channel forElement(XMap element) { String id = element.get("@id"); String className = element.get("@class"); XMap endPointElt = element.getOne("endpoint"); if (endPointElt == null) throw new RuntimeException("Excepting a 'endpoint' element in 'channel-definition': " + id); EndPoint endPoint = EndPoint.forElement(endPointElt); XMap properties = new XMap(element.getOne("properties")); return new Channel(id, className, endPoint, properties); } }
protected static boolean getChannelProperty(String channelId, ChannelConfig channelConfig, String name) { if (channelId != null && channelConfig != null) return channelConfig.getChannelProperty(channelId, name); return false; }
public void remove() { if (removeListener != null) removeListener.destinationRemoved(this); }
@Override public String toString() { return "GraniteChannel{" + "id=" + id + ", uri=" + endPoint.getUri() + ", context=" + context + ", gravity=false" + '}'; } }
protected static boolean getChannelProperty(String channelId, ChannelConfig channelConfig, String name) { if (channelId != null && channelConfig != null) return channelConfig.getChannelProperty(channelId, name); return false; }