Tabnine Logo
CustomizationEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
CustomizationEvent
in
com.nepxion.discovery.plugin.framework.event

Best Java code snippets using com.nepxion.discovery.plugin.framework.event.CustomizationEvent (Showing top 2 results out of 315)

origin: Nepxion/Discovery

@Subscribe
public void onCustomization(CustomizationEvent customizationEvent) {
  CustomizationEntity customizationEntity = customizationEvent.getCustomizationEntity();
  String serviceId = pluginAdapter.getServiceId();
  if (customizationEntity != null) {
    Map<String, Map<String, String>> customizationMap = customizationEntity.getCustomizationMap();
    Map<String, String> customizationParameter = customizationMap.get(serviceId);
    System.out.println("========== 获取客户化对象, serviceId=" + serviceId + ", customizationParameter=" + customizationParameter);
    // 根据customizationParameter的参数动态切换数据源
  } else {
    System.out.println("========== 获取客户化对象, serviceId=" + serviceId + ", customizationEntity=" + customizationEntity);
    // 根据customizationParameter的参数动态切换数据源
  }
}
origin: Nepxion/Discovery

  public void fireCustomization() {
    RuleEntity ruleEntity = pluginAdapter.getRule();
    fireCustomization(new CustomizationEvent(ruleEntity != null ? ruleEntity.getCustomizationEntity() : null));
  }
}
com.nepxion.discovery.plugin.framework.eventCustomizationEvent

Most used methods

  • <init>
  • getCustomizationEntity

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
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