}
protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
{
Set<String> defaultSuffixes = JarUtils.getSuffixes();
JARStructure jarStructure = new JARStructure();
jarStructure.setSupportsCandidateAnnotations(true);
jarStructure.addCandidateAnnotation(Stateless.class);
jarStructure.addCandidateAnnotation(Service.class);
jarStructure.addCandidateAnnotation(AppClient.class);
jarStructure.addCandidateAnnotation(Servlet.class);
try
{
Set<String> suffixes = new HashSet<String>(jarStructure.getSuffixes());
suffixes.add(".ejb3");
jarStructure.setSuffixes(suffixes);
return determineStructureWithStructureDeployers(deployment, new FileStructure(), new WARStructure(), jarStructure, createEarStructureDeployer());
}
finally
{
jarStructure.setSuffixes(defaultSuffixes);
}
}