/** * Compares two KernelControllerContextCreators' relative orders * @param o1 The first KernelContextCreator * @param o2 The second KernelContextCreator * @return An integer as per the {@link Comparator#compare(Object, Object)} contract */ public int compare(BeanMetaDataDeployerPlugin o1, BeanMetaDataDeployerPlugin o2) { if (o1.getRelativeOrder() < o2.getRelativeOrder()) return -1; if (o1.getRelativeOrder() > o2.getRelativeOrder()) return 1; return 0; } }
public void writeExternal(ObjectOutput out) throws IOException { OutputStream os = new OutputWrapper(out); getManifest().write(os); }
public String getMainAttribute(String name) { return get(getManifest().getMainAttributes(), name); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { InputStream is = new InputWrapper(in); manifest = new Manifest(is); }
KernelControllerContext context = plugin.createContext(controller, unit, deployment); if (context != null)
@Override public void undeploy(DeploymentUnit unit, BeanMetaData deployment) { BeanMetaDataDeployerPlugin plugin = deployedWithPlugin.remove(deployment.getName()); if (plugin == null || plugin.uninstallContext(controller, unit, deployment) == false) { ControllerContext context = controller.uninstall(deployment.getName()); removeContext(context, unit.getParent()); } // Remove any classloader metadata we added (not necessary if we clone above) ClassLoaderMetaData classLoader = deployment.getClassLoader(); if (classLoader instanceof DeploymentClassLoaderMetaData) deployment.setClassLoader(null); }
public String getMainAttribute(String name) { return get(getManifest().getMainAttributes(), name); }
public void writeExternal(ObjectOutput out) throws IOException { OutputStream os = new OutputWrapper(out); getManifest().write(os); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { InputStream is = new InputWrapper(in); manifest = new Manifest(is); }
public String getAttribute(String attributesName, String name) { return get(getManifest().getAttributes(attributesName), name); }
public String getAttribute(String attributesName, String name) { return get(getManifest().getAttributes(attributesName), name); }
public String getEntry(String entryName, String name) { Map<String,Attributes> entries = getManifest().getEntries(); if (entries != null) { return get(entries.get(entryName), name); } return null; }
public String getEntry(String entryName, String name) { Map<String,Attributes> entries = getManifest().getEntries(); if (entries != null) { return get(entries.get(entryName), name); } return null; }