1 4 package com.tc.object.config.schema; 5 6 import java.util.Arrays ; 7 8 11 public class AppContext { 12 13 private final String [] paths; 14 private final String [] distributedEvents; 15 private final SpringContextBean[] beans; 16 private final String rootName; 17 private final boolean locationInfoEnabled; 18 19 public AppContext(String [] paths, String [] distributedEvents, SpringContextBean[] beans, String rootName, 20 boolean locationInfoEnabled) { 21 this.paths = paths; 22 this.distributedEvents = distributedEvents; 23 this.beans = beans; 24 this.rootName = rootName; 25 this.locationInfoEnabled = locationInfoEnabled; 26 } 27 28 public String [] paths() { 29 return paths; 30 } 31 32 public String [] distributedEvents() { 33 return distributedEvents; 34 } 35 36 public SpringContextBean[] beans() { 37 return beans; 38 } 39 40 public String rootName() { 41 return rootName; 42 } 43 44 public boolean locationInfoEnabled() { 45 return locationInfoEnabled; 46 } 47 48 public String toString() { 49 return "APP-CONTEXT: \nDIST-EVENTS: " + Arrays.asList(distributedEvents) + "\nPATHS\n\n" + Arrays.asList(paths) 50 + "\n" + Arrays.asList(beans); 51 } 52 } 53 | Popular Tags |