Package org.jboss.seam.annotations

Examples of org.jboss.seam.annotations.Install


           //if this class already has the @Name annotation, the XML element
           //is just adding configuration to the existing component, don't
           //add another ComponentDescriptor (this is super-important to
           //allow overriding!)
           if (nameAnnotation!=null && nameAnnotation.value().equals(name)) {
             Install install = clazz.getAnnotation(Install.class);
             if (install == null || install.value()) {
               className = null;
             }
           }
         } catch (ClassNotFoundException cnfe) {
           //there is no class implied by the XML element name so the
View Full Code Here


               if (line.indexOf("@Name") != -1 || line.indexOf("@" + Name.class.getName()) != -1)
               {
                  //possibly a Seam component
                  log.debug("Groovy file possibly a Seam component: " + fileDescriptor.getName());
                  Class<Object> groovyClass = (Class<Object>) classLoader.loadClass(classname);
                  Install install = groovyClass.getAnnotation(Install.class);
                  boolean installable = ( install == null || install.value() )
                        && ( groovyClass.isAnnotationPresent(Name.class)
                           || classLoader.getResources(filename).hasMoreElements() );
                  if (installable)
                  {
                     log.debug("found groovy component class: " + fileDescriptor.getName());
View Full Code Here

               if (line.indexOf("@Name") != -1 || line.indexOf("@" + Name.class.getName()) != -1)
               {
                  //possibly a Seam component
                  log.debug("Groovy file possibly a Seam component: " + name);
                  Class<Object> groovyClass = (Class<Object>) classLoader.loadClass(classname);
                  Install install = groovyClass.getAnnotation(Install.class);
                  boolean installable = ( install == null || install.value() )
                        && ( groovyClass.isAnnotationPresent(Name.class)
                           || classLoader.getResources(filename).hasMoreElements() );
                  if (installable)
                  {
                     log.debug("found groovy component class: " + name);
View Full Code Here

           //if this class already has the @Name annotation, the XML element
           //is just adding configuration to the existing component, don't
           //add another ComponentDescriptor (this is super-important to
           //allow overriding!)
           if (nameAnnotation!=null && nameAnnotation.value().equals(name)) {
             Install install = clazz.getAnnotation(Install.class);
             if (install == null || install.value()) {
               className = null;
             }
           }
         } catch (ClassNotFoundException cnfe) {
           //there is no class implied by the XML element name so the
View Full Code Here

           //if this class already has the @Name annotation, the XML element
           //is just adding configuration to the existing component, don't
           //add another ComponentDescriptor (this is super-important to
           //allow overriding!)
           if (nameAnnotation!=null && nameAnnotation.value().equals(name)) {
             Install install = clazz.getAnnotation(Install.class);
             if (install == null || install.value()) {
               className = null;
             }
           }
         } catch (ClassNotFoundException cnfe) {
           //there is no class implied by the XML element name so the
View Full Code Here

        return new String[0];
    }

   public String[] getDependencies()
    {
        Install install = componentClass.getAnnotation(Install.class);
        if (install == null)
        {
            return null;
        }
        return install.dependencies();
    }
View Full Code Here

    }

    public Class[] getGenericDependencies()
    {
       
        Install install = componentClass.getAnnotation(Install.class);
        if (install == null)
        {
            return null;
        }
        return install.genericDependencies();
    }
View Full Code Here

        return install.genericDependencies();
    }

    public String[] getClassDependencies()
    {
        Install install = componentClass.getAnnotation(Install.class);
        if (install == null)
        {
            return null;
        }
        return install.classDependencies()
    }
View Full Code Here

    {
        if (installed != null)
        {
            return installed;
        }
        Install install = componentClass.getAnnotation(Install.class);
        if (install == null)
        {
            return true;
        }
        return install.debug() ? Init.instance().isDebug() : install.value();
    }
View Full Code Here

    {
        if (precedence != null)
        {
            return precedence;
        }
        Install install = componentClass.getAnnotation(Install.class);
        if (install == null)
        {
            return Install.APPLICATION;
        }
        return install.precedence();
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.annotations.Install

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.