Examples of Config


Examples of org.terasology.config.Config

public class ShaderParametersDebug extends ShaderParametersBase {

    public void applyParameters(Material program) {
        super.applyParameters(program);

        Config config = CoreRegistry.get(Config.class);

        int texId = 0;

        switch (config.getRendering().getDebug().getStage()) {
            case SHADOW_MAP:
                GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
                DefaultRenderingProcess.getInstance().bindFboDepthTexture("sceneShadowMap");
                program.setInt("texDebug", texId++, true);
                break;
View Full Code Here

Examples of org.voltdb.SystemProcedureCatalog.Config

                                Procedure proc) {
        if (invocation == null || proc == null) {
            return null;
        } else if (invocation.getType() == ProcedureInvocationType.ORIGINAL &&
                !invocation.procName.equalsIgnoreCase("@AdHoc")) {
            Config sysProc = SystemProcedureCatalog.listing.get(invocation.getProcName());
            if (sysProc != null && sysProc.allowedInReplica) {
                // white-listed sysprocs, adhoc is a special case
                return null;
            }
        }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.description.config.Config

      return null;
    }
  }

  public boolean isConfigActive(String configId) {
    Config config = this.getDataService().getConfig(configId);
    if (config != null) {
      return config.isActive();
    } else {
        return false;
    }
  }
View Full Code Here

Examples of org.wso2.carbon.discovery.config.Config

        if (!isDiscoverable(service)) {
            return;
        }

        Config config = getDiscoveryConfig(service);

        try {
            // create the service client object before getting the eprs
            // in order to get the EPRs
            ServiceClient serviceClient = initServiceClient(discoveryProxyEPR, notificationType,
                    service.getAxisConfiguration());

            // create the hello/bye message and send
            String uniqueID = getServiceID(config, service);
            EndpointReference endpointReference = new EndpointReference(uniqueID);
            TargetService targetService = new TargetService(endpointReference);

            targetService.setTypes(new QName[] { Util.getTypes(service) });

            URI[] scopes = new URI[config.getScopes().size()];
            for (int i = 0; i < config.getScopes().size(); i++) {
                scopes[i] = new URI(config.getScopes().get(i));
            }
            targetService.setScopes(scopes);

            String[] eprs = service.getEPRs();
            URI[] xAddres = new URI[eprs.length];
            for (int i = 0; i < eprs.length; i++) {
                String epr = eprs[i];
                if (epr.endsWith("/")) {
                    epr = epr.substring(0, epr.length() - 1);
                }
                xAddres[i] = new URI(epr);
            }
            targetService.setXAddresses(xAddres);
            targetService.setMetadataVersion(config.getMetadataVersion());

            Notification notification = new Notification(notificationType, targetService);
            serviceClient.fireAndForget(DiscoveryOMUtils.toOM(notification,
                    OMAbstractFactory.getOMFactory()));
            serviceClient.cleanup();
View Full Code Here

Examples of plugins.audioPlayer.javazoom.jlgui.player.amp.util.Config

     * @param filename
     * @return
     */
    protected boolean loadM3U(String filename)
    {
        Config config = Config.getInstance();
        _playlist = new Vector();
        boolean loaded = false;
        BufferedReader br = null;
        try
        {
            // Playlist from URL ? (http:, ftp:, file: ....)
            if (Config.startWithProtocol(filename))
            {
                br = new BufferedReader(new InputStreamReader((new URL(filename)).openStream()));
            }
            else
            {
                br = new BufferedReader(new FileReader(filename));
            }
            String line = null;
            String songName = null;
            String songFile = null;
            String songLength = null;
            while ((line = br.readLine()) != null)
            {
                if (line.trim().length() == 0) continue;
                if (line.startsWith("#"))
                {
                    if (line.toUpperCase().startsWith("#EXTINF"))
                    {
                        int indA = line.indexOf(",", 0);
                        if (indA != -1)
                        {
                            songName = line.substring(indA + 1, line.length());
                        }
                        int indB = line.indexOf(":", 0);
                        if (indB != -1)
                        {
                            if (indB < indA) songLength = (line.substring(indB + 1, indA)).trim();
                        }
                    }
                }
                else
                {
                    songFile = line;
                    if (songName == null) songName = songFile;
                    if (songLength == null) songLength = "-1";
                    PlaylistItem pli = null;
                    if (Config.startWithProtocol(songFile))
                    {
                        // URL.
                        pli = new PlaylistItem(songName, songFile, Long.parseLong(songLength), false);
                    }
                    else
                    {
                        // File.
                        File f = new File(songFile);
                        if (f.exists())
                        {
                            pli = new PlaylistItem(songName, songFile, Long.parseLong(songLength), true);
                        }
                        else
                        {
                            // Try relative path.
                            f = new File(config.getLastDir() + songFile);
                            if (f.exists())
                            {
                                pli = new PlaylistItem(songName, config.getLastDir() + songFile, Long.parseLong(songLength), true);
                            }
                            else
                            {
                                // Try optional M3U home.
                                if (M3UHome != null)
View Full Code Here

Examples of pneumaticCraft.common.Config

        FMLCommonHandler.instance().bus().register(tickHandler);
        MinecraftForge.EVENT_BUS.register(new EventHandlerPneumaticCraft());
        MinecraftForge.EVENT_BUS.register(new EventHandlerUniversalSensor());

        FMLCommonHandler.instance().bus().register(new CraftingHandler());
        FMLCommonHandler.instance().bus().register(new Config());
    }
View Full Code Here

Examples of rabbit.util.Config

    /** Set the config file to use for this proxy.
     * @param conf the name of the file to use for proxy configuration.
     */
    public void setConfig (String conf) throws IOException {
  setConfig (new Config (conf));
    }
View Full Code Here

Examples of railo.runtime.config.Config

   * @param className
   * @return matching Class
   * @throws ClassException
   */
  public static Class loadClass(String className) throws ClassException {
    Config config = ThreadLocalPageContext.getConfig();
    Class clazz = loadClass(config==null?null:config.getClassLoader(),className,null);
    if(clazz!=null) return clazz;
    throw new ClassException("cannot load class through its string name, because no definition for the class with the specified name ["+className+"] could be found");
  }
View Full Code Here

Examples of simpleserver.config.xml.Config

      }
      player.setChat(new DimensionChat(player, dim));
    } else if (mode.equals("group")) {
      Group group = player.getGroup();

      Config config = player.getServer().config;

      if (args.length > 1) {
        try {
          int groupId = Integer.parseInt(args[1]);
          if (config.groups.contains(groupId)) {
View Full Code Here

Examples of smartrics.rest.fitnesse.fixture.support.Config

    private PartsFactory f;

    @Before
    public void setUp() {
        Config c = Config.getConfig();
        c.add("http.client.use.new.http.uri.factory", "false");
        f = new PartsFactory();
    }
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.