1 /*
2 * Copyright (c) 2006-2007 Creative Sphere Limited.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *
10 * Creative Sphere - initial API and implementation
11 *
12 */
13 package org.abstracthorizon.danube.adapter;
14
15 /**
16 * This interface is inspired by similar from eclipse project
17 *
18 * @author Daniel Sendula
19 */
20 public interface Adaptable {
21
22 /**
23 * Returns an object that is instance of asked class
24 * @param cls class to be adapted to
25 * @return an object that is instance of asked class
26 */
27 <T> T adapt(Class<T> cls);
28
29 }