Examples of Init


Examples of org.jboss.seam.core.Init

         {
            hotDeploymentStrategy = createHotDeployment(Thread.currentThread().getContextClassLoader());
            if (hotDeploymentStrategy.isEnabled())
            {
               hotDeploymentStrategy.scan();
               Init init = (Init) ServletLifecycle.getServletContext().getAttribute( Seam.getComponentName(Init.class) );
              
               if (init.getTimestamp() < hotDeploymentStrategy.getTimestamp())
               {
                  log.info("redeploying");
                  ServletLifecycle.beginReinitialization(request);
                  Seam.clearComponentNameCache();
                  for ( String name: init.getHotDeployableComponents() )
                  {
                     Component component = Component.forName(name);
                     if (component!=null)
                     {
                        ScopeType scope = component.getScope();
                        if ( scope!=ScopeType.STATELESS && scope.isContextActive() )
                        {
                           scope.getContext().remove(name);
                        }
                        init.removeObserverMethods(component);
                     }
                     Contexts.getApplicationContext().remove(name + COMPONENT_SUFFIX);
                  }
              
                  if (hotDeploymentStrategy.isHotDeployClassLoaderEnabled())
                  {
                     installHotDeployableComponents();
                  }
                  Contexts.getEventContext().set(HotDeploymentStrategy.NAME, hotDeploymentStrategy);
                  init.setTimestamp( System.currentTimeMillis() );
                  installComponents(init);
                  ServletLifecycle.endReinitialization();
                  log.info("done redeploying");
               }
              
View Full Code Here

Examples of org.oasisopen.sca.annotation.Init

        super(registry);
    }   

    @Override
    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("[JCA90008] Initializer must not have argments", method);
View Full Code Here

Examples of org.oasisopen.sca.annotation.Init

        super(factory);
    }

    @Override
    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("Initializer must not have argments", method);
View Full Code Here

Examples of org.oasisopen.sca.annotation.Init

        super(factory);
    }

    @Override
    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("Initializer must not have argments", method);
View Full Code Here

Examples of org.osoa.sca.annotations.Init

                injectors.add(injector);
            }
        }
        for (Method method : methods) {
            // FIXME Java5
            Init init = method.getAnnotation(Init.class);
            if (init != null && initInvoker == null) {
                initInvoker = new MethodEventInvoker(method);
                eagerInit = init.eager();
                continue;
            }
            Destroy destroy = method.getAnnotation(Destroy.class);
            if (destroy != null && destroyInvoker == null) {
                destroyInvoker = new MethodEventInvoker(method);
View Full Code Here

Examples of org.osoa.sca.annotations.Init

    public InitProcessor() {
    }

    public void visitMethod(Method method, ComponentType type) throws ConfigurationLoadException {
        Init init = method.getAnnotation(Init.class);
        if (init == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new ConfigurationLoadException("Initialize methods cannot take parameters");
        }
        type.getExtensibilityElements().add(new InitInvokerExtensibilityElement(method, init.eager()));
    }
View Full Code Here

Examples of org.osoa.sca.annotations.Init

        super(factory);
    }

    @Override
    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("Initializer must not have argments", method);
View Full Code Here

Examples of org.osoa.sca.annotations.Init

        super(factory);
    }

    @Override
    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("Initializer must not have argments", method);
View Full Code Here

Examples of org.osoa.sca.annotations.Init

    public InitProcessor(AssemblyFactory factory) {
        super(factory);
    }

    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("Initializer must not have argments", method);
View Full Code Here

Examples of org.osoa.sca.annotations.Init

        super(factory);
    }

    @Override
    public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
        Init annotation = method.getAnnotation(Init.class);
        if (annotation == null) {
            return;
        }
        if (method.getParameterTypes().length != 0) {
            throw new IllegalInitException("Initializer must not have argments", method);
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.