/** * perform any post deployment descriptor reading action * * @param descriptor the deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(ApplicationClientDescriptor descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); runValidations(descriptor, archive); }
/** * perform any post deployment descriptor reading action * * @param descriptor the deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(ConnectorDescriptor descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); descriptor.visit(connectorValidator); }
/** * perform any post deployment descriptor reading action * * @param descriptor the deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(ApplicationClientDescriptor descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); postValidate(descriptor, archive); }
/** * perform any post deployment descriptor reading action * * @param descriptor deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(EjbBundleDescriptorImpl descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); postValidate(descriptor, archive); }
/** * perform any post deployment descriptor reading action * * @param descriptor deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(EjbBundleDescriptor descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor) descriptor; ModuleContentValidator mdv = new ModuleContentValidator(archive); ejbBundle.visit((EjbBundleVisitor)mdv); }
/** * perform any post deployment descriptor reading action * * @param descriptor the deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(WebBundleDescriptor descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); WebBundleDescriptor webBundle = (WebBundleDescriptor) descriptor; ModuleContentValidator mdv = new ModuleContentValidator(archive); webBundle.visit(mdv); }
/** * perform any post deployment descriptor reading action * * @param descriptor the deployment descriptor for the module * @param archive the module archive */ @Override protected void postOpen(WebFragmentDescriptor descriptor, ReadableArchive archive) throws IOException { super.postOpen(descriptor, archive); WebFragmentDescriptor webFragment = (WebFragmentDescriptor) descriptor; ModuleContentValidator mdv = new ModuleContentValidator(archive); webFragment.visit(mdv); }
/** * Creates the DOL object graph for an app for which the descriptor(s) * reside in one archive and the content resides in another. * <p> * This allows the app client container to use both the generated JAR * which contains the descriptors that are filled in during deployment and * also the developer's original JAR which contains the classes that * might be subject to annotation processing. * * @param descriptorArchive archive containing the descriptor(s) * @param contentArchive archive containing the classes, etc. * @param app owning DOL application (if any) * @return DOL object graph for the application * * @throws IOException * @throws SAXParseException */ public T open(final ReadableArchive descriptorArchive, final ReadableArchive contentArchive, final Application app) throws IOException, SAXParseException { setManifest(contentArchive.getManifest()); T descriptor = readDeploymentDescriptors(descriptorArchive, contentArchive, app); if (descriptor != null) { postOpen(descriptor, contentArchive); } return descriptor; }
/** * Creates the DOL object graph for an app for which the descriptor(s) * reside in one archive and the content resides in another. * <p> * This allows the app client container to use both the generated JAR * which contains the descriptors that are filled in during deployment and * also the developer's original JAR which contains the classes that * might be subject to annotation processing. * * @param descriptorArchive archive containing the descriptor(s) * @param contentArchive archive containing the classes, etc. * @param app owning DOL application (if any) * @return DOL object graph for the application * * @throws IOException * @throws SAXException */ public T open(final ReadableArchive descriptorArchive, final ReadableArchive contentArchive, final Application app) throws IOException, SAXException { setManifest(contentArchive.getManifest()); T descriptor = readDeploymentDescriptors(descriptorArchive, contentArchive, app); if (descriptor != null) { postOpen(descriptor, contentArchive); } return descriptor; }
public Application openWith(Application app, ReadableArchive archive) throws IOException, SAXException { setManifest(archive.getManifest()); // application archivist will override this method if (app.isVirtual()) { T descriptor = readRestDeploymentDescriptors((T)app.getStandaloneBundleDescriptor(), archive, archive, app); if (descriptor != null) { postOpen(descriptor, archive); descriptor.setApplication(app); } } return app; }
public Application openWith(Application app, ReadableArchive archive) throws IOException, SAXParseException { setManifest(archive.getManifest()); // application archivist will override this method if (app.isVirtual()) { T descriptor = readRestDeploymentDescriptors((T)app.getStandaloneBundleDescriptor(), archive, archive, app); if (descriptor != null) { postOpen(descriptor, archive); } if (descriptor instanceof BundleDescriptor) { ((BundleDescriptor)descriptor).setApplication(app); } } return app; }
newArchivist.readAnnotations(embeddedArchive, descriptor, extensions); newArchivist.postAnnotationProcess(descriptor, embeddedArchive); newArchivist.postOpen(descriptor, embeddedArchive);
newArchivist.readAnnotations(embeddedArchive, descriptor, extensions); newArchivist.postAnnotationProcess(descriptor, embeddedArchive); newArchivist.postOpen(descriptor, embeddedArchive);