public boolean isComponent() { return deploymentContext.isComponent(); }
public boolean isComponent() { return deploymentContext.isComponent(); }
public Object getAttachment(String name) { return getAttachmentInternal(name, getDeploymentContext().isComponent()); }
public Map<String, Object> getAttachments() { return getAttachmentsInternal(getDeploymentContext().isComponent()); }
public boolean hasAttachments() { return hasAttachmentsInternal(getDeploymentContext().isComponent()); }
public ScopeKey getComponentScope(DeploymentContext context) { if (context == null) throw new IllegalArgumentException("Null context"); DeploymentContext parent = context; while (parent.isComponent()) { parent = context.getParent(); if (parent == null) throw new IllegalStateException("Component has no regular parent?"); } ScopeKey result = parent.getScope().clone(); result.addScope(CommonLevels.INSTANCE, context.getName()); return result; }
public ScopeKey getComponentScope(DeploymentContext context) { if (context == null) throw new IllegalArgumentException("Null context"); DeploymentContext parent = context; while (parent.isComponent()) { parent = context.getParent(); if (parent == null) throw new IllegalStateException("Component has no regular parent?"); } ScopeKey result = parent.getScope().clone(); result.addScope(CommonLevels.INSTANCE, context.getName()); return 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 (isRelevant(deployer, unit, context.isTopLevel(), context.isComponent())) deployer.undeploy(unit); else if (log.isTraceEnabled())
if (isRelevant(deployer, unit, context.isTopLevel(), context.isComponent())) deployer.undeploy(unit); else if (log.isTraceEnabled())
if (isRelevant(deployer, unit, context.isTopLevel(), context.isComponent()))
if (isRelevant(deployer, unit, context.isTopLevel(), context.isComponent()))
public boolean hasAttachments() { if (deploymentContext.getTransientAttachments().hasAttachments()) return true; else if (deploymentContext.getTransientManagedObjects().hasAttachments()) return true; else if (deploymentContext.getPredeterminedManagedObjects().hasAttachments()) return true; if (deploymentContext.isComponent()) return deploymentContext.getParent().getDeploymentUnit().hasAttachments(); return false; }
public Object getAttachment(String name) if (deploymentContext.isComponent() == false) parent = null; Object result = deploymentContext.getPredeterminedManagedObjects().getAttachment(name);