blob: 0c07680fd50784fa2e8e52e0fae192aa2fbaf9ed [file] [log] [blame]
package org.eclipse.jst.j2ee.internal.archive;
import org.eclipse.core.runtime.Path;
import org.eclipse.jst.j2ee.internal.J2EEConstants;
import org.eclipse.jst.jee.archive.IArchive;
import org.eclipse.jst.jee.archive.IArchiveHandler;
public class AppClientArchiveTypeHandler implements IArchiveHandler {
public boolean handlesArchive(IArchive archive) {
if (archive.getLoadAdapter() instanceof AppClientComponentArchiveLoadAdapter) {
return true;
} else if (archive.containsArchiveResource(new Path(J2EEConstants.APP_CLIENT_DD_URI))) {
return true;
} else {
// TODO handle the no DD case
return false;
}
}
}