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. --- .../lifecycle/instance/predefined/agent/CreateAgentFromDescription.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/c2kernel/lifecycle/instance/predefined/agent') diff --git a/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java b/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java index 7683143..088bee1 100644 --- a/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java +++ b/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java @@ -69,7 +69,7 @@ public class CreateAgentFromDescription extends CreateItemFromDescription // generate new entity key Logger.msg(6, "CreateItemFromDescription - Requesting new agent path"); - AgentPath newAgentPath = new AgentPath(newName); + AgentPath newAgentPath = new AgentPath(new ItemPath(), newName); // resolve the item factory Logger.msg(6, "CreateItemFromDescription - Resolving item factory"); -- cgit v1.2.3