Examples of artifact()


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

                            relevantCaseDef = entry;
                            break;
                        }
                        else
                        {
                            final Class<?> cl = (Class<?>) type.artifact();
       
                            if( cl == null || cl.isAssignableFrom( element.getClass() ) )
                            {
                                relevantCaseDef = entry;
                                break;
View Full Code Here

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

            {
                throw new IllegalStateException();
            }
           
            final JavaType elementJavaType = def.getElementType().target();
            type = ElementType.read( (Class<?>) elementJavaType.artifact(), true );
        }
       
        final XmlEditorResourceStore store = createResourceStore( this.sourcePage );
        return type.instantiate( new RootXmlResource( store ) );
    }
View Full Code Here

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

            {
                Object listener = null;
               
                try
                {
                    listener = ( (Class<?>) listenerClass.artifact() ).newInstance();
                }
                catch( Exception e )
                {
                    final String msg = failedToInstantiate.format( listenerClass.name() );
                    Sapphire.service( LoggingService.class ).logError( msg, e );
View Full Code Here

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

           
            if( customPartImplClass != null )
            {
                try
                {
                    part = (SapphirePart) ( (Class<?>) customPartImplClass.artifact() ).newInstance();
                }
                catch( Exception e )
                {
                    Sapphire.service( LoggingService.class ).log( e );
                }
View Full Code Here

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

                        if( element instanceof ServiceDef )
                        {
                            final ServiceDef def = (ServiceDef) element;
                            final String id = def.getId().text();
                            final JavaType type = def.getImplementation().target();
                            final Class<?> cl = ( type == null ? null : (Class<?>) type.artifact() );
                           
                            if( id != null && id.startsWith( "Sapphire." ) &&
                                cl != null && ConversionService.class.isAssignableFrom( cl ) )
                            {
                                return true;
View Full Code Here

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

                        if( element instanceof ServiceDef )
                        {
                            final ServiceDef def = (ServiceDef) element;
                            final String id = def.getId().text();
                            final JavaType type = def.getImplementation().target();
                            final Class<?> cl = ( type == null ? null : (Class<?>) type.artifact() );
                           
                            if( id != null && id.startsWith( "Sapphire." ) &&
                                cl != null && FactsService.class.isAssignableFrom( cl ) )
                            {
                                return true;
View Full Code Here

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

            if( persistedStateElementJavaType == null )
            {
                throw new IllegalStateException();
            }
           
            final ElementType persistedStateElementType = ElementType.read( (Class<?>) persistedStateElementJavaType.artifact() );
           
            try
            {
                final Resource resource = new RootXmlResource( new XmlResourceStore( file ) ) ;
               
View Full Code Here

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

                {
                    final JavaType implType = def.getImplClass().target();
                   
                    if( implType != null )
                    {
                        final Class<?> implClass = (Class<?>) implType.artifact();
                       
                        if( implClass != null )
                        {
                            final SapphireActionHandler handler = (SapphireActionHandler) implClass.newInstance();
                            handler.init( action, def );
View Full Code Here

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

                {
                    final JavaType implType = def.getImplClass().target();
                   
                    if( implType != null )
                    {
                        final Class<?> implClass = (Class<?>) implType.artifact();
                       
                        if( implClass != null )
                        {
                            final SapphireActionHandlerFactory factory = (SapphireActionHandlerFactory) implClass.newInstance();
                            factory.init( action, def );
View Full Code Here

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

                {
                    final JavaType implClass = def.getImplClass().target();
                   
                    if( implClass != null )
                    {
                        final SapphireActionHandlerFilter filter = (SapphireActionHandlerFilter) ( (Class<?>) implClass.artifact() ).newInstance();
                        addFilter( filter );
                    }
                }
                catch( Exception e )
                {
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.