/** * @return the visitor for this bundle descriptor */ public ComponentVisitor getBundleVisitor() { return new ApplicationValidator(); }
public void validate() { visit((ManagedBeanVisitor)new ApplicationValidator()); }
public void validate() { visit(new ApplicationValidator()); }
/** * @return a validated WebBundleDescriptor corresponding to default-web.xml * that can be used in webtier. */ public synchronized WebBundleDescriptor getDefaultWebXmlBundleDescriptor() { if (defaultWebXmlBundleDescriptor == null) { defaultWebXmlBundleDescriptor = getPlainDefaultWebXmlBundleDescriptor(); ApplicationValidator validator = new ApplicationValidator(); validator.accept(defaultWebXmlBundleDescriptor ); } return defaultWebXmlBundleDescriptor ; }
/** * validates the DOL Objects associated with this archivist, usually * it requires that a class loader being set on this archivist or passed * as a parameter */ @Override public void validate(ClassLoader aClassLoader) { ClassLoader cl = aClassLoader; if (cl==null) { cl = classLoader; } if (cl==null) { return; } descriptor.setClassLoader(cl); descriptor.visit((WebBundleVisitor) new ApplicationValidator()); }
/** * validates the DOL Objects associated with this archivist, usually * it requires that a class loader being set on this archivist or passed * as a parameter */ @Override public void validate(ClassLoader aClassLoader) { ClassLoader cl = aClassLoader; if (cl==null) { cl = classLoader; } if (cl==null) { return; } descriptor.setClassLoader(cl); descriptor.visit((ApplicationVisitor) new ApplicationValidator()); }
/** * validates the DOL Objects associated with this archivist, usually * it requires that a class loader being set on this archivist or passed * as a parameter */ @Override public void validate(ClassLoader aClassLoader) { ClassLoader cl = aClassLoader; if (cl == null) { cl = classLoader; } if (cl == null) { return; } descriptor.setClassLoader(cl); descriptor.visit(new ApplicationValidator()); }
/** * validates the DOL Objects associated with this archivist, usually * it requires that a class loader being set on this archivist or passed * as a parameter */ @Override public void validate(ClassLoader aClassLoader) { ClassLoader cl = aClassLoader; if (cl==null) { cl = classLoader; } if (cl==null) { return; } descriptor.setClassLoader(cl); descriptor.visit((WebBundleVisitor) new ApplicationValidator()); }
/** * validates the DOL Objects associated with this archivist, usually * it requires that a class loader being set on this archivist or passed * as a parameter */ @Override public void validate(ClassLoader aClassLoader) { ClassLoader cl = aClassLoader; if (cl==null) { cl = classLoader; } if (cl==null) { return; } descriptor.setClassLoader(cl); descriptor.visit((ApplicationVisitor) new ApplicationValidator()); }
/** * This method populates the rest of the Application object from the * previous standard deployment descriptor reading * @param archive the archive for the application */ public Application openWith(Application application, ReadableArchive archive, Archivist archivist) throws IOException, SAXException { archivist.openWith(application, archive); // validate if (application.isVirtual()) { application.setClassLoader(archivist.getClassLoader()); application.visit((ApplicationVisitor) new ApplicationValidator()); } return application; }
/** * This method populates the rest of the Application object from the * previous standard deployment descriptor reading * @param archive the archive for the application */ public Application openWith(Application application, ReadableArchive archive, Archivist archivist) throws IOException, SAXParseException { archivist.openWith(application, archive); // validate if (application.isVirtual()) { application.setClassLoader(archivist.getClassLoader()); application.visit((ApplicationVisitor) new ApplicationValidator()); } return application; }
application.visit(new ApplicationValidator());
application.visit((ApplicationVisitor) new ApplicationValidator());