parent
c84b30d4a4
commit
5614e257d1
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -68,7 +68,7 @@ public class TransactionAwareCacheManagerProxy implements CacheManager, Initiali
|
|||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
if (this.targetCacheManager == null) {
|
||||
throw new IllegalStateException("'targetCacheManager' is required");
|
||||
throw new IllegalArgumentException("Property 'targetCacheManager' is required");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -17,7 +17,7 @@
|
|||
package org.springframework.messaging.core;
|
||||
|
||||
/**
|
||||
* Strategy for resolving a String destination name into an actual destination
|
||||
* Strategy for resolving a String destination name to an actual destination
|
||||
* of type {@code <D>}.
|
||||
*
|
||||
* @author Mark Fisher
|
||||
|
@ -28,7 +28,9 @@ public interface DestinationResolver<D> {
|
|||
/**
|
||||
* Resolve the given destination name.
|
||||
* @param name the destination name to resolve
|
||||
* @return the destination, never {@code null}
|
||||
* @return the resolved destination (never {@code null})
|
||||
* @throws DestinationResolutionException if the specified destination
|
||||
* wasn't found or wasn't resolvable for any other reason
|
||||
*/
|
||||
D resolveDestination(String name) throws DestinationResolutionException;
|
||||
|
||||
|
|
Loading…
Reference in New Issue