/** * @param deployName * An optional deploy name. * @return Creates and returns a new {@link LimbusStaging} object. */ public static LimbusStaging create(String deployName) { return new LimbusStaging(deployName); }
/** * Adds the specified classes to the Limbus plugin deployment. * * @param classes * The classes to add to the classpath. * @return Returns this {@link LimbusStaging} for method chainging. */ public LimbusStaging andClasses(Class<?>... classes) { getOrCreateDeployment().addClasses(classes); return this; }
/** * Grants a set of default permission for the classpath of the deployment. * * @return Returns this object for method chainging. */ public LimbusStaging grantDefaultPermissions() { stage.addAllPermission(getDefaultPermissions()); return this; }
/** * Use this method to generate a dump of all files contained in the current deployment archive that is deployed to the * Limbus engine. * * @return Returns this object for method chainging. */ public LimbusStaging dumpDeploymentContent() { JavaArchive deployment = getOrCreateDeployment(); System.out.println("Printing out the deployment archive content:"); deployment.writeTo(System.out, Formatters.VERBOSE); System.out.println(); return this; }
JavaArchive deployment = getOrCreateDeployment(); CodeSource codeSource = someClasspathMember.getProtectionDomain() .getCodeSource();
/** * @return Creates and returns a new {@link LimbusStaging} object using an empty name for the deployment.. */ public static LimbusStaging create() { return new LimbusStaging(UUID.randomUUID() .toString()); }