ConfigurationImpl implements Configuration, Serializable { @Override public List<String> getIncomingInterceptorClassNames() { return incomingInterceptorClassNames; }  @Override Configuration setSystemPropertyPrefix(String systemPropertyPrefix); @Override String getSystemPropertyPrefix(); @Override Configuration parseSystemProperties(); @Override Configuration parseSystemProperties(Properties properties); @Override boolean isClustered(); @Override boolean isPersistenceEnabled(); @Override int getMaxDiskUsage(); @Override ConfigurationImpl setMaxDiskUsage(int maxDiskUsage); @Override ConfigurationImpl setGlobalMaxSize(long maxSize); @Override long getGlobalMaxSize(); @Override ConfigurationImpl setPersistenceEnabled(final boolean enable); @Override boolean isJournalDatasync(); @Override ConfigurationImpl setJournalDatasync(boolean enable); @Override long getFileDeployerScanPeriod(); @Override ConfigurationImpl setFileDeployerScanPeriod(final long period); @Override boolean isPersistDeliveryCountBeforeDelivery(); @Override ConfigurationImpl setPersistDeliveryCountBeforeDelivery(final boolean persistDeliveryCountBeforeDelivery); @Override int getScheduledThreadPoolMaxSize(); @Override ConfigurationImpl setScheduledThreadPoolMaxSize(final int maxSize); @Override int getThreadPoolMaxSize(); @Override ConfigurationImpl setThreadPoolMaxSize(final int maxSize); @Override long getSecurityInvalidationInterval(); @Override ConfigurationImpl setSecurityInvalidationInterval(final long interval); @Override long getAuthenticationCacheSize(); @Override ConfigurationImpl setAuthenticationCacheSize(final long size); @Override long getAuthorizationCacheSize(); @Override ConfigurationImpl setAuthorizationCacheSize(final long size); @Override long getConnectionTTLOverride(); @Override ConfigurationImpl setConnectionTTLOverride(final long ttl); @Override boolean isAmqpUseCoreSubscriptionNaming(); @Override Configuration setAmqpUseCoreSubscriptionNaming(boolean amqpUseCoreSubscriptionNaming); @Override boolean isAsyncConnectionExecutionEnabled(); @Override ConfigurationImpl setEnabledAsyncConnectionExecution(final boolean enabled); @Override List<String> getIncomingInterceptorClassNames(); @Override ConfigurationImpl setIncomingInterceptorClassNames(final List<String> interceptors); @Override List<String> getOutgoingInterceptorClassNames(); @Override ConfigurationImpl setOutgoingInterceptorClassNames(final List<String> interceptors); @Override Set<TransportConfiguration> getAcceptorConfigurations(); @Override ConfigurationImpl setAcceptorConfigurations(final Set<TransportConfiguration> infos); @Override ConfigurationImpl addAcceptorConfiguration(final TransportConfiguration infos); @Override ConfigurationImpl addAcceptorConfiguration(final String name, final String uri); @Override ConfigurationImpl clearAcceptorConfigurations(); @Override Map<String, TransportConfiguration> getConnectorConfigurations(); @Override ConfigurationImpl setConnectorConfigurations(final Map<String, TransportConfiguration> infos); @Override ConfigurationImpl addConnectorConfiguration(final String key, final TransportConfiguration info); @Override ConfigurationImpl addConnectorConfiguration(final String name, final String uri); @Override ConfigurationImpl clearConnectorConfigurations(); @Override GroupingHandlerConfiguration getGroupingHandlerConfiguration(); @Override ConfigurationImpl setGroupingHandlerConfiguration(final GroupingHandlerConfiguration groupingHandlerConfiguration); @Override List<BridgeConfiguration> getBridgeConfigurations(); @Override ConfigurationImpl setBridgeConfigurations(final List<BridgeConfiguration> configs); ConfigurationImpl addBridgeConfiguration(final BridgeConfiguration config); @Override List<BroadcastGroupConfiguration> getBroadcastGroupConfigurations(); @Override ConfigurationImpl setBroadcastGroupConfigurations(final List<BroadcastGroupConfiguration> configs); @Override ConfigurationImpl addBroadcastGroupConfiguration(final BroadcastGroupConfiguration config); @Override List<ClusterConnectionConfiguration> getClusterConfigurations(); @Override ConfigurationImpl setClusterConfigurations(final List<ClusterConnectionConfiguration> configs); @Override ConfigurationImpl addClusterConfiguration(final ClusterConnectionConfiguration config); @Override ClusterConnectionConfiguration addClusterConfiguration(String name, String uri); @Override ConfigurationImpl clearClusterConfigurations(); @Override List<DivertConfiguration> getDivertConfigurations(); @Override ConfigurationImpl setDivertConfigurations(final List<DivertConfiguration> configs); @Override ConfigurationImpl addDivertConfiguration(final DivertConfiguration config); @Deprecated @Override List<CoreQueueConfiguration> getQueueConfigurations(); @Override /** * Note: modifying the returned {@code List} will not impact the underlying {@code List}. */ List<QueueConfiguration> getQueueConfigs(); @Deprecated @Override ConfigurationImpl setQueueConfigurations(final List<CoreQueueConfiguration> coreQueueConfigurations); @Override ConfigurationImpl setQueueConfigs(final List<QueueConfiguration> configs); @Override ConfigurationImpl addQueueConfiguration(final CoreQueueConfiguration config); @Override ConfigurationImpl addQueueConfiguration(final QueueConfiguration config); @Override List<CoreAddressConfiguration> getAddressConfigurations(); @Override Configuration setAddressConfigurations(List<CoreAddressConfiguration> configs); @Override Configuration addAddressConfiguration(CoreAddressConfiguration config); @Override Map<String, DiscoveryGroupConfiguration> getDiscoveryGroupConfigurations(); @Override ConfigurationImpl setDiscoveryGroupConfigurations(final Map<String, DiscoveryGroupConfiguration> discoveryGroupConfigurations); @Override ConfigurationImpl addDiscoveryGroupConfiguration(final String key,
                                                           DiscoveryGroupConfiguration discoveryGroupConfiguration); @Override int getIDCacheSize(); @Override ConfigurationImpl setIDCacheSize(final int idCacheSize); @Override boolean isPersistIDCache(); @Override ConfigurationImpl setPersistIDCache(final boolean persist); @Override File getBindingsLocation(); @Override String getBindingsDirectory(); @Override ConfigurationImpl setBindingsDirectory(final String dir); @Override int getPageMaxConcurrentIO(); @Override ConfigurationImpl setPageMaxConcurrentIO(int maxIO); @Override boolean isReadWholePage(); @Override ConfigurationImpl setReadWholePage(boolean read); @Override File getJournalLocation(); @Override String getJournalDirectory(); @Override ConfigurationImpl setJournalDirectory(final String dir); @Override File getNodeManagerLockLocation(); @Override Configuration setNodeManagerLockDirectory(String dir); @Override JournalType getJournalType(); @Override ConfigurationImpl setPagingDirectory(final String dir); @Override File getPagingLocation(); @Override String getPagingDirectory(); @Override ConfigurationImpl setJournalType(final JournalType type); @Override boolean isJournalSyncTransactional(); @Override ConfigurationImpl setJournalSyncTransactional(final boolean sync); @Override boolean isJournalSyncNonTransactional(); @Override ConfigurationImpl setJournalSyncNonTransactional(final boolean sync); @Override int getJournalFileSize(); @Override ConfigurationImpl setJournalFileSize(final int size); @Override int getJournalPoolFiles(); @Override Configuration setJournalPoolFiles(int poolSize); @Override int getJournalMinFiles(); @Override ConfigurationImpl setJournalMinFiles(final int files); @Override boolean isLogJournalWriteRate(); @Override ConfigurationImpl setLogJournalWriteRate(final boolean logJournalWriteRate); @Override boolean isCreateBindingsDir(); @Override ConfigurationImpl setCreateBindingsDir(final boolean create); @Override boolean isCreateJournalDir(); @Override ConfigurationImpl setCreateJournalDir(final boolean create); @Override @Deprecated boolean isWildcardRoutingEnabled(); @Override @Deprecated ConfigurationImpl setWildcardRoutingEnabled(final boolean enabled); @Override WildcardConfiguration getWildcardConfiguration(); @Override Configuration setWildCardConfiguration(WildcardConfiguration wildcardConfiguration); @Override long getTransactionTimeout(); @Override ConfigurationImpl setTransactionTimeout(final long timeout); @Override long getTransactionTimeoutScanPeriod(); @Override ConfigurationImpl setTransactionTimeoutScanPeriod(final long period); @Override long getMessageExpiryScanPeriod(); @Override ConfigurationImpl setMessageExpiryScanPeriod(final long messageExpiryScanPeriod); @Override int getMessageExpiryThreadPriority(); @Override ConfigurationImpl setMessageExpiryThreadPriority(final int messageExpiryThreadPriority); @Override long getAddressQueueScanPeriod(); @Override ConfigurationImpl setAddressQueueScanPeriod(final long addressQueueScanPeriod); @Override boolean isSecurityEnabled(); @Override ConfigurationImpl setSecurityEnabled(final boolean enabled); @Override boolean isGracefulShutdownEnabled(); @Override ConfigurationImpl setGracefulShutdownEnabled(final boolean enabled); @Override long getGracefulShutdownTimeout(); @Override ConfigurationImpl setGracefulShutdownTimeout(final long timeout); @Override boolean isJMXManagementEnabled(); @Override ConfigurationImpl setJMXManagementEnabled(final boolean enabled); @Override String getJMXDomain(); @Override ConfigurationImpl setJMXDomain(final String domain); @Override boolean isJMXUseBrokerName(); @Override ConfigurationImpl setJMXUseBrokerName(boolean jmxUseBrokerName); @Override String getLargeMessagesDirectory(); @Override File getLargeMessagesLocation(); @Override ConfigurationImpl setLargeMessagesDirectory(final String directory); @Override boolean isMessageCounterEnabled(); @Override ConfigurationImpl setMessageCounterEnabled(final boolean enabled); @Override long getMessageCounterSamplePeriod(); @Override ConfigurationImpl setMessageCounterSamplePeriod(final long period); @Override int getMessageCounterMaxDayHistory(); @Override ConfigurationImpl setMessageCounterMaxDayHistory(final int maxDayHistory); @Override SimpleString getManagementAddress(); @Override ConfigurationImpl setManagementAddress(final SimpleString address); @Override SimpleString getManagementNotificationAddress(); @Override ConfigurationImpl setManagementNotificationAddress(final SimpleString address); @Override String getClusterUser(); @Override ConfigurationImpl setClusterUser(final String user); @Override String getClusterPassword(); boolean isFailoverOnServerShutdown(); ConfigurationImpl setFailoverOnServerShutdown(boolean failoverOnServerShutdown); @Override ConfigurationImpl setClusterPassword(final String theclusterPassword); @Override int getJournalCompactMinFiles(); @Override int getJournalCompactPercentage(); @Override ConfigurationImpl setJournalCompactMinFiles(final int minFiles); @Override int getJournalFileOpenTimeout(); @Override Configuration setJournalFileOpenTimeout(int journalFileOpenTimeout); @Override ConfigurationImpl setJournalCompactPercentage(final int percentage); @Override long getServerDumpInterval(); @Override ConfigurationImpl setServerDumpInterval(final long intervalInMilliseconds); @Override int getMemoryWarningThreshold(); @Override ConfigurationImpl setMemoryWarningThreshold(final int memoryWarningThreshold); @Override long getMemoryMeasureInterval(); @Override ConfigurationImpl setMemoryMeasureInterval(final long memoryMeasureInterval); @Override int getJournalMaxIO_AIO(); @Override ConfigurationImpl setJournalMaxIO_AIO(final int journalMaxIO); @Override int getJournalBufferTimeout_AIO(); @Override Integer getJournalDeviceBlockSize(); @Override ConfigurationImpl setJournalDeviceBlockSize(Integer deviceBlockSize); @Override ConfigurationImpl setJournalBufferTimeout_AIO(final int journalBufferTimeout); @Override int getJournalBufferSize_AIO(); @Override ConfigurationImpl setJournalBufferSize_AIO(final int journalBufferSize); @Override int getJournalMaxIO_NIO(); @Override ConfigurationImpl setJournalMaxIO_NIO(final int journalMaxIO); @Override int getJournalBufferTimeout_NIO(); @Override ConfigurationImpl setJournalBufferTimeout_NIO(final int journalBufferTimeout); @Override int getJournalBufferSize_NIO(); @Override ConfigurationImpl setJournalBufferSize_NIO(final int journalBufferSize); @Override Map<String, AddressSettings> getAddressesSettings(); @Override ConfigurationImpl setAddressesSettings(final Map<String, AddressSettings> addressesSettings); @Override ConfigurationImpl addAddressesSetting(String key, AddressSettings addressesSetting); @Override ConfigurationImpl clearAddressesSettings(); @Override Map<String, ResourceLimitSettings> getResourceLimitSettings(); @Override ConfigurationImpl setResourceLimitSettings(final Map<String, ResourceLimitSettings> resourceLimitSettings); @Override ConfigurationImpl addResourceLimitSettings(ResourceLimitSettings resourceLimitSettings); @Override Map<String, Set<Role>> getSecurityRoles(); @Override ConfigurationImpl putSecurityRoles(String match, Set<Role> roles); @Override ConfigurationImpl setSecurityRoles(final Map<String, Set<Role>> securitySettings); @Override Configuration addSecurityRoleNameMapping(String internalRole, Set<String> externalRoles); @Override Map<String, Set<String>> getSecurityRoleNameMappings(); @Override List<ConnectorServiceConfiguration> getConnectorServiceConfigurations(); @Override List<SecuritySettingPlugin> getSecuritySettingPlugins(); @Deprecated @Override ActiveMQMetricsPlugin getMetricsPlugin(); @Override MetricsConfiguration getMetricsConfiguration(); @Override void registerBrokerPlugins(final List<ActiveMQServerBasePlugin> plugins); @Override void registerBrokerPlugin(final ActiveMQServerBasePlugin plugin); @Override void unRegisterBrokerPlugin(final ActiveMQServerBasePlugin plugin); @Override List<ActiveMQServerBasePlugin> getBrokerPlugins(); @Override List<ActiveMQServerConnectionPlugin> getBrokerConnectionPlugins(); @Override List<ActiveMQServerSessionPlugin> getBrokerSessionPlugins(); @Override List<ActiveMQServerConsumerPlugin> getBrokerConsumerPlugins(); @Override List<ActiveMQServerAddressPlugin> getBrokerAddressPlugins(); @Override List<ActiveMQServerQueuePlugin> getBrokerQueuePlugins(); @Override List<ActiveMQServerBindingPlugin> getBrokerBindingPlugins(); @Override List<ActiveMQServerMessagePlugin> getBrokerMessagePlugins(); @Override List<ActiveMQServerBridgePlugin> getBrokerBridgePlugins(); @Override List<ActiveMQServerCriticalPlugin> getBrokerCriticalPlugins(); @Override List<ActiveMQServerFederationPlugin> getBrokerFederationPlugins(); @Override List<FederationConfiguration> getFederationConfigurations(); @Override List<ActiveMQServerResourcePlugin> getBrokerResourcePlugins(); @Override File getBrokerInstance(); @Override void setBrokerInstance(File directory); boolean isCheckForLiveServer(); ConfigurationImpl setCheckForLiveServer(boolean checkForLiveServer); @Override String toString(); @Override ConfigurationImpl setConnectorServiceConfigurations(final List<ConnectorServiceConfiguration> configs); @Override ConfigurationImpl addConnectorServiceConfiguration(final ConnectorServiceConfiguration config); @Override ConfigurationImpl setSecuritySettingPlugins(final List<SecuritySettingPlugin> plugins); @Override ConfigurationImpl addSecuritySettingPlugin(final SecuritySettingPlugin plugin); @Deprecated @Override ConfigurationImpl setMetricsPlugin(final ActiveMQMetricsPlugin plugin); @Override ConfigurationImpl setMetricsConfiguration(final MetricsConfiguration metricsConfiguration); @Override Boolean isMaskPassword(); @Override ConfigurationImpl setMaskPassword(Boolean maskPassword); @Override ConfigurationImpl setPasswordCodec(String codec); @Override String getPasswordCodec(); @Override String getName(); @Override ConfigurationImpl setName(String name); @Override ConfigurationImpl setResolveProtocols(boolean resolveProtocols); @Override TransportConfiguration[] getTransportConfigurations(String... connectorNames); @Override TransportConfiguration[] getTransportConfigurations(final List<String> connectorNames); @Override String debugConnectors(); @Override boolean isResolveProtocols(); @Override StoreConfiguration getStoreConfiguration(); @Override ConfigurationImpl setStoreConfiguration(StoreConfiguration storeConfiguration); @Override boolean isPopulateValidatedUser(); @Override ConfigurationImpl setPopulateValidatedUser(boolean populateValidatedUser); @Override boolean isRejectEmptyValidatedUser(); @Override Configuration setRejectEmptyValidatedUser(boolean rejectEmptyValidatedUser); @Override long getConnectionTtlCheckInterval(); @Override ConfigurationImpl setConnectionTtlCheckInterval(long connectionTtlCheckInterval); @Override int hashCode(); @Override boolean equals(Object obj); @Override Configuration copy(); @Override ConfigurationImpl setJournalLockAcquisitionTimeout(long journalLockAcquisitionTimeout); @Override long getJournalLockAcquisitionTimeout(); @Override HAPolicyConfiguration getHAPolicyConfiguration(); @Override ConfigurationImpl setHAPolicyConfiguration(HAPolicyConfiguration haPolicyConfiguration); @Override URL getConfigurationUrl(); @Override ConfigurationImpl setConfigurationUrl(URL configurationUrl); @Override long getConfigurationFileRefreshPeriod(); @Override ConfigurationImpl setConfigurationFileRefreshPeriod(long configurationFileRefreshPeriod); @Override int getDiskScanPeriod(); @Override String getInternalNamingPrefix(); @Override ConfigurationImpl setInternalNamingPrefix(String internalNamingPrefix); @Override ConfigurationImpl setDiskScanPeriod(int diskScanPeriod); @Override ConfigurationImpl setNetworkCheckList(String list); @Override String getNetworkCheckList(); @Override ConfigurationImpl setNetworkCheckURLList(String urls); @Override String getNetworkCheckURLList(); @Override ConfigurationImpl setNetworkCheckPeriod(long period); @Override long getNetworkCheckPeriod(); @Override ConfigurationImpl setNetworkCheckTimeout(int timeout); @Override int getNetworkCheckTimeout(); @Override Configuration setNetworCheckNIC(String nic); @Override String getNetworkCheckNIC(); @Override String getNetworkCheckPingCommand(); @Override ConfigurationImpl setNetworkCheckPingCommand(String command); @Override String getNetworkCheckPing6Command(); @Override Configuration setNetworkCheckPing6Command(String command); @Override boolean isCriticalAnalyzer(); @Override Configuration setCriticalAnalyzer(boolean CriticalAnalyzer); @Override long getCriticalAnalyzerTimeout(); @Override Configuration setCriticalAnalyzerTimeout(long timeout); @Override long getCriticalAnalyzerCheckPeriod(); @Override Configuration setCriticalAnalyzerCheckPeriod(long checkPeriod); @Override CriticalAnalyzerPolicy getCriticalAnalyzerPolicy(); @Override Configuration setCriticalAnalyzerPolicy(CriticalAnalyzerPolicy policy); @Override int getPageSyncTimeout(); @Override ConfigurationImpl setPageSyncTimeout(final int pageSyncTimeout); static boolean checkoutDupCacheSize(final int windowSize, final int idCacheSize); @Override String getTemporaryQueueNamespace(); @Override ConfigurationImpl setTemporaryQueueNamespace(final String temporaryQueueNamespace); static final JournalType DEFAULT_JOURNAL_TYPE; public JournalType journalType; }
@Test public void testGetSetInterceptors() { final String name1 = "uqwyuqywuy"; final String name2 = "yugyugyguyg"; conf.getIncomingInterceptorClassNames().add(name1); conf.getIncomingInterceptorClassNames().add(name2); Assert.assertTrue(conf.getIncomingInterceptorClassNames().contains(name1)); Assert.assertTrue(conf.getIncomingInterceptorClassNames().contains(name2)); Assert.assertFalse(conf.getIncomingInterceptorClassNames().contains("iijij")); }