public void deployed() { parent.deployed(); }
public void deployed() { parent.deployed(); }
public ClassLoader getClassLoader() { ClassLoader cl = deploymentContext.getClassLoader(); if (cl == null) throw new IllegalStateException("ClassLoader has not been set"); deploymentContext.deployed(); return cl; }
public ClassLoader getClassLoader() { ClassLoader cl = deploymentContext.getClassLoader(); if (cl == null) throw new IllegalStateException("ClassLoader has not been set"); deploymentContext.deployed(); return cl; }
public <T> Set<? extends T> getAllMetaData(Class<T> type) { if (type == null) throw new IllegalArgumentException("Null type"); Set<T> result = new HashSet<T>(); Map<String, Object> attachments = getAttachments(); for (Object object : attachments.values()) { if (type.isInstance(object)) { T t = type.cast(object); result.add(t); } } if (result.isEmpty() == false) deploymentContext.deployed(); return result; }
public <T> Set<? extends T> getAllMetaData(Class<T> type) { if (type == null) throw new IllegalArgumentException("Null type"); Set<T> result = new HashSet<T>(); Map<String, Object> attachments = getAttachments(); for (Object object : attachments.values()) { if (type.isInstance(object)) { T t = type.cast(object); result.add(t); } } if (result.isEmpty() == false) deploymentContext.deployed(); return result; }
public Object addAttachment(String name, Object attachment) { deploymentContext.deployed(); return deploymentContext.getTransientAttachments().addAttachment(name, attachment); }
public Object addAttachment(String name, Object attachment) { DeploymentContext deploymentContext = getDeploymentContext(); deploymentContext.deployed(); return deploymentContext.getTransientAttachments().addAttachment(name, attachment); }
private Map<String, Object> getAttachmentsInternal(boolean checkParent) { DeploymentContext deploymentContext = getDeploymentContext(); DeploymentContext parent = deploymentContext.getParent(); if (checkParent == false) parent = null; HashMap<String, Object> result = new HashMap<String, Object>(); if (parent != null) result.putAll(parent.getTransientAttachments().getAttachments()); result.putAll(deploymentContext.getTransientAttachments().getAttachments()); if (parent != null) result.putAll(parent.getTransientManagedObjects().getAttachments()); result.putAll(deploymentContext.getTransientManagedObjects().getAttachments()); if (parent != null) result.putAll(parent.getPredeterminedManagedObjects().getAttachments()); result.putAll(deploymentContext.getPredeterminedManagedObjects().getAttachments()); if (result.isEmpty() == false) deploymentContext.deployed(); return Collections.unmodifiableMap(result); }
public Map<String, Object> getAttachments() { DeploymentContext parent = deploymentContext.getParent(); if (deploymentContext.isComponent() == false) parent = null; HashMap<String, Object> result = new HashMap<String, Object>(); if (parent != null) result.putAll(parent.getTransientAttachments().getAttachments()); result.putAll(deploymentContext.getTransientAttachments().getAttachments()); if (parent != null) result.putAll(parent.getTransientManagedObjects().getAttachments()); result.putAll(deploymentContext.getTransientManagedObjects().getAttachments()); if (parent != null) result.putAll(parent.getPredeterminedManagedObjects().getAttachments()); result.putAll(deploymentContext.getPredeterminedManagedObjects().getAttachments()); if (result.isEmpty() == false) deploymentContext.deployed(); return Collections.unmodifiableMap(result); }
if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; deploymentContext.deployed(); return result;
if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; if (result != null) deploymentContext.deployed(); return result; deploymentContext.deployed(); return result;