Examples of SpringContextWrapper


Examples of fr.openwide.maven.artifact.notifier.init.util.SpringContextWrapper

  public static void main(String[] args) throws ServiceException, SecurityServiceException, IOException {
    ConfigurableApplicationContext context = null;
    try {
      context = new AnnotationConfigApplicationContext(MavenArtifactNotifierInitConfig.class);
     
      SpringContextWrapper contextWrapper = context.getBean("springContextWrapper",
          SpringContextWrapper.class);
     
      contextWrapper.openEntityManager();
      contextWrapper.importDirectory(new File("src/main/resources/init/development"));
     
      contextWrapper.reindexAll();
     
      LOGGER.info("Initialization complete");
    } finally {
      if (context != null) {
        context.close();
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.init.util.SpringContextWrapper

  public static void main(String[] args) throws ServiceException, SecurityServiceException, IOException {
    ConfigurableApplicationContext context = null;
    try {
      context = new AnnotationConfigApplicationContext(MavenArtifactNotifierInitConfig.class);
   
      SpringContextWrapper contextWrapper = context.getBean("springContextWrapper",
          SpringContextWrapper.class);
     
      contextWrapper.openEntityManager();
      contextWrapper.importDirectory(new File("src/main/resources/init/production"));
     
      contextWrapper.reindexAll();
     
      LOGGER.info("Initialization complete");
     
      System.exit(0);
    } finally {
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.spring.context.SpringContextWrapper

                                        ProxyFactory proxyService,
                                        PropertyValueFactory propertyValueObjectFactory) {
        super();
        this.component = component;

        springContext = new SpringContextWrapper(implementation, implementation.getResource());

    } // end constructor
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.spring.context.SpringContextWrapper

     */
    public void start() {
        ApplicationContext parentApplicationContext =
            (contextAccessor == null) ? null : contextAccessor.getParentApplicationContext(component);
        implementation.setParentApplicationContext(parentApplicationContext);
        springContext = new SpringContextWrapper(implementation, implementation.getResource());
        springContext.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.spring.context.SpringContextWrapper

                                        ProxyFactory proxyService,
                                        PropertyValueFactory propertyValueObjectFactory) {
        super();
        this.component = component;

        springContext = new SpringContextWrapper(implementation, implementation.getResource());

    } // end constructor
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.spring.context.SpringContextWrapper

     */
    public void start() {
        ApplicationContext parentApplicationContext =
            (contextAccessor == null) ? null : contextAccessor.getParentApplicationContext(component);
        implementation.setParentApplicationContext(parentApplicationContext);
        springContext = new SpringContextWrapper(implementation, implementation.getResource());
        springContext.start();
    }
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.