Skip to content

Commit

Permalink
Fixed porting package to match latest Managers interface
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@3393 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
drallen committed Aug 3, 2009
1 parent e752438 commit edde9f2
Showing 1 changed file with 0 additions and 17 deletions.
@@ -1,17 +1,12 @@
package org.jboss.webbeans.tck;

import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;

import javax.enterprise.inject.UnproxyableResolutionException;
import javax.enterprise.inject.spi.BeanManager;

import org.jboss.jsr299.tck.spi.Managers;
import org.jboss.webbeans.CurrentManager;
import org.jboss.webbeans.DefinitionException;
import org.jboss.webbeans.DeploymentException;
import org.jboss.webbeans.WebBean;

public class ManagersImpl implements Managers
{
Expand All @@ -21,18 +16,6 @@ public BeanManager getManager()
return CurrentManager.rootManager();
}

public void setEnabledDeploymentTypes(List<Class<? extends Annotation>> enabledDeploymentTypes)
{
CurrentManager.rootManager().setEnabledDeploymentTypes(enabledDeploymentTypes);
}

public List<Class<? extends Annotation>> getEnabledDeploymentTypes()
{
List<Class<? extends Annotation>> deploymentTypes = new ArrayList<Class<? extends Annotation>>(CurrentManager.rootManager().getEnabledDeploymentTypes());
deploymentTypes.remove(WebBean.class);
return deploymentTypes;
}

public boolean isDefinitionError(org.jboss.testharness.api.DeploymentException deploymentException)
{
return isDefinitionException(deploymentException.getCause());
Expand Down

0 comments on commit edde9f2

Please sign in to comment.