public virtual void Scan(Net.Vpc.Upa.Config.ScanSource strategy, Net.Vpc.Upa.ScanListener listener, bool configure) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     decorationRepository = new Net.Vpc.Upa.Impl.Config.Decorations.DefaultDecorationRepository(GetName() + "-PGRepo", true);
     log.TraceEvent(System.Diagnostics.TraceEventType.Verbose, 60, Net.Vpc.Upa.Impl.FwkConvertUtils.LogMessageExceptionFormatter("{0} : Configuring PersistenceGroup with strategy {1}", null, new object[] { GetName(), strategy }));
     Net.Vpc.Upa.Impl.Config.URLAnnotationStrategySupport s = new Net.Vpc.Upa.Impl.Config.URLAnnotationStrategySupport();
     s.Scan(this, strategy, decorationRepository, configure ? ((Net.Vpc.Upa.ScanListener)(new Net.Vpc.Upa.Impl.Config.ConfigureScanListener(listener))) : listener);
     if (securityManager == null)
     {
         securityManager = GetFactory().CreateObject <Net.Vpc.Upa.UPASecurityManager>(typeof(Net.Vpc.Upa.UPASecurityManager));
     }
 }
Example #2
0
 public static Net.Vpc.Upa.Impl.Config.BaseScanSource ToConfigurationStrategy(Net.Vpc.Upa.Config.ScanSource source)
 {
     if (source == null)
     {
         throw new System.ArgumentException("ScanSource could not be null; you may use UPAContext.getFactory().create*ScanSource(...) methods to get a valid instance.");
     }
     if (!(source is Net.Vpc.Upa.Impl.Config.BaseScanSource))
     {
         throw new System.ArgumentException("ScanSource (" + source.GetType() + ") is of invalid or unsupported type; you may use UPAContext.getFactory().create*ScanSource(...) methods to get a valid instance.");
     }
     return((Net.Vpc.Upa.Impl.Config.BaseScanSource)source);
 }