Tabnine Logo
DefaultServiceDescription.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.logicbus.models.servant.DefaultServiceDescription
constructor

Best Java code snippets using com.logicbus.models.servant.DefaultServiceDescription.<init> (Showing top 5 results out of 315)

origin: anylogic/alogic

DefaultServiceDescription sd = new DefaultServiceDescription(id);
origin: anylogic/alogic

String id = name.substring(start + 1, end);
Path childPath = _path.append(id);
DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
sd.setModule(servant);
sd.setName(id);
origin: anylogic/alogic

/**
 * 从XML节点中提取服务描述信息
 * @param _path 父节点路径
 * @param root XML节点
 * @return 服务描述信息
 */
protected ServiceDescription toServiceDescription(Path _path,Element root){
  String id = root.getAttribute("id");
  if (id == null){
    return null;
  }
  
  Path childPath = _path.append(id);
  
  DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
  sd.fromXML(root);
  sd.setPath(childPath.getPath());
  
  return sd;
}

origin: anylogic/alogic

  private void serviceFound(Element element,ServantCatalogNodeImpl node, String src,Class<?> bootstrap) {
    //从xml文件名中获取服务id
    int end = src.lastIndexOf('.');
    int start = src.lastIndexOf('/');
    String id = src.substring(start + 1, end);
    
    Path childPath = node.getPath().append(id);
    DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
    sd.setModule(servant);
    sd.setName(id);
    sd.setNote(id);
    sd.setPath(childPath.getPath());
    String visible = element.getAttribute("visible");
    sd.setVisible(StringUtils.isNotEmpty(visible)?visible:"public");
    String log = element.getAttribute("log");
    sd.setLogType(StringUtils.isNotEmpty(log)?log:"brief");
    sd.getProperties().SetValue("script", src);
    sd.getProperties().SetValue("bootstrap", bootstrap.getName());
    node.addService(sd.getServiceID(), sd);
  }
}
origin: anylogic/alogic

protected ServiceDescription toServiceDescription(Path _path,Element root){
  String id = root.getAttribute("id");
  if (id == null){
    return null;
  }
  
  Path childPath = _path.append(id);
  
  DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
  sd.fromXML(root);
  
  //保存module
  String module = sd.getModule();
  Properties p = sd.getProperties();
  p.SetValue("servant.impl", module);
  sd.setModule(servant);
  sd.setPath(childPath.getPath());        
  return sd;
}
com.logicbus.models.servantDefaultServiceDescription<init>

Javadoc

constructor

Popular methods of DefaultServiceDescription

  • getProperties
    获取参数变量集
  • setModule
    设置服务实现代码
  • setPath
    设置服务路径
  • fromXML
  • getModule
    获得服务实现模块
  • getServiceID
    获得服务ID
  • setLogType
    设置日志类型
  • setName
    设置服务名称
  • setNote
    设置服务说明
  • setVisible
    设置服务的可见性
  • getAcGroup
  • getLogType
    获取日志类型
  • getAcGroup,
  • getLogType,
  • getName,
  • getNote,
  • getPath,
  • getPrivilege,
  • getVisible,
  • guard,
  • parseLogType

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now