Examples of PropertiesProvider


Examples of org.japura.gui.calendar.PropertiesProvider

  setFont(getCalendar().getPropertiesProvider().getDayOfWeekFont());
  addMouseListener(this);
  }

  private Border buildBorder() {
  PropertiesProvider pp = getCalendar().getPropertiesProvider();

  Insets margin = pp.getDayOfWeekMargin();
  int t = margin.top;
  int l = margin.left;
  int b = margin.bottom;
  int r = margin.right;

  Border ini =
    BorderFactory.createMatteBorder(1, 0, 0, 0,
      pp.getTopDayOfWeekSeparatorColor());
  Border outi =
    BorderFactory.createMatteBorder(0, 0, 1, 0,
      pp.getBottomDayOfWeekSeparatorColor());

  Border in = BorderFactory.createEmptyBorder(t, l, b, r);
  Border out = BorderFactory.createCompoundBorder(outi, ini);
  return BorderFactory.createCompoundBorder(out, in);
  }
View Full Code Here

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

        return builder.install();
    }

    @Override
    public void start(StartContext startContext) throws StartException {
        PropertiesProvider propsProvider = new DefaultPropertiesProvider(getRuntimeProperties(), true);
        Runtime runtime = RuntimeLocator.createRuntime(new WildFlyRuntimeFactory(), propsProvider);
        runtime.init();

        // Initialize ConfigurationAdmin content
        Object configsDir = propsProvider.getProperty(Constants.PROPERTY_CONFIGURATIONS_DIR);
        ActivationSupport.initConfigurationAdmin(new File((String) configsDir));
    }
View Full Code Here

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

        return builder.install();
    }

    @Override
    public void start(StartContext startContext) throws StartException {
        PropertiesProvider propsProvider = new DefaultPropertiesProvider(initialProperties(), true);
        runtime = RuntimeLocator.createRuntime(new WildFlyRuntimeFactory(), propsProvider);
        runtime.init();
    }
View Full Code Here

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

public final class OSGiRuntimeActivator implements BundleActivator {

    @Override
    public void start(BundleContext context) throws Exception {
        BundleContext syscontext = context.getBundle(0).getBundleContext();
        PropertiesProvider propsProvider = new OSGiPropertiesProvider(syscontext);
        Runtime runtime = RuntimeLocator.createRuntime(new OSGiRuntimeFactory(syscontext), propsProvider);
        runtime.init();
    }
View Full Code Here

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

    public static Runtime getRuntime() {
        return RuntimeLocator.getRuntime();
    }

    public static Runtime createRuntime(BundleContext syscontext) {
        PropertiesProvider propsProvider = new OSGiPropertiesProvider(syscontext);
        return RuntimeLocator.createRuntime(new OSGiRuntimeFactory(syscontext), propsProvider);
    }
View Full Code Here

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

*/
public final class OSGiRuntimeActivator implements BundleActivator {

    @Override
    public void start(BundleContext context) throws Exception {
        PropertiesProvider propsProvider = new OSGiPropertiesProvider(context);
        Runtime runtime = RuntimeLocator.createRuntime(new OSGiRuntimeFactory(context), propsProvider);
        runtime.init();
    }
View Full Code Here

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

    public OSGiPropertiesProvider(BundleContext bundleContext) {
        this(bundleContext, null);
    }

    public OSGiPropertiesProvider(BundleContext bundleContext, String environmentVariablePrefix) {
        PropertiesProvider system = new SystemPropertiesProvider();
        PropertiesProvider env =  environmentVariablePrefix != null ? new EnvPropertiesProvider(environmentVariablePrefix) : new EnvPropertiesProvider(system);

        this.delegate = new SubstitutionPropertiesProvider(
                new CompositePropertiesProvider(
                        new BundleContextPropertiesProvider(bundleContext),
                        system,
View Full Code Here

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

    @Override
    public void contextInitialized(ServletContextEvent event) {

        // Create the runtime
        ServletContext servletContext = event.getServletContext();
        PropertiesProvider propsProvider = new TomcatPropertiesProvider(servletContext);
        Runtime runtime = RuntimeLocator.createRuntime(new TomcatRuntimeFactory(servletContext), propsProvider);
        runtime.init();

        // HttpService integration
        ModuleContext moduleContext = runtime.getModuleContext();
View Full Code Here

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

        resolverRegistration = syscontext.registerService(Resolver.class, resolver, null);
        return resolver;
    }

    private Repository registerRepositoryService(final Runtime runtime) {
        PropertiesProvider propertyProvider = new RuntimePropertiesProvider(runtime);
        Repository repository = new DefaultRepository(propertyProvider);
        ModuleContext syscontext = runtime.getModuleContext();
        repositoryRegistration =  RepositoryRuntimeRegistration.registerRepository(syscontext, repository);
        return repository;
    }
View Full Code Here

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

public final class OSGiRuntimeActivator implements BundleActivator {

    @Override
    public void start(BundleContext context) throws Exception {
        BundleContext syscontext = context.getBundle(0).getBundleContext();
        PropertiesProvider propsProvider = new BundleContextPropertiesProvider(syscontext);
        Runtime runtime = RuntimeLocator.createRuntime(new OSGiRuntimeFactory(syscontext), propsProvider);
        runtime.init();
    }
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.