Coverage Report - org.openpermis.editor.policy.adapter.AdapterTrader
 
Classes in this File Line Coverage Branch Coverage Complexity
AdapterTrader
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch)
 3  
  * All rights reserved.
 4  
  * 
 5  
  * Licensed under the Open Permis License which accompanies this distribution, 
 6  
  * and is available at http://www.openpermis.org/BSDlicenceKent.txt
 7  
  */
 8  
 package org.openpermis.editor.policy.adapter;
 9  
 
 10  
 
 11  
 /**
 12  
  * Describes an adapter trader that can adapt objects.
 13  
  * @since 0.3.0
 14  
  */
 15  
 public interface AdapterTrader {
 16  
 
 17  
 
 18  
         //---- Methods
 19  
         
 20  
         /**
 21  
          * Adapts an object to the adaptee type.
 22  
          * @param object the object to adapt.
 23  
          * @param adapteeType the type to adapt to.
 24  
          * @since 0.4.0
 25  
          */
 26  
         public <T extends Adaptee<?>> T adaptTo (Object object, Class<T> adapteeType);
 27  
 
 28  
 
 29  
 }