@Override public RuntimeException apply(Type eventType) { Type resolvedType = Types.getCanonicalType(eventType); /* * If the runtime type of the event object contains a type variable, the container must throw an IllegalArgumentException. */ if (Types.containsTypeVariable(resolvedType)) { return UtilLogger.LOG.typeParameterNotAllowedInEventType(eventType); } /* * If the runtime type of the event object is assignable to the type of a container lifecycle event, IllegalArgumentException is thrown. */ Class<?> resolvedClass = Reflections.getRawType(eventType); for (Class<?> containerEventType : Observers.CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES) { if (containerEventType.isAssignableFrom(resolvedClass)) { return UtilLogger.LOG.eventTypeNotAllowed(eventType); } } return NO_EXCEPTION_MARKER; } }
@Override public RuntimeException apply(Type eventType) { Type resolvedType = Types.getCanonicalType(eventType); /* * If the runtime type of the event object contains a type variable, the container must throw an IllegalArgumentException. */ if (Types.containsTypeVariable(resolvedType)) { return UtilLogger.LOG.typeParameterNotAllowedInEventType(eventType); } /* * If the runtime type of the event object is assignable to the type of a container lifecycle event, IllegalArgumentException is thrown. */ Class<?> resolvedClass = Reflections.getRawType(eventType); for (Class<?> containerEventType : Observers.CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES) { if (containerEventType.isAssignableFrom(resolvedClass)) { return UtilLogger.LOG.eventTypeNotAllowed(eventType); } } return NO_EXCEPTION_MARKER; } }
@Override public RuntimeException apply(Type eventType) { Type resolvedType = Types.getCanonicalType(eventType); /* * If the runtime type of the event object contains a type variable, the container must throw an IllegalArgumentException. */ if (Types.containsTypeVariable(resolvedType)) { return UtilLogger.LOG.typeParameterNotAllowedInEventType(eventType); } /* * If the runtime type of the event object is assignable to the type of a container lifecycle event, IllegalArgumentException is thrown. */ Class<?> resolvedClass = Reflections.getRawType(eventType); for (Class<?> containerEventType : Observers.CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES) { if (containerEventType.isAssignableFrom(resolvedClass)) { return UtilLogger.LOG.eventTypeNotAllowed(eventType); } } return NO_EXCEPTION_MARKER; } }
@Override public RuntimeException apply(Type eventType) { Type resolvedType = Types.getCanonicalType(eventType); /* * If the runtime type of the event object contains a type variable, the container must throw an IllegalArgumentException. */ if (Types.containsTypeVariable(resolvedType)) { return UtilLogger.LOG.typeParameterNotAllowedInEventType(eventType); } /* * If the runtime type of the event object is assignable to the type of a container lifecycle event, IllegalArgumentException is thrown. */ Class<?> resolvedClass = Reflections.getRawType(eventType); for (Class<?> containerEventType : Observers.CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES) { if (containerEventType.isAssignableFrom(resolvedClass)) { return UtilLogger.LOG.eventTypeNotAllowed(eventType); } } return NO_EXCEPTION_MARKER; } }
@Override public RuntimeException apply(Type eventType) { Type resolvedType = Types.getCanonicalType(eventType); /* * If the runtime type of the event object contains a type variable, the container must throw an IllegalArgumentException. */ if (Types.containsTypeVariable(resolvedType)) { return UtilLogger.LOG.typeParameterNotAllowedInEventType(eventType); } /* * If the runtime type of the event object is assignable to the type of a container lifecycle event, IllegalArgumentException is thrown. */ Class<?> resolvedClass = Reflections.getRawType(eventType); for (Class<?> containerEventType : Observers.CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES) { if (containerEventType.isAssignableFrom(resolvedClass)) { return UtilLogger.LOG.eventTypeNotAllowed(eventType); } } return NO_EXCEPTION_MARKER; } }
@Override public RuntimeException apply(Type eventType) { Type resolvedType = Types.getCanonicalType(eventType); /* * If the runtime type of the event object contains a type variable, the container must throw an IllegalArgumentException. */ if (Types.containsTypeVariable(resolvedType)) { return UtilLogger.LOG.typeParameterNotAllowedInEventType(eventType); } /* * If the runtime type of the event object is assignable to the type of a container lifecycle event, IllegalArgumentException * is thrown. */ Class<?> resolvedClass = Reflections.getRawType(eventType); for (Class<?> containerEventType : Observers.CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES) { if (containerEventType.isAssignableFrom(resolvedClass)) { return UtilLogger.LOG.eventTypeNotAllowed(eventType); } } return NO_EXCEPTION_MARKER; } }