Skip to content

Commit

Permalink
param names
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@347 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
Gavin King authored and gavin.king@gmail.com committed Nov 21, 2008
1 parent ff8cb83 commit 08b2f11
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
Expand Up @@ -183,7 +183,7 @@ public Manager addBean(Bean<?> bean)
* @param bindingTypes The binding types to match
* @return The set of matching disposal methods
*/
public <T> Set<AnnotatedMethod<Object>> resolveDisposalMethods(Class<T> apiType, Annotation... bindingTypes)
public <T> Set<AnnotatedMethod<Object>> resolveDisposalMethods(Class<T> apiType, Annotation... bindings)
{
return new HashSet<AnnotatedMethod<Object>>();
}
Expand Down Expand Up @@ -235,9 +235,9 @@ public MetaDataCache getMetaDataCache()
* @see javax.webbeans.manager.Manager#resolveByType(java.lang.Class,
* java.lang.annotation.Annotation[])
*/
public <T> Set<Bean<T>> resolveByType(Class<T> type, Annotation... bindingTypes)
public <T> Set<Bean<T>> resolveByType(Class<T> type, Annotation... bindings)
{
return resolveByType(new AnnotatedClassImpl<T>(type, type, bindingTypes), bindingTypes);
return resolveByType(new AnnotatedClassImpl<T>(type, type, bindings), bindings);
}

/**
Expand All @@ -250,9 +250,9 @@ public <T> Set<Bean<T>> resolveByType(Class<T> type, Annotation... bindingTypes)
* @see javax.webbeans.manager.Manager#resolveByType(javax.webbeans.TypeLiteral,
* java.lang.annotation.Annotation[])
*/
public <T> Set<Bean<T>> resolveByType(TypeLiteral<T> type, Annotation... bindingTypes)
public <T> Set<Bean<T>> resolveByType(TypeLiteral<T> type, Annotation... bindings)
{
return resolveByType(new AnnotatedClassImpl<T>(type.getRawType(), type.getType(), bindingTypes), bindingTypes);
return resolveByType(new AnnotatedClassImpl<T>(type.getRawType(), type.getType(), bindings), bindings);
}

/**
Expand All @@ -263,7 +263,7 @@ public <T> Set<Bean<T>> resolveByType(TypeLiteral<T> type, Annotation... binding
* @param bindingTypes The binding types to match
* @return The set of matching beans
*/
public <T> Set<Bean<T>> resolveByType(AnnotatedItem<T, ?> element, Annotation... bindingTypes)
public <T> Set<Bean<T>> resolveByType(AnnotatedItem<T, ?> element, Annotation... bindings)
{
for (Annotation annotation : element.getAnnotations())
{
Expand All @@ -272,7 +272,7 @@ public <T> Set<Bean<T>> resolveByType(AnnotatedItem<T, ?> element, Annotation...
throw new IllegalArgumentException("Not a binding type " + annotation);
}
}
if (bindingTypes.length > element.getMetaAnnotations(BindingType.class).size())
if (bindings.length > element.getMetaAnnotations(BindingType.class).size())
{
throw new DuplicateBindingTypeException(element.toString());
}
Expand Down Expand Up @@ -514,9 +514,9 @@ else if (beans.size() > 1)
* @see javax.webbeans.manager.Manager#getInstanceByType(java.lang.Class,
* java.lang.annotation.Annotation[])
*/
public <T> T getInstanceByType(Class<T> type, Annotation... bindingTypes)
public <T> T getInstanceByType(Class<T> type, Annotation... bindings)
{
return getInstanceByType(new AnnotatedClassImpl<T>(type, type, bindingTypes), bindingTypes);
return getInstanceByType(new AnnotatedClassImpl<T>(type, type, bindings), bindings);
}

/**
Expand All @@ -529,9 +529,9 @@ public <T> T getInstanceByType(Class<T> type, Annotation... bindingTypes)
* @see javax.webbeans.manager.Manager#getInstanceByType(javax.webbeans.TypeLiteral,
* java.lang.annotation.Annotation[])
*/
public <T> T getInstanceByType(TypeLiteral<T> type, Annotation... bindingTypes)
public <T> T getInstanceByType(TypeLiteral<T> type, Annotation... bindings)
{
return getInstanceByType(new AnnotatedClassImpl<T>(type.getRawType(), type.getType(), bindingTypes), bindingTypes);
return getInstanceByType(new AnnotatedClassImpl<T>(type.getRawType(), type.getType(), bindings), bindings);
}

/**
Expand All @@ -542,9 +542,9 @@ public <T> T getInstanceByType(TypeLiteral<T> type, Annotation... bindingTypes)
* @param bindingTypes The binding types to match
* @return An instance of the bean
*/
public <T> T getInstanceByType(AnnotatedItem<T, ?> element, Annotation... bindingTypes)
public <T> T getInstanceByType(AnnotatedItem<T, ?> element, Annotation... bindings)
{
Set<Bean<T>> beans = resolveByType(element, bindingTypes);
Set<Bean<T>> beans = resolveByType(element, bindings);
if (beans.size() == 0)
{
throw new UnsatisfiedDependencyException(element + "Unable to resolve any Web Beans");
Expand Down Expand Up @@ -627,9 +627,9 @@ public Set<Bean<?>> resolveByName(String name)
* @see javax.webbeans.manager.Manager#resolveDecorators(java.util.Set,
* java.lang.annotation.Annotation[])
*/
public List<Decorator> resolveDecorators(Set<Class<?>> types, Annotation... bindingTypes)
public List<Decorator> resolveDecorators(Set<Class<?>> types, Annotation... bindings)
{
return resolver.resolveDecorators(types, bindingTypes);
return resolver.resolveDecorators(types, bindings);
}

/**
Expand Down

0 comments on commit 08b2f11

Please sign in to comment.