- Common ways to obtain Destination
private void myMethod () {Destination d =
Service service;String id;service.findDestinationById(id)
- Smart code suggestions by Codota
}
protected Destination buildDestination() { List<String> channelIds = new ArrayList<String>(); channelIds.add("graniteamf"); Destination destination = new Destination(source, channelIds, new XMap(), roles, null, null); if (securizer != null) destination.setSecurizer(securizer); return destination; } }
protected Destination buildDestination(Adapter adapter) { List<String> channelIds = new ArrayList<String>(); channelIds.add("gravityamf"); Destination destination = new Destination(id, channelIds, new XMap(), roles, adapter, null); destination.getProperties().put("no-local", String.valueOf(noLocal)); destination.getProperties().put("session-selector", String.valueOf(sessionSelector)); if (getSecurizerClassName() != null) destination.getProperties().put("securizer", securizerClassName); if (getSecurizer() != null) destination.setSecurizer(getSecurizer()); return destination; } }
destination.setSecurizer(securizer);