ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/ImplicitLocalViewProcessor.java
private boolean exposesNoInterfaceView(Class<?> beanClass) {
        Class<?>[] interfaces = beanClass.getInterfaces();
        if (interfaces.length == 0) {
            return true;
        }

        // As per section 4.9.8 (bullet 1.3) of EJB3.1 spec
        // java.io.Serializable; java.io.Externalizable; any of the interfaces defined by the javax.ejb
        // are excluded from interface check

        List<Class<?>> implementedInterfaces = new ArrayList<Class<?>>(Arrays.asList(interfaces));
        List<Class<?>> filteredInterfaces = this.filterInterfaces(implementedInterfaces);
        // Now that we have removed the interfaces that should be excluded from the check,
        // if the filtered interfaces collection is empty then this bean can be considered for no-interface view
        return filteredInterfaces.isEmpty();
    }
private boolean exposesNoInterfaceView(Class<?> beanClass) {
        Class<?>[] interfaces = beanClass.getInterfaces();
        if (interfaces.length == 0) {
            return true;
        }

        // As per section 4.9.8 (bullet 1.3) of EJB3.1 spec
        // java.io.Serializable; java.io.Externalizable; any of the interfaces defined by the javax.ejb
        // are excluded from interface check

        List<Class<?>> implementedInterfaces = new ArrayList<Class<?>>(Arrays.asList(interfaces));
        List<Class<?>> filteredInterfaces = this.filterInterfaces(implementedInterfaces);
        // Now that we have removed the interfaces that should be excluded from the check,
        // if the filtered interfaces collection is empty then this bean can be considered for no-interface view
        return filteredInterfaces.isEmpty();
    }
private boolean exposesNoInterfaceView ( Class < ? > beanClass ) { Class < ? > [ ] interfaces = beanClass . getInterfaces ( ) ; if ( interfaces . length == 0 ) { return true ; } // As per section 4.9.8 (bullet 1.3) of EJB3.1 spec // java.io.Serializable; java.io.Externalizable; any of the interfaces defined by the javax.ejb // are excluded from interface check List < Class < ? > > implementedInterfaces = new ArrayList < Class < ? > > ( Arrays . asList ( interfaces ) ) ; List < Class < ? > > filteredInterfaces = this . filterInterfaces ( implementedInterfaces ) ; // Now that we have removed the interfaces that should be excluded from the check, // if the filtered interfaces collection is empty then this bean can be considered for no-interface view return filteredInterfaces . isEmpty ( ) ; }
Returns true if the passed <code>beanClass</code> is eligible for implicit no-interface view. Else returns false.
<p/>
EJB3.1 spec, section 4.9.8 states the rules for an implicit no-interface view on a bean class.
If the "implements" clause of the bean class is empty then the bean is considered to be exposing a no-interface view.
During this implements clause check, the {@link java.io.Serializable} or {@link java.io.Externalizable} or
any class from javax.ejb.* packages are excluded.

@param beanClass The bean class.
@return
Returns true if the passed <code > beanClass< / code > is eligible for implicit no - interface view . Else returns false . <p / > EJB3 . 1 spec section 4 . 9 . 8 states the rules for an implicit no - interface view on a bean class . If the implements clause of the bean class is empty then the bean is considered to be exposing a no - interface view . During this implements clause check the { @link java . io . Serializable } or { @link java . io . Externalizable } or any class from javax . ejb . * packages are excluded .