Package net.sf.atjc

Examples of net.sf.atjc.ServerInstance


  @Override
  public ServerInstance getServerInstance(Destination aDestination) throws ConfigurationException {
    if (configManager == null) {
      return null;
    }
    ServerInstance result = instances.get(aDestination);
    if (result != null) {
      // check if still active
    }
    if (result == null) {
      result = createNewInstance(aDestination);
View Full Code Here


    ServerConfig config = configManager.getServerConfig(aDestination.getServerId());
    if (config == null) {
      // no such server, try default config?
    }
    Class<? extends ServerInstance> instanceClass = getInstanceClass(config);
    ServerInstance instance;
    try {
      instance = instanceClass.newInstance();
    } catch (Exception e) {
      throw new ConfigurationException("Failed to create server instance. " + e.getMessage(), e);
    }
    instance.setDestination(aDestination);
    return instance;
  }
View Full Code Here

TOP

Related Classes of net.sf.atjc.ServerInstance

Copyright © 2018 www.massapicom. 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.