diff options
Diffstat (limited to 'org.tizen.common/src/org/tizen/common/SurrogateWithArgument.java')
-rw-r--r-- | org.tizen.common/src/org/tizen/common/SurrogateWithArgument.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/org.tizen.common/src/org/tizen/common/SurrogateWithArgument.java b/org.tizen.common/src/org/tizen/common/SurrogateWithArgument.java new file mode 100644 index 000000000..d6b704db5 --- /dev/null +++ b/org.tizen.common/src/org/tizen/common/SurrogateWithArgument.java @@ -0,0 +1,42 @@ +/* +* Common +* +* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. +* +* Contact: +* BonYong Lee <bonyong.lee@samsung.com> +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +* Contributors: +* - S-Core Co., Ltd +* +*/ +package org.tizen.common; + +/** + * Surrogate Interface that are using when dependency object is injected by surrogate pattern + * + * @author BonYong Lee{@literal <bonyong.lee@samsung.com>} (S-Core) + */ +public interface SurrogateWithArgument<T, A> +{ + /** + * pass adapted object using argument + * + * @param arg argument of an object to be created + * + * @return adapted <code>T</code> object + */ + T getAdapter( A arg ); +} |