Package fr.openwide.maven.artifact.notifier.init.util

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


  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

TOP

Related Classes of fr.openwide.maven.artifact.notifier.init.util.SpringContextWrapper

Copyright © 2018 www.massapicom. 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.