From a7cefce58cdb0f7f2d0868a1d5ee2f24f3890646 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Mon, 22 Sep 2014 16:01:18 +0200 Subject: ItemPath.fromUUIDString unnecessary as ItemPath(String) supports both plain UUIDs and an /entity prefix. Tightened that up and removed the fromUUIDString method for a simpler API. Also switched AgentPath(String) to a path argument for consistency. New AgentPaths should be created with AgentPath(new ItemPath(), String) instead. --- src/main/java/com/c2kernel/process/Bootstrap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/c2kernel/process/Bootstrap.java') diff --git a/src/main/java/com/c2kernel/process/Bootstrap.java b/src/main/java/com/c2kernel/process/Bootstrap.java index 1b9e027..eef118d 100644 --- a/src/main/java/com/c2kernel/process/Bootstrap.java +++ b/src/main/java/com/c2kernel/process/Bootstrap.java @@ -110,7 +110,7 @@ public class Bootstrap ItemPath itemPath = null; String[] itemParts = thisItem.split("/"); if (itemParts.length == 3) { // includes UUID - itemPath = ItemPath.fromUUIDString(itemParts[2]); + itemPath = new ItemPath(itemParts[2]); } String itemType = itemParts[0]; String itemName = itemParts[1]; @@ -298,7 +298,7 @@ public class Bootstrap Logger.msg("Bootstrap.checkAgent() - User '"+name+"' not found. Creating."); try { - AgentPath agentPath = new AgentPath(ItemPath.fromUUIDString(uuid), name); + AgentPath agentPath = new AgentPath(new ItemPath(uuid), name); agentPath.setPassword(pass); Gateway.getCorbaServer().createAgent(agentPath); lookup.add(agentPath); -- cgit v1.2.3