Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jan 15, 2010
1 parent ad57619 commit 966f114
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Expand Up @@ -240,21 +240,21 @@ private Object readResolve()
Bean<T> bean = getDeclaringBean();
if (constructor == null || bean == null)
{
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_CONSTRUCTOR_ON_DESERIALIZATION, getDeclaringBeanId(), getWeldClass(), signature);
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_CONSTRUCTOR_ON_DESERIALIZATION, getDeclaringBeanId(), getDeclaringWeldClass(), signature);
}
return ConstructorInjectionPoint.of(getDeclaringBean(), getWeldConstructor());
}

protected WeldConstructor<T> getWeldConstructor()
{
return getWeldClass().getDeclaredWeldConstructor(signature);
return getDeclaringWeldClass().getDeclaredWeldConstructor(signature);
}

@SuppressWarnings("unchecked")
@Override
protected WeldClass<T> getWeldClass()
protected WeldClass<T> getDeclaringWeldClass()
{
return (WeldClass<T>) super.getWeldClass();
return (WeldClass<T>) super.getDeclaringWeldClass();
}

}
Expand Down
Expand Up @@ -169,14 +169,14 @@ private Object readResolve()
Bean<T> bean = getDeclaringBean();
if (field == null || bean == null)
{
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_FIELD_ON_DESERIALIZATION, getDeclaringBeanId(), getWeldClass(), fieldName);
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_FIELD_ON_DESERIALIZATION, getDeclaringBeanId(), getDeclaringWeldClass(), fieldName);
}
return FieldInjectionPoint.of(getDeclaringBean(), getWeldField());
}

protected WeldField<T, ?> getWeldField()
{
return getWeldClass().getDeclaredWeldField(fieldName);
return getDeclaringWeldClass().getDeclaredWeldField(fieldName);
}

}
Expand Down
Expand Up @@ -330,14 +330,14 @@ private Object readResolve()
Bean<T> bean = getDeclaringBean();
if (method == null || bean == null)
{
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_METHOD_ON_DESERIALIZATION, getDeclaringBeanId(), getWeldClass(), signature);
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_METHOD_ON_DESERIALIZATION, getDeclaringBeanId(), getDeclaringWeldClass(), signature);
}
return MethodInjectionPoint.of(getDeclaringBean(), getWeldMethod());
}

protected WeldMethod<T, ?> getWeldMethod()
{
return getWeldClass().getDeclaredWeldMethod(signature);
return getDeclaringWeldClass().getDeclaredWeldMethod(signature);
}

}
Expand Down
Expand Up @@ -172,7 +172,7 @@ private Object readResolve()
Bean<T> bean = getDeclaringBean();
if (parameter == null || bean == null)
{
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_PARAMETER_ON_DESERIALIZATION, getDeclaringBeanId(), getWeldClass(), methodSignature, parameterPosition);
throw new ForbiddenStateException(ReflectionMessage.UNABLE_TO_GET_PARAMETER_ON_DESERIALIZATION, getDeclaringBeanId(), getDeclaringWeldClass(), methodSignature, parameterPosition);
}
return ParameterInjectionPoint.of(getDeclaringBean(), getWeldParameter());
}
Expand All @@ -181,7 +181,7 @@ private Object readResolve()
{
if (methodSignature != null)
{
WeldMethod<?, ?> method = getWeldClass().getDeclaredWeldMethod(methodSignature);
WeldMethod<?, ?> method = getDeclaringWeldClass().getDeclaredWeldMethod(methodSignature);
if (method.getParameters().size() > parameterPosition)
{
WeldParameter<?, ?> p = method.getWeldParameters().get(parameterPosition);
Expand All @@ -198,7 +198,7 @@ private Object readResolve()
}
else if (constructorSignature != null)
{
WeldConstructor<?> constructor = getWeldClass().getDeclaredWeldConstructor(constructorSignature);
WeldConstructor<?> constructor = getDeclaringWeldClass().getDeclaredWeldConstructor(constructorSignature);
if (constructor.getParameters().size() > parameterPosition)
{
WeldParameter<?, ?> p = constructor.getWeldParameters().get(parameterPosition);
Expand Down
Expand Up @@ -49,7 +49,7 @@ protected Bean<T> getDeclaringBean()
return Container.instance().services().get(ContextualStore.class).<Bean<T>, T>getContextual(declaringBeanId);
}

protected WeldClass<?> getWeldClass()
protected WeldClass<?> getDeclaringWeldClass()
{
return Container.instance().services().get(ClassTransformer.class).loadClass(declaringClass);
}
Expand Down

0 comments on commit 966f114

Please sign in to comment.