Searched refs:archive (Results 1 - 25 of 180) sorted by relevance

12345678

/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/deployment/archive/
H A DArchiveHandler.java41 package org.glassfish.api.deployment.archive;
50 * ArchiveHandlers are handling certain archive type. An archive has a unique type which is usually defines how
51 * classes and resources are loaded from the archive.
64 * Returns the default name by which the specified archive can be
69 * @param archive the archive for which to provide the default name
70 * @return the default name for identifying the specified archive
72 public String getDefaultApplicationName(ReadableArchive archive); argument
74 public String getDefaultApplicationName(ReadableArchive archive, DeploymentContex argument
84 getVersionIdentifier(ReadableArchive archive) argument
95 handles(ReadableArchive archive) argument
125 getManifest(ReadableArchive archive) argument
[all...]
H A DCompositeHandler.java41 package org.glassfish.api.deployment.archive;
47 * get a chance at looking at the archive before the archive handlers do
49 * The main reason for this tag interface is that some archive handlers might
50 * be tricked into thinking a composite archive is theirs when in fact they only
54 * contains some .jsp files. The archive handler responsible for handling the war
56 * jsp files, yet in reality, it only owns one of the sub archive bundled inside
H A DReadableArchiveFactory.java41 package org.glassfish.api.deployment.archive;
62 * @return returns null if it can not create archive
/glassfish-3.1.2/web/weld-integration/src/main/java/org/glassfish/weld/
H A DWeldSniffer.java56 import org.glassfish.api.deployment.archive.ReadableArchive;
78 * Returns true if the archive contains beans.xml as defined by packaging rules of Weld
81 public boolean handles(ReadableArchive archive, ClassLoader loader) { argument
84 // a Weld archive
86 if (isEntryPresent(archive, WEB_INF)) {
87 isWeldArchive = isEntryPresent(archive, WEB_INF_BEANS_XML);
91 if (isEntryPresent(archive, WEB_INF_LIB)) {
92 isWeldArchive = scanLibDir(archive, WEB_INF_LIB);
100 String archiveName = archive.getName();
102 isWeldArchive = isEntryPresent(archive, META_INF_BEANS_XM
117 scanLibDir(ReadableArchive archive, String libLocation) argument
138 isEntryPresent(ReadableArchive archive, String entry) argument
[all...]
H A DWeldCompositeSniffer.java52 import org.glassfish.api.deployment.archive.ReadableArchive;
76 // This method returns true if at least one /lib jar is a Weld archive
80 private boolean scanLibDir(ReadableArchive archive, String libLocation, DeploymentContext context) { argument
83 Enumeration<String> entries = archive.entries(libLocation);
90 ReadableArchive jarInLib = archive.getSubArchive(entryName);
102 private boolean isEntryPresent(ReadableArchive archive, String entry) { argument
105 entryPresent = archive.exists(entry);
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/
H A DDescriptorFactory.java44 import org.glassfish.api.deployment.archive.ReadableArchive;
45 import org.glassfish.api.deployment.archive.ArchiveHandler;
46 import org.glassfish.api.deployment.archive.Archive;
82 Archive archive; field in class:DescriptorFactory.ResultHolder
104 * Returns the parsed DOL object from archive
106 * @param archiveFile original archive file
108 * should be expanded under in case of archive deployment
114 ReadableArchive archive = null;
118 archive = archiveFactory.openArchive(archiveFile);
119 ArchiveHandler archiveHandler = deployment.getArchiveHandler(archive);
[all...]
/glassfish-3.1.2/common/scattered-archive-api/src/main/java/org/glassfish/embeddable/archive/
H A DScatteredEnterpriseArchive.java41 package org.glassfish.embeddable.archive;
77 * <a name="l66"> </span><span class="s0">// Create a scattered enterprise archive.</span><span class="s1">
78 * <a name="l67"> ScatteredEnterpriseArchive archive = </span><span class="s2">new </span><span class="s1">ScatteredEnterpriseArchive(</span><span class="s4">&quot;testapp&quot;</span><span class="s1">);
80 * <a name="l69"> archive.addMetadata(</span><span class="s2">new </span><span class="s1">File(</span><span class="s4">&quot;src&quot;</span><span class="s1">, </span><span class="s4">&quot;application.xml&quot;</span><span class="s1">));
81 * <a name="l70"> </span><span class="s0">// Add scattered web module to the scattered enterprise archive.</span><span class="s1">
82 * <a name="l71"> </span><span class="s0">// src/application.xml references Web module as &quot;scattered.war&quot;. Hence specify the name while adding the archive.</span><span class="s1">
83 * <a name="l72"> archive.addArchive(webmodule.toURI(), </span><span class="s4">&quot;scattered.war&quot;</span><span class="s1">);
85 * <a name="l74"> archive.addArchive(</span><span class="s2">new </span><span class="s1">File(</span><span class="s4">&quot;lib&quot;</span><span class="s1">, </span><span class="s4">&quot;mylibrary.jar&quot;</span><span class="s1">));
87 * <a name="l76"> </span><span class="s0">// src/application.xml references EJB module as &quot;ejb.jar&quot;. Hence specify the name while adding the archive.</span><span class="s1">
88 * <a name="l77"> archive
184 addArchive(File archive) argument
203 addArchive(File archive, String name) argument
[all...]
H A DAssembler.java41 package org.glassfish.embeddable.archive;
68 public URI assemble(ScatteredArchive archive) throws IOException { argument
69 switch (archive.type) {
71 return assembleWAR(archive.name, archive.rootDirectory,
72 archive.classpaths, archive.metadatas);
74 return assembleJAR(archive.name, archive.rootDirectory,
75 archive
83 assemble(ScatteredEnterpriseArchive archive) argument
[all...]
/glassfish-3.1.2/common/internal-api/src/main/java/org/glassfish/internal/embedded/
H A DEmbeddedDeployer.java43 import org.glassfish.api.deployment.archive.ReadableArchive;
87 * @param archive archive or directory of the application
91 public String deploy(File archive, DeployCommandParameters params); argument
94 * Deploys an archive abstraction to the servers passing the deployment command parameters
96 * @param archive archive or directory of the application
100 public String deploy(ReadableArchive archive, DeployCommandParameters params); argument
/glassfish-3.1.2/common/internal-api/src/main/java/org/glassfish/internal/deployment/
H A DGenericHandler.java44 import org.glassfish.api.deployment.archive.ArchiveHandler;
45 import org.glassfish.api.deployment.archive.ReadableArchive;
46 import org.glassfish.api.deployment.archive.WritableArchive;
80 * @throws IOException when the archive is corrupted
111 * Returns the default application name usable for identifying the archive.
114 * the archive's URI. The archive's name depends on the type of archive
120 * @param archive the archive fo
124 getDefaultApplicationName(ReadableArchive archive, DeploymentContext context) argument
160 getDefaultApplicationName(ReadableArchive archive) argument
171 getVersionIdentifier(ReadableArchive archive) argument
183 getManifest(ReadableArchive archive) argument
[all...]
H A DApplicationInfoProvider.java44 import org.glassfish.api.deployment.archive.ReadableArchive;
56 public String getNameFor(ReadableArchive archive, argument
60 * return the library URIs for the given archive
/glassfish-3.1.2/common/annotation-framework/src/main/java/org/glassfish/apf/impl/
H A DProcessingContextImpl.java47 import org.glassfish.api.deployment.archive.ReadableArchive;
59 protected ReadableArchive archive; field in class:ProcessingContextImpl
71 return archive;
74 public void setArchive(ReadableArchive archive) { argument
75 this.archive = archive;
/glassfish-3.1.2/deployment/common/src/main/java/com/sun/enterprise/deploy/shared/
H A DArchiveFactory.java46 import org.glassfish.api.deployment.archive.ReadableArchive;
47 import org.glassfish.api.deployment.archive.ReadableArchiveFactory;
48 import org.glassfish.api.deployment.archive.WritableArchive;
116 * protocol will define the type of desired archive (jar, file, etc)
117 * @param path to the archive
118 * @return the apropriate archive
128 WritableArchive archive = habitat.getComponent(WritableArchive.class, protocol);
129 if (archive==null) {
130 logger.log(Level.SEVERE, "Cannot find an archive implementation for " + protocol);
134 archive
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/util/
H A DAnnotationDetector.java47 import org.glassfish.api.deployment.archive.ReadableArchive;
84 public boolean hasAnnotationInArchiveWithNoScanning(ReadableArchive archive) throws IOException { argument
86 if (archive.getParentArchive() != null) {
87 types = archive.getParentArchive().getExtraData(Types.class);
89 types = archive.getExtraData(Types.class);
94 return hasAnnotationInArchive(archive);
98 uris.add(archive.getURI());
100 List<URL> libraryJars = DOLUtils.getLibraryJars(null, archive);
134 public boolean hasAnnotationInArchive(ReadableArchive archive) throws IOException { argument
136 Enumeration<String> entries = archive
148 containsAnnotation(ReadableArchive archive, String entryName) argument
[all...]
/glassfish-3.1.2/deployment/common/src/main/java/org/glassfish/deployment/common/
H A DDeploymentUtils.java48 import org.glassfish.api.deployment.archive.ReadableArchive;
49 import org.glassfish.api.deployment.archive.ArchiveHandler;
199 // checking whether the archive is a web archive
200 public static boolean isWebArchive(ReadableArchive archive) { argument
202 if (Util.getURIName(archive.getURI()).endsWith(WAR_EXTENSION)) {
206 if (archive.exists(WEB_INF)) {
209 Enumeration<String> entries = archive.entries();
251 public static boolean hasResourcesXML(ReadableArchive archive){ argument
255 if(isEAR(archive)){
294 isRAR(ReadableArchive archive) argument
313 isEAR(ReadableArchive archive) argument
336 isEARFromIntrospecting(ReadableArchive archive) argument
440 getManifestLibraries(ReadableArchive archive) argument
444 getManifestLibraries(ReadableArchive archive, Manifest manifest) argument
463 getExternalLibraries(ReadableArchive archive) argument
[all...]
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/server/
H A DReadableArchiveScannerAdapter.java45 import org.glassfish.api.deployment.archive.ReadableArchive;
65 * ArchiveAdapter for DOL readable archive instances
71 final ReadableArchive archive; field in class:ReadableArchiveScannerAdapter
76 * Can be null or can be pointing to the archive adapter in which
83 * the class-model to parse so we can close our archive once all
101 public ReadableArchiveScannerAdapter(Parser parser, ReadableArchive archive) { argument
102 this.archive = archive;
104 this.uri = archive.getURI();
108 private ReadableArchiveScannerAdapter(ReadableArchiveScannerAdapter parent, ReadableArchive archive, UR argument
233 InternalJarAdapter(ReadableArchiveScannerAdapter parent, ReadableArchive archive, URI uri) argument
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/annotation/impl/
H A DAppClientScanner.java47 import org.glassfish.api.deployment.archive.ReadableArchive;
81 public void process(ReadableArchive archive, ApplicationClientDescriptor bundleDesc, ClassLoader classLoader, Parser parser) throws IOException { argument
83 doProcess(archive, bundleDesc, classLoader);
84 completeProcess(bundleDesc, archive);
108 private void doProcess(ReadableArchive archive, ApplicationClientDescriptor desc, argument
111 AnnotationUtils.getLogger().fine("archiveFile is " + archive.getURI().toASCIIString());
129 if (detector.hasAnnotationInArchive(archive)) {
130 if (archive instanceof FileArchive) {
131 addScanDirectory(new File(archive.getURI()));
132 } else if (archive instanceo
[all...]
/glassfish-3.1.2/web/war-util/src/main/java/com/sun/enterprise/glassfish/web/
H A DScatteredWarHandler.java46 import org.glassfish.api.deployment.archive.ArchiveHandler;
47 import org.glassfish.api.deployment.archive.ReadableArchive;
69 return "scattered-archive";
73 public boolean handles(ReadableArchive archive) { argument
74 return (archive instanceof ScatteredArchive &&
75 ((ScatteredArchive) archive).type()==ScatteredArchive.Builder.type.war);
80 ScatteredArchive archive = (ScatteredArchive) context.getSource();
84 File base = archive.getResourcesDir();
86 File sunWeb = archive.getFile("WEB-INF/sun-web.xml");
93 for (URL url : archive
[all...]
/glassfish-3.1.2/connectors/connectors-connector/src/main/java/com/sun/enterprise/connectors/connector/module/
H A DResourcesSniffer.java45 import org.glassfish.api.deployment.archive.ReadableArchive;
75 public boolean handles(ReadableArchive archive, ClassLoader loader) { argument
76 return DeploymentUtils.hasResourcesXML(archive) && !DeploymentUtils.isEAR(archive)
77 && archive.getParentArchive() == null;
H A DResourcesCompositeSniffer.java44 import org.glassfish.api.deployment.archive.ReadableArchive;
72 * @param archive the file or directory to explore
76 public boolean handles(ReadableArchive archive, ClassLoader loader) { argument
77 return DeploymentUtils.isEAR(archive) && DeploymentUtils.hasResourcesXML(archive);
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/archivist/
H A DACCAppClientArchivist.java46 import org.glassfish.api.deployment.archive.ReadableArchive;
74 public void readRuntimeDeploymentDescriptor(ReadableArchive archive, ApplicationClientDescriptor descriptor) throws IOException, SAXParseException { argument
75 super.readRuntimeDeploymentDescriptor(archive, descriptor, false);
H A DWebFragmentArchivist.java52 import org.glassfish.api.deployment.archive.Archive;
53 import org.glassfish.api.deployment.archive.ReadableArchive;
63 * archive files (jar).
99 * descriptor file inside this archive or null if this archive
137 * @param archive the module archive
140 protected void postOpen(WebFragmentDescriptor descriptor, ReadableArchive archive) argument
143 super.postOpen(descriptor, archive);
145 ModuleContentValidator mdv = new ModuleContentValidator(archive);
169 getLibraries(Archive archive) argument
[all...]
H A DACCPersistenceArchivist.java60 import org.glassfish.api.deployment.archive.ReadableArchive;
88 public Object open(Archivist main, ReadableArchive archive, RootDeploymentDescriptor descriptor) throws IOException, SAXParseException { argument
91 "readPersistenceDeploymentDescriptors", "archive = {0}",
92 archive.getURI());
108 final Manifest mf = archive.getManifest();
111 * We must scan the app client archive itself.
113 URI clientURI = clientURI(archive, acDescr);
114 candidatePersistenceArchives.put(clientURI.toASCIIString(), archive);
129 addOtherDeployedScanTargets(archive, mainAttrs, candidatePersistenceArchives);
132 addOtherNondeployedScanTargets(archive, acDesc
155 clientURI(final ReadableArchive archive, final ApplicationClientDescriptor acDesc) argument
196 addOtherDeployedScanTargets( final ReadableArchive archive, final Attributes mainAttrs, Map<String,ReadableArchive> candidates) argument
233 addScanTargetsFromURIList(final ReadableArchive archive, final String relativeURIList, final Map<String,ReadableArchive> candidates) argument
[all...]
H A DArchivistFactory.java46 import org.glassfish.api.deployment.archive.ReadableArchive;
84 public Archivist getArchivist(ReadableArchive archive, argument
86 Archivist archivist = getPrivateArchivistFor(archive);
129 * @param archive
133 Archivist getPrivateArchivistFor(ReadableArchive archive) argument
136 Archivist a = getPrivateArchivistFor(archive, compositeArchivists);
138 a = getPrivateArchivistFor(archive, archivists);
143 private Archivist getPrivateArchivistFor(ReadableArchive archive, argument
148 if (a.hasStandardDeploymentDescriptor(archive) ||
149 a.hasRuntimeDeploymentDescriptor(archive)) {
[all...]
/glassfish-3.1.2/common/annotation-framework/src/main/java/org/glassfish/apf/
H A DProcessingContext.java45 import org.glassfish.api.deployment.archive.ReadableArchive;
71 * Returns the module archive that can be used to load files/resources,
75 *@return module archive
79 public void setArchive(ReadableArchive archive); argument

Completed in 54 milliseconds

12345678