public boolean hasAnnotationInArchiveWithNoScanning(ReadableArchive archive) throws IOException { Types types = null; if (archive.getParentArchive() != null) { types = archive.getParentArchive().getExtraData(Types.class); } else { types = archive.getExtraData(Types.class);
private ModuleInfo prepareBundle(final ModuleDescriptor md, Application application, final ExtendedDeploymentContext bundleContext) throws Exception { List<EngineInfo> orderedContainers = null; ProgressTracker tracker = bundleContext.getTransientAppMetaData(ExtendedDeploymentContext.TRACKER, ProgressTracker.class); try { // let's get the previously stored list of sniffers Hashtable<String, Collection<Sniffer>> sniffersTable = bundleContext.getSource().getParentArchive().getExtraData(Hashtable.class); Collection<Sniffer> sniffers = sniffersTable.get(md.getArchiveUri()); // let's get the list of containers interested in this module orderedContainers = deployment.setupContainerInfos(null, sniffers, bundleContext); if (orderedContainers == null) { return null; } } catch(Exception e) { deplLogger.log(Level.WARNING, ERROR_OCCURRED, e); throw e; } return deployment.prepareModule(orderedContainers, md.getArchiveUri(), bundleContext, tracker); }
public boolean hasAnnotationInArchiveWithNoScanning(ReadableArchive archive) throws IOException { Types types = null; if (archive.getParentArchive() != null) { types = archive.getParentArchive().getExtraData(Types.class); } else { types = archive.getExtraData(Types.class);
List<URI> classPathURIs = handler.getClassPathURIs(archive); classPathURIs.addAll(getLibraryJarURIs(app, archive)); Types types = archive.getParentArchive().getExtraData(Types.class); DeployCommandParameters parameters = archive.getParentArchive().getArchiveMetaData(DeploymentProperties.COMMAND_PARAMS, DeployCommandParameters.class); Properties appProps = archive.getParentArchive().getArchiveMetaData(DeploymentProperties.APP_PROPS, Properties.class); Hashtable sniffersTable = archive.getParentArchive().getExtraData(Hashtable.class); if (sniffersTable == null) { sniffersTable = new Hashtable<String, Collection<Sniffer>>();
parser = archive.getParentArchive().getExtraData(Parser.class); } else { parser = archive.getExtraData(Parser.class);
parser = archive.getParentArchive().getExtraData(Parser.class); } else { parser = archive.getExtraData(Parser.class);