Java 类org.springframework.context.annotation.AutoProxyRegistrar 实例源码

项目:lams    文件:TransactionManagementConfigurationSelector.java   
/**
 * {@inheritDoc}
 * @return {@link ProxyTransactionManagementConfiguration} or
 * {@code AspectJTransactionManagementConfiguration} for {@code PROXY} and
 * {@code ASPECTJ} values of {@link EnableTransactionManagement#mode()}, respectively
 */
@Override
protected String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[] {AutoProxyRegistrar.class.getName(), ProxyTransactionManagementConfiguration.class.getName()};
        case ASPECTJ:
            return new String[] {TransactionManagementConfigUtils.TRANSACTION_ASPECT_CONFIGURATION_CLASS_NAME};
        default:
            return null;
    }
}
项目:lams    文件:CachingConfigurationSelector.java   
/**
 * {@inheritDoc}
 * @return {@link ProxyCachingConfiguration} or {@code AspectJCacheConfiguration} for
 * {@code PROXY} and {@code ASPECTJ} values of {@link EnableCaching#mode()}, respectively
 */
@Override
public String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[] { AutoProxyRegistrar.class.getName(), ProxyCachingConfiguration.class.getName() };
        case ASPECTJ:
            return new String[] { AnnotationConfigUtils.CACHE_ASPECT_CONFIGURATION_CLASS_NAME };
        default:
            return null;
    }
}
项目:jetcache    文件:ConfigSelector.java   
/**
 * Return the imports to use if the {@link AdviceMode} is set to {@link AdviceMode#PROXY}.
 * <p>Take care of adding the necessary JSR-107 import if it is available.
 */
private String[] getProxyImports() {
    List<String> result = new ArrayList<String>();
    result.add(AutoProxyRegistrar.class.getName());
    result.add(JetCacheProxyConfiguration.class.getName());
    return result.toArray(new String[result.size()]);
}
项目:spring4-understanding    文件:CachingConfigurationSelector.java   
/**
 * Return the imports to use if the {@link AdviceMode} is set to {@link AdviceMode#PROXY}.
 * <p>Take care of adding the necessary JSR-107 import if it is available.
 */
private String[] getProxyImports() {
    List<String> result = new ArrayList<String>();
    result.add(AutoProxyRegistrar.class.getName());
    result.add(ProxyCachingConfiguration.class.getName());
    if (jsr107Present && jCacheImplPresent) {
        result.add(PROXY_JCACHE_CONFIGURATION_CLASS);
    }
    return result.toArray(new String[result.size()]);
}
项目:spring4-understanding    文件:TransactionManagementConfigurationSelector.java   
/**
 * {@inheritDoc}
 * @return {@link ProxyTransactionManagementConfiguration} or
 * {@code AspectJTransactionManagementConfiguration} for {@code PROXY} and
 * {@code ASPECTJ} values of {@link EnableTransactionManagement#mode()}, respectively
 */
@Override
protected String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[] {AutoProxyRegistrar.class.getName(), ProxyTransactionManagementConfiguration.class.getName()};
        case ASPECTJ:
            return new String[] {TransactionManagementConfigUtils.TRANSACTION_ASPECT_CONFIGURATION_CLASS_NAME};
        default:
            return null;
    }
}
项目:my-spring-cache-redis    文件:CachingConfigurationSelector.java   
/**
 * {@inheritDoc}
 * @return {@link ProxyCachingConfiguration} or {@code AspectJCacheConfiguration} for
 * {@code PROXY} and {@code ASPECTJ} values of {@link EnableCaching#mode()}, respectively
 */
@Override
public String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[] { AutoProxyRegistrar.class.getName(), ProxyCachingConfiguration.class.getName() };
        case ASPECTJ:
            return new String[] { AnnotationConfigUtils.CACHE_ASPECT_CONFIGURATION_CLASS_NAME };
        default:
            return null;
    }
}
项目:spring    文件:CachingConfigurationSelector.java   
/**
 * Return the imports to use if the {@link AdviceMode} is set to {@link AdviceMode#PROXY}.
 * <p>Take care of adding the necessary JSR-107 import if it is available.
 */
private String[] getProxyImports() {
    List<String> result = new ArrayList<String>();
    result.add(AutoProxyRegistrar.class.getName());
    result.add(ProxyCachingConfiguration.class.getName());
    if (jsr107Present && jCacheImplPresent) {
        result.add(PROXY_JCACHE_CONFIGURATION_CLASS);
    }
    return result.toArray(new String[result.size()]);
}
项目:stormv-spring-tracer    文件:TraceRegistrar.java   
@Override
protected String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[]{AutoProxyRegistrar.class.getName(),
                    TraceLogManagerConfiguration.class.getName(),
                    SimpleTraceConfiguration.class.getName()};
        case ASPECTJ:
            throw new UnsupportedOperationException("Not support AspectJ");
        default:
            return null;
    }
}
项目:spring-lock    文件:LockConfigurationSelector.java   
@Override
protected String[] selectImports(final AdviceMode adviceMode) {
   switch (adviceMode) {
      case PROXY:
         return new String[] { AutoProxyRegistrar.class.getName(), ProxyLockConfiguration.class.getName() };
      case ASPECTJ:
         throw new UnsupportedOperationException("Advice Mode AJPECTJ is not supported yet");
      default:
         return null;
   }
}
项目:class-guard    文件:CachingConfigurationSelector.java   
/**
 * {@inheritDoc}
 * @return {@link ProxyCachingConfiguration} or {@code AspectJCacheConfiguration} for
 * {@code PROXY} and {@code ASPECTJ} values of {@link EnableCaching#mode()}, respectively
 */
public String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[] { AutoProxyRegistrar.class.getName(), ProxyCachingConfiguration.class.getName() };
        case ASPECTJ:
            return new String[] { AnnotationConfigUtils.CACHE_ASPECT_CONFIGURATION_CLASS_NAME };
        default:
            return null;
    }
}
项目:class-guard    文件:TransactionManagementConfigurationSelector.java   
/**
 * {@inheritDoc}
 * @return {@link ProxyTransactionManagementConfiguration} or
 * {@code AspectJTransactionManagementConfiguration} for {@code PROXY} and
 * {@code ASPECTJ} values of {@link EnableTransactionManagement#mode()}, respectively
 */
@Override
protected String[] selectImports(AdviceMode adviceMode) {
    switch (adviceMode) {
        case PROXY:
            return new String[] {AutoProxyRegistrar.class.getName(), ProxyTransactionManagementConfiguration.class.getName()};
        case ASPECTJ:
            return new String[] {TransactionManagementConfigUtils.TRANSACTION_ASPECT_CONFIGURATION_CLASS_NAME};
        default:
            return null;
    }
}