Examples of afterPropertiesSet()


Examples of org.springframework.jmx.access.MBeanProxyFactoryBean.afterPropertiesSet()

            } catch (MalformedObjectNameException e) {
                throw new IllegalStateException(e);
            }
            factory.setProxyInterface(type);
            factory.setUseStrictCasing(false);
            factory.afterPropertiesSet();
            proxy = (T) factory.getObject();
            proxies.put(name, new SoftReference<Object>(proxy));
        }
        return proxy;
    }
View Full Code Here

Examples of org.springframework.jmx.access.NotificationListenerRegistrar.afterPropertiesSet()

    NotificationListenerRegistrar registrar = new NotificationListenerRegistrar();
    registrar.setServer(server);
    registrar.setNotificationListener(listener);
    registrar.setMappedObjectName(objectName);
    registrar.afterPropertiesSet();

    // update the attribute
    String attributeName = "Name";
    server.setAttribute(objectName, new Attribute(attributeName, "Rob Harrop"));
    assertEquals("Listener not notified", 1, listener.getCount(attributeName));
View Full Code Here

Examples of org.springframework.jmx.export.MBeanExporter.afterPropertiesSet()

    Map beans = new HashMap();
    beans.put(OBJECT_NAME, target);
    adapter.setServer(getServer());
    adapter.setBeans(beans);
    adapter.setAssembler(new ProxyTestAssembler());
    adapter.afterPropertiesSet();
  }

  protected MBeanServerConnection getServerConnection() throws Exception {
    return getServer();
  }
View Full Code Here

Examples of org.springframework.jmx.support.MBeanServerFactoryBean.afterPropertiesSet()

    if (platform != null) {
      return platform.getMBeanServer();
    }
    MBeanServerFactoryBean factory = new MBeanServerFactoryBean();
    factory.setLocateExistingServerIfPossible(true);
    factory.afterPropertiesSet();
    return factory.getObject();

  }

  @EnableMBeanExport(defaultDomain = "${spring.jmx.default_domain:}", server = "${spring.jmx.server:mbeanServer}")
View Full Code Here

Examples of org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet()

        as.setService(new QName("echo"));
        jbi.activateComponent(as);
       
        JndiObjectFactoryBean fb = new JndiObjectFactoryBean();
        fb.setJndiName(ClientFactory.DEFAULT_JNDI_NAME);
        fb.afterPropertiesSet();
        ClientFactory cf = (ClientFactory) fb.getObject();
        ServiceMixClient client = cf.createClient();
       
        Destination dest = client.createDestination("service::echo");
        InOut me = dest.createInOutExchange();
View Full Code Here

Examples of org.springframework.ldap.core.support.LdapContextSource.afterPropertiesSet()

        source.setPassword(configurationModel.getLdapConfiguration()
                .getLdapPassword());
        source.setDirObjectFactory(DefaultDirObjectFactory.class);
        source.setPooled(false);
        try {
            source.afterPropertiesSet();
        } catch (Exception e) {
            e.printStackTrace();
        }

        LdapTemplate template = new LdapTemplate(source);
View Full Code Here

Examples of org.springframework.messaging.handler.annotation.support.DefaultMessageHandlerMethodFactory.afterPropertiesSet()

    }

    private MessageHandlerMethodFactory createDefaultJmsHandlerMethodFactory() {
      DefaultMessageHandlerMethodFactory defaultFactory = new DefaultMessageHandlerMethodFactory();
      defaultFactory.setBeanFactory(beanFactory);
      defaultFactory.afterPropertiesSet();
      return defaultFactory;
    }
  }

}
View Full Code Here

Examples of org.springframework.nanotrader.web.exception.ExtendedExceptionHandlerExceptionResolver.afterPropertiesSet()

  public void configureHandlerExceptionResolvers(
      List<HandlerExceptionResolver> exceptionResolvers) {
    ExtendedExceptionHandlerExceptionResolver customResolver = new ExtendedExceptionHandlerExceptionResolver();
    customResolver.setExceptionHandler(new GlobalExceptionHandler());
    customResolver.setMessageConverters(getMessageConverters());
    customResolver.afterPropertiesSet();
    exceptionResolvers.add(customResolver);
  }

}
View Full Code Here

Examples of org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet()

    LocalSessionFactoryBean factory = new LocalSessionFactoryBean();
    factory.setDataSource(dataSource);
    factory.setMappingLocations(new Resource[] {
        new ClassPathResource("org/springframework/webflow/persistence/TestBean.hbm.xml"),
        new ClassPathResource("org/springframework/webflow/persistence/TestAddress.hbm.xml") });
    factory.afterPropertiesSet();
    return (SessionFactory) factory.getObject();
  }

  private void assertSessionBound() {
    assertNotNull(TransactionSynchronizationManager.getResource(sessionFactory));
View Full Code Here

Examples of org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean.afterPropertiesSet()

        System.setProperty("hibernate.dialect", H2Dialect.class.getName());
        System.setProperty("hibernate.hbm2ddl.auto", "create-drop");
        AnnotationSessionFactoryBean sessionFactory = new AnnotationSessionFactoryBean();
        sessionFactory.setDataSource(dataSource);
        sessionFactory.setAnnotatedClasses(new Class[] {PhotoSpot.class});
        sessionFactory.afterPropertiesSet();

        repo.hibernate = new HibernateTemplate(sessionFactory.getObject());
    }

    @Test
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.