Examples of Init


Examples of net.xeoh.plugins.base.annotations.events.Init

        for (final Method method : methods) {
            log("callinit/method", new OptionInfo("method", method.getName()));       

            // Init methods will be marked by the corresponding annotation.
            final Init annotation = method.getAnnotation(Init.class);
            if (annotation != null) {
                log("callinit/method/initannotation", new OptionInfo("method", method.getName()));       

                try {
                    final Object invoke = method.invoke(spawnedPlugin, new Object[0]);
View Full Code Here

Examples of org.apache.karaf.shell.api.action.lifecycle.Init

                    field.set(instance, value);
                }
            }
        }
        for (Method method : clazz.getDeclaredMethods()) {
            Init ann = method.getAnnotation(Init.class);
            if (ann != null && method.getParameterTypes().length == 0 && method.getReturnType() == void.class) {
                method.setAccessible(true);
                method.invoke(instance);
            }
        }
View Full Code Here

Examples of org.exist.debuggee.dbgp.packets.Init

          idekey = var.getValue().toString();
        } catch (XPathException e) {
        }
      }
     
      joint.continuation(new Init(session, idesession, idekey));
     
      return true;
    }
   
  }
View Full Code Here

Examples of org.jbake.launcher.Init

    config.setProperty("example.project.freemarker", "test.zip");
  }
 
  @Test
  public void initOK() throws Exception {
    Init init = new Init(config);
    File initPath = folder.newFolder("init");
    init.run(initPath, rootPath, "freemarker");
    File testFile = new File(initPath, "testfile.txt");
    assertThat(testFile).exists();
  }
View Full Code Here

Examples of org.jboss.seam.core.Init

public class PhaseListenerTest
{
   private void installComponents(Context appContext)
   {
      Init init = new Init();
      init.setTransactionManagementEnabled(false);
      appContext.set( Seam.getComponentName(Init.class), init );
      installComponent(appContext, FacesManager.class);
      installComponent(appContext, ConversationEntries.class);
      installComponent(appContext, FacesPage.class);
      installComponent(appContext, Conversation.class);
View Full Code Here

Examples of org.jboss.seam.core.Init

      Lifecycle.cleanupApplication();
   }
  
   protected void installComponents(Context appContext)
   {
      Init init = new Init();
      init.setTransactionManagementEnabled(false);
      appContext.set(Seam.getComponentName(Init.class), init);
      Map<String, Conversions.PropertyValue> properties = new HashMap<String, Conversions.PropertyValue>();
      appContext.set(Component.PROPERTIES, properties);
      properties.put(Seam.getComponentName(Pages.class) + ".resources", new Conversions.FlatPropertyValue(TEST_PAGES_DOT_XML));
View Full Code Here

Examples of org.jboss.seam.core.Init

   {
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      MockExternalContext externalContext = new MockExternalContext(servletContext);
      Context appContext = new ApplicationContext( externalContext.getApplicationMap() );
      appContext.set( Seam.getComponentName(Init.class), new Init() );
      appContext.set(
            Seam.getComponentName(ConversationEntries.class) + ".component",
            new Component(ConversationEntries.class, appContext)
         );
      appContext.set(
View Full Code Here

Examples of org.jboss.seam.core.Init

   {
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      final MockExternalContext externalContext = new MockExternalContext(servletContext);
      Context appContext = new ApplicationContext( externalContext.getApplicationMap() );
      appContext.set( Seam.getComponentName(Init.class), new Init() );
      appContext.set( Seam.getComponentName(ConversationEntries.class) + ".component",
            new Component(ConversationEntries.class, appContext) );
      appContext.set( Seam.getComponentName(Manager.class) + ".component",
            new Component(Manager.class, appContext) );
      appContext.set( Seam.getComponentName(Foo.class) + ".component",
View Full Code Here

Examples of org.jboss.seam.core.Init

   {
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      MockExternalContext externalContext = new MockExternalContext(servletContext);
      Context appContext = new ApplicationContext( externalContext.getApplicationMap() );
      appContext.set( Seam.getComponentName(Init.class), new Init() );
      appContext.set(
            Seam.getComponentName(ConversationEntries.class) + ".component",
            new Component(ConversationEntries.class, appContext)
         );
      appContext.set(
View Full Code Here

Examples of org.jboss.seam.core.Init

   {
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      MockExternalContext externalContext = new MockExternalContext(servletContext);
      Context appContext = new ApplicationContext( externalContext.getApplicationMap() );
      appContext.set( Seam.getComponentName(Init.class), new Init() );
      appContext.set(
            Seam.getComponentName(ConversationEntries.class) + ".component",
            new Component(ConversationEntries.class, appContext)
         );
      appContext.set(
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.