Examples of RuntimeFactory


Examples of org.jboss.gravia.runtime.spi.RuntimeFactory

     * </ol>
     */
    public static Runtime createRuntime(PropertiesProvider props) {
        IllegalArgumentAssertion.assertNotNull(props, "props");

        RuntimeFactory factory = null;
        String className = (String) props.getProperty(RuntimeFactory.class.getName());
        if (className != null) {
            try {
                factory = (RuntimeFactory) Class.forName(className).newInstance();
            } catch (Exception ex) {
View Full Code Here

Examples of org.jboss.gravia.runtime.spi.RuntimeFactory

    public static Runtime getEmbeddedRuntime() {
        Runtime runtime;
        synchronized (RuntimeLocator.class) {
            runtime = RuntimeLocator.getRuntime();
            if (runtime == null) {
                RuntimeFactory factory = new RuntimeFactory() {
                    @Override
                    public Runtime createRuntime(PropertiesProvider propertiesProvider) {
                        return new EmbeddedRuntime(propertiesProvider, null) {

                            @Override
View Full Code Here

Examples of org.jboss.gravia.runtime.spi.RuntimeFactory

public class EmbeddedUtils {

    public static Runtime getEmbeddedRuntime() {
        Runtime runtime = RuntimeLocator.getRuntime();
        if (runtime == null) {
            RuntimeFactory factory = new RuntimeFactory() {
                @Override
                public Runtime createRuntime(PropertiesProvider propertiesProvider) {
                    return new EmbeddedRuntime(propertiesProvider, null) {
                        @Override
                        protected ModuleEntriesProvider getDefaultEntriesProvider(Module module, Attachable context) {
View Full Code Here

Examples of org.jboss.gravia.runtime.spi.RuntimeFactory

     * </ol>
     */
    public static Runtime createRuntime(PropertiesProvider props) {
        NotNullException.assertValue(props, "props");

        RuntimeFactory factory = null;
        String className = (String) props.getProperty(RuntimeFactory.class.getName());
        if (className != null) {
            try {
                factory = (RuntimeFactory) Class.forName(className).newInstance();
            } catch (Exception ex) {
View Full Code Here

Examples of org.qi4j.bootstrap.RuntimeFactory

    @Override
    public void start( BundleContext bundleContext )
        throws Exception
    {
        RuntimeFactory factory = new RuntimeFactory()
        {
            @Override
            public Qi4jRuntime createRuntime()
            {
                return new Qi4jRuntimeImpl();
View Full Code Here

Examples of org.qi4j.bootstrap.RuntimeFactory

            {
                controllersLayerName = PlayQiSingle.LAYER;
                controllersModuleName = PlayQiSingle.MODULE;
            }

            RuntimeFactory runtimeFactory = ( RuntimeFactory ) classloader.loadClass(
                    RuntimeFactory.StandaloneApplicationRuntimeFactory.class.getName() ).newInstance();
            qi4j = runtimeFactory.createRuntime();
            if( qi4j == null )
            {
                throw new PlayQiException( "Can not create Qi4j without a Qi4j Runtime." );
            }
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.