public boolean matchesNoBoxing(Type requiredType, Type beanType) { /* * Special handling for array event types as eventType closure does not contain the type closure of array component type * this is here for backwards compatibility - see ObserverMethodWithParametertizedTypeTest.testObserverMethodCanObserveArrayWildcard() */ if (Types.isArray(requiredType) && Types.isArray(beanType)) { return matchesNoBoxing(Types.getArrayComponentType(requiredType), Types.getArrayComponentType(beanType)); } if (requiredType instanceof Class<?>) { if (beanType instanceof Class<?>) { return matches((Class<?>) requiredType, (Class<?>) beanType); } if (beanType instanceof ParameterizedType) { return matches((Class<?>) requiredType, (ParameterizedType) beanType); } } else if (requiredType instanceof ParameterizedType) { if (beanType instanceof Class<?>) { return matches((Class<?>) beanType, (ParameterizedType) requiredType); } if (beanType instanceof ParameterizedType) { return matches((ParameterizedType) requiredType, (ParameterizedType) beanType); } } return false; }
public boolean matchesNoBoxing(Type requiredType, Type beanType) { /* * Special handling for array event types as eventType closure does not contain the type closure of array component type * this is here for backwards compatibility - see ObserverMethodWithParametertizedTypeTest.testObserverMethodCanObserveArrayWildcard() */ if (Types.isArray(requiredType) && Types.isArray(beanType)) { return matchesNoBoxing(Types.getArrayComponentType(requiredType), Types.getArrayComponentType(beanType)); } if (requiredType instanceof Class<?>) { if (beanType instanceof Class<?>) { return matches((Class<?>) requiredType, (Class<?>) beanType); } if (beanType instanceof ParameterizedType) { return matches((Class<?>) requiredType, (ParameterizedType) beanType); } } else if (requiredType instanceof ParameterizedType) { if (beanType instanceof Class<?>) { return matches((Class<?>) beanType, (ParameterizedType) requiredType); } if (beanType instanceof ParameterizedType) { return matches((ParameterizedType) requiredType, (ParameterizedType) beanType); } } return false; }
public boolean matchesNoBoxing(Type requiredType, Type beanType) { /* * Special handling for array event types as eventType closure does not contain the type closure of array component type * this is here for backwards compatibility - see ObserverMethodWithParametertizedTypeTest.testObserverMethodCanObserveArrayWildcard() */ if (Types.isArray(requiredType) && Types.isArray(beanType)) { return matchesNoBoxing(Types.getArrayComponentType(requiredType), Types.getArrayComponentType(beanType)); } if (requiredType instanceof Class<?>) { if (beanType instanceof Class<?>) { return matches((Class<?>) requiredType, (Class<?>) beanType); } if (beanType instanceof ParameterizedType) { return matches((Class<?>) requiredType, (ParameterizedType) beanType); } } else if (requiredType instanceof ParameterizedType) { if (beanType instanceof Class<?>) { return matches((Class<?>) beanType, (ParameterizedType) requiredType); } if (beanType instanceof ParameterizedType) { return matches((ParameterizedType) requiredType, (ParameterizedType) beanType); } } return false; }
public boolean matchesNoBoxing(Type requiredType, Type beanType) { /* * Special handling for array event types as eventType closure does not contain the type closure of array component type * this is here for backwards compatibility - see ObserverMethodWithParametertizedTypeTest.testObserverMethodCanObserveArrayWildcard() */ if (Types.isArray(requiredType) && Types.isArray(beanType)) { return matchesNoBoxing(Types.getArrayComponentType(requiredType), Types.getArrayComponentType(beanType)); } if (requiredType instanceof Class<?>) { if (beanType instanceof Class<?>) { return matches((Class<?>) requiredType, (Class<?>) beanType); } if (beanType instanceof ParameterizedType) { return matches((Class<?>) requiredType, (ParameterizedType) beanType); } } else if (requiredType instanceof ParameterizedType) { if (beanType instanceof Class<?>) { return matches((Class<?>) beanType, (ParameterizedType) requiredType); } if (beanType instanceof ParameterizedType) { return matches((ParameterizedType) requiredType, (ParameterizedType) beanType); } } return false; }
public boolean matchesNoBoxing(Type requiredType, Type beanType) { /* * Special handling for array event types as eventType closure does not contain the type closure of array component type * this is here for backwards compatibility - see ObserverMethodWithParametertizedTypeTest.testObserverMethodCanObserveArrayWildcard() */ if (Types.isArray(requiredType) && Types.isArray(beanType)) { return matchesNoBoxing(Types.getArrayComponentType(requiredType), Types.getArrayComponentType(beanType)); } if (requiredType instanceof Class<?>) { if (beanType instanceof Class<?>) { return matches((Class<?>) requiredType, (Class<?>) beanType); } if (beanType instanceof ParameterizedType) { return matches((Class<?>) requiredType, (ParameterizedType) beanType); } } else if (requiredType instanceof ParameterizedType) { if (beanType instanceof Class<?>) { return matches((Class<?>) beanType, (ParameterizedType) requiredType); } if (beanType instanceof ParameterizedType) { return matches((ParameterizedType) requiredType, (ParameterizedType) beanType); } } return false; }
public boolean matchesNoBoxing(Type requiredType, Type beanType) { /* * Special handling for array event types as eventType closure does not contain the type closure of array component type * this is here for backwards compatibility - see ObserverMethodWithParametertizedTypeTest.testObserverMethodCanObserveArrayWildcard() */ if (Types.isArray(requiredType) && Types.isArray(beanType)) { return matchesNoBoxing(Types.getArrayComponentType(requiredType), Types.getArrayComponentType(beanType)); } if (requiredType instanceof Class<?>) { if (beanType instanceof Class<?>) { return matches((Class<?>) requiredType, (Class<?>) beanType); } if (beanType instanceof ParameterizedType) { return matches((Class<?>) requiredType, (ParameterizedType) beanType); } } else if (requiredType instanceof ParameterizedType) { if (beanType instanceof Class<?>) { return matches((Class<?>) beanType, (ParameterizedType) requiredType); } if (beanType instanceof ParameterizedType) { return matches((ParameterizedType) requiredType, (ParameterizedType) beanType); } } return false; }