Examples of excludeClass()


Examples of org.springframework.core.DecoratingClassLoader.excludeClass()

      ClassLoader tempClassLoader = getTempClassLoader();
      if (tempClassLoader != null) {
        if (tempClassLoader instanceof DecoratingClassLoader) {
          DecoratingClassLoader dcl = (DecoratingClassLoader) tempClassLoader;
          for (Class<?> typeToMatch : typesToMatch) {
            dcl.excludeClass(typeToMatch.getName());
          }
        }
        String className = mbd.getBeanClassName();
        return (className != null ? ClassUtils.forName(className, tempClassLoader) : null);
      }
View Full Code Here

Examples of org.springframework.instrument.classloading.ShadowingClassLoader.excludeClass()

   */
  @Test(expected = BeanDefinitionParsingException.class)
  public void shouldThrowBeanDefinitionParsingExceptionIfClassFromSpringAspectsJarCannotBeFound() {

    ShadowingClassLoader scl = new ShadowingClassLoader(getClass().getClassLoader());
    scl.excludeClass(AuditingBeanDefinitionParser.AUDITING_ENTITY_LISTENER_CLASS_NAME);
    loadFactoryFrom("auditing/auditing-namespace-context.xml", scl);
  }

  private void assertSetDatesIsSetTo(String configFile, String value) {

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.