Skip to content

Commit

Permalink
Minor. renames
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@204 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
nickarls committed Oct 29, 2008
1 parent 18964bb commit 76e78c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
Expand Up @@ -34,7 +34,7 @@
import org.jboss.webbeans.exceptions.TypesafeResolutionLocation;
import org.jboss.webbeans.injectable.Injectable;
import org.jboss.webbeans.injectable.ResolverInjectable;
import org.jboss.webbeans.util.ClientProxyUtil;
import org.jboss.webbeans.util.ClientProxy;
import org.jboss.webbeans.util.MapWrapper;
import org.jboss.webbeans.util.Reflections;

Expand Down Expand Up @@ -341,7 +341,7 @@ else if (beans.size() > 1)
else
{
Bean<T> bean = beans.iterator().next();
if (getModelManager().getScopeModel(bean.getScopeType()).isNormal() && !ClientProxyUtil.isProxyable(injectable.getType()))
if (getModelManager().getScopeModel(bean.getScopeType()).isNormal() && !ClientProxy.isProxyable(injectable.getType()))
{
throw new UnproxyableDependencyException(new TypesafeResolutionLocation(injectable) + "Unable to proxy");
}
Expand Down Expand Up @@ -390,7 +390,7 @@ private Bean<?> getClientProxy(Bean<?> bean)
{
try
{
clientProxy = ClientProxyUtil.createProxy(new ProxyData(bean, this));
clientProxy = ClientProxy.createProxy(new ProxyData(bean, this));
} catch (Exception e) {
throw new UnproxyableDependencyException("Could not create proxy", e);
}
Expand Down
Expand Up @@ -14,7 +14,7 @@
import org.jboss.webbeans.ProxyData;


public class ClientProxyUtil
public class ClientProxy
{

public static boolean isProxyable(Class<?> rawType)
Expand Down Expand Up @@ -56,10 +56,10 @@ public Object invoke(Object self, Method m, Method proceed, Object[] args) throw
}
};

public static Bean<?> createProxy(ProxyData clientProxy) throws InstantiationException, IllegalAccessException
public static Bean<?> createProxy(ProxyData proxyData) throws InstantiationException, IllegalAccessException
{
ProxyFactory proxyFactory = new ProxyFactory();
proxyFactory.setSuperclass(clientProxy.getClass());
proxyFactory.setSuperclass(proxyData.getClass());
Class<?> proxyClass = proxyFactory.createClass();
Bean<?> proxy = (Bean<?>) proxyClass.newInstance();
((ProxyObject)proxy).setHandler(methodHandler);
Expand Down

0 comments on commit 76e78c8

Please sign in to comment.