/** * For serialization */ public AbstractDeploymentContext() { transientManagedObjects = new TrackingMutableAttachments(super.getTransientManagedObjects()); transientAttachments = new TrackingMutableAttachments(super.getTransientAttachments()); }
public Object addAttachment(String name, Object attachment) { Object result = delegate.addAttachment(name, attachment); if (result == null) created(name); else referenced(name); return result; }
public <T> T removeAttachment(String name, Class<T> expectedType) { T result = delegate.removeAttachment(name, expectedType); if (result != null) referenced(name); return result; }
if (tracking != null) Set<String> deployers = tracking.getReferenced(name); if (deployers != null) referenced = new ArrayList<String>(tracking.getReferenced(name)); builder.append("<td>").append(tracking.getCreated(name)).append("</td>"); else builder.append("<td/>");
public <T> T getAttachment(Class<T> type) { T result = delegate.getAttachment(type); if (result != null) referenced(type.getName()); return result; }
if (tracking != null) Set<String> deployers = tracking.getReferenced(name); if (deployers != null) referenced = new ArrayList<String>(tracking.getReferenced(name)); builder.append("<td>").append(tracking.getCreated(name)).append("</td>"); else builder.append("<td/>");
public <T> T addAttachment(String name, T attachment, Class<T> expectedType) { T result = delegate.addAttachment(name, attachment, expectedType); if (result == null) created(name); else referenced(name); return result; }
public <T> T getAttachment(String name, Class<T> expectedType) { T result = delegate.getAttachment(name, expectedType); if (result != null) referenced(name); return result; }
public <T> T addAttachment(Class<T> type, T attachment) { T result = delegate.addAttachment(type, attachment); if (result == null) created(type.getName()); else referenced(type.getName()); return result; }
public Object removeAttachment(String name) { Object result = delegate.removeAttachment(name); if (result != null) referenced(name); return result; }
public Object getAttachment(String name) { Object result = delegate.getAttachment(name); if (result != null) referenced(name); return result; }
public boolean isAttachmentPresent(Class<?> type) { boolean result = delegate.isAttachmentPresent(type); if (result) referenced(type.getName()); return result; }
public boolean isAttachmentPresent(String name, Class<?> expectedType) { boolean result = delegate.isAttachmentPresent(name, expectedType); if (result) referenced(name); return result; }
public boolean isAttachmentPresent(String name) { boolean result = delegate.isAttachmentPresent(name); if (result) referenced(name); return result; }
public <T> T removeAttachment(Class<T> type) { T result = delegate.removeAttachment(type); if (result != null) referenced(type.getName()); return result; }