public void setConduit(Conduit c) { put(ConduitSelector.class, new PreexistingConduitSelector(c, get(Endpoint.class))); }
public void setConduit(Conduit c) { put(ConduitSelector.class, new PreexistingConduitSelector(c, get(Endpoint.class))); }
public <T> T get(Class<T> key) { T t = key.cast(get(key.getName())); if (t == null) { if (key == Bus.class) { t = key.cast(bus); } else if (key == OperationInfo.class && bindingOp != null) { t = key.cast(bindingOp.getOperationInfo()); } else if (key == BindingOperationInfo.class) { t = key.cast(bindingOp); } else if (key == Endpoint.class) { t = key.cast(endpoint); } else if (key == Service.class) { t = key.cast(service); } else if (key == Binding.class) { t = key.cast(binding); } else if (key == BindingInfo.class && binding != null) { t = key.cast(binding.getBindingInfo()); } else if (key == InterfaceInfo.class && endpoint != null) { t = key.cast(endpoint.getEndpointInfo().getService().getInterface()); } else if (key == ServiceInfo.class && endpoint != null) { t = key.cast(endpoint.getEndpointInfo().getService()); } } return t; }
public <T> T get(Class<T> key) { T t = key.cast(get(key.getName())); if (t == null) { if (key == Bus.class) { t = key.cast(bus); } else if (key == OperationInfo.class && bindingOp != null) { t = key.cast(bindingOp.getOperationInfo()); } else if (key == BindingOperationInfo.class) { t = key.cast(bindingOp); } else if (key == Endpoint.class) { t = key.cast(endpoint); } else if (key == Service.class) { t = key.cast(service); } else if (key == Binding.class) { t = key.cast(binding); } else if (key == BindingInfo.class && binding != null) { t = key.cast(binding.getBindingInfo()); } else if (key == InterfaceInfo.class && endpoint != null) { t = key.cast(endpoint.getEndpointInfo().getService().getInterface()); } else if (key == ServiceInfo.class && endpoint != null) { t = key.cast(endpoint.getEndpointInfo().getService()); } } return t; }