Examples of artifact()


Examples of org.eclipse.sapphire.java.JavaType.artifact()

        {
            final JavaType conditionType = def.getConditionClass().target();
           
            if( conditionType != null )
            {
                final Class<?> conditionClass = (Class<?>) conditionType.artifact();
               
                if( conditionClass != null )
                {
                    final SapphireCondition condition = SapphireCondition.create( this.part, conditionClass, null );
                   
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaType.artifact()

   
    @SuppressWarnings( "unchecked" )
    private static <T> Class<T> resolve( final ReferenceValue<JavaTypeName,JavaType> ref )
    {
        final JavaType type = ref.target();
        return ( type != null ? (Class<T>) type.artifact() : null );
    }
   
}
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaType.artifact()

   
            final String sdef = (String) properties.get( "sdef" );
            final DefinitionLoader.Reference<WizardDef> definition = DefinitionLoader.context( context ).sdef( sdef ).wizard();
           
            final JavaType operationJavaType = definition.resolve().getElementType().target();
            final ElementType operationElementType = ElementType.read( (Class<?>) operationJavaType.artifact(), true );
   
            init( operationElementType, definition );
           
            this.editor = (String) properties.get( "editor" );
        }
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaType.artifact()

            JavaType type;
            Class<?> cl;
           
            type = handlers.get( 0 ).getImplClass().target();
            assertNotNull( type );
            cl = (Class<?>) type.artifact();
            assertNotNull( cl );
            assertEquals( TestActionHandler.class, cl );
        }
        finally
        {
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaType.artifact()

    private ShapeFactoryCaseDef getShapeFactoryCase( final Element element )
  {
        for( ShapeFactoryCaseDef shapeFactoryCaseDef : this.shapeFactoryDef.getCases() )
        {
            final JavaType type = shapeFactoryCaseDef.getElementType().target();
            final Class<?> cl = (Class<?>) type.artifact();

            if(cl.isAssignableFrom( element.getClass() ) )
            {
                return shapeFactoryCaseDef;
            }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver.artifact()

      if (alternateMavenSettings != null)
      {
         mvnResolver.configureFrom(alternateMavenSettings);
      }

      return mvnResolver.artifact(artifact)
                        .resolveAsFiles();
   }

   private boolean mavenIsUsed()
   {
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver.artifact()

        .loadMetadataFromPom("pom.xml");

    WebArchive war = ShrinkWrap.create(WebArchive.class, "plane_test.war").addPackages(true, "se.plushogskolan")
        .addAsWebInfResource("beans.xml").addAsResource("META-INF/persistence.xml");

    war.addAsLibraries(mvnResolver.artifact("org.easymock:easymock:3.2").resolveAsFiles());
    war.addAsLibraries(mvnResolver.artifact("joda-time:joda-time:2.2").resolveAsFiles());
    war.addAsLibraries(mvnResolver.artifact("org.jadira.usertype:usertype.core:3.1.0.CR8").resolveAsFiles());

    log.info("JAR: " + war.toString(true));
    return war;
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver.artifact()

    WebArchive war = ShrinkWrap.create(WebArchive.class, "plane_test.war").addPackages(true, "se.plushogskolan")
        .addAsWebInfResource("beans.xml").addAsResource("META-INF/persistence.xml");

    war.addAsLibraries(mvnResolver.artifact("org.easymock:easymock:3.2").resolveAsFiles());
    war.addAsLibraries(mvnResolver.artifact("joda-time:joda-time:2.2").resolveAsFiles());
    war.addAsLibraries(mvnResolver.artifact("org.jadira.usertype:usertype.core:3.1.0.CR8").resolveAsFiles());

    log.info("JAR: " + war.toString(true));
    return war;
  }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver.artifact()

    WebArchive war = ShrinkWrap.create(WebArchive.class, "plane_test.war").addPackages(true, "se.plushogskolan")
        .addAsWebInfResource("beans.xml").addAsResource("META-INF/persistence.xml");

    war.addAsLibraries(mvnResolver.artifact("org.easymock:easymock:3.2").resolveAsFiles());
    war.addAsLibraries(mvnResolver.artifact("joda-time:joda-time:2.2").resolveAsFiles());
    war.addAsLibraries(mvnResolver.artifact("org.jadira.usertype:usertype.core:3.1.0.CR8").resolveAsFiles());

    log.info("JAR: " + war.toString(true));
    return war;
  }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver.artifact()

    MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).goOffline().loadMetadataFromPom("pom.xml");
   
    return ShrinkWrap.create(WebArchive.class, "test.war")
            // prepare as process application archive for fox platform
//            .addAsManifestResource("ARQUILLIAN-MANIFEST-JBOSS7.MF", "MANIFEST.MF")
            .addAsLibraries(resolver.artifact("com.camunda.fox.platform:fox-platform-client").resolveAsFiles())
            .addAsWebResource("META-INF/processes.xml", "WEB-INF/classes/META-INF/processes.xml")
            // add your own classes (could be done one by one as well)
            //.addPackages(true, "com.camunda.fox.showcase.invoice")
            .addPackages(true, "com.camunda.fox.showcase.invoice.test.mock")
            // add process definition
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.