org.openpermis.editor.policy.adapter
Class BasicAdapterTrader

java.lang.Object
  extended by org.openpermis.editor.policy.adapter.BasicAdapterTrader
All Implemented Interfaces:
AdapterTrader

public class BasicAdapterTrader
extends Object
implements AdapterTrader

A basic implementation of an AdapterTrader.

Since:
0.3.0

Constructor Summary
BasicAdapterTrader()
          Creates a basic adapter trader.
 
Method Summary
<T extends Adaptee<?>>
T
adaptTo(Object object, Class<T> adapteeType)
          Adapts an object to the adaptee type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAdapterTrader

public BasicAdapterTrader()
Creates a basic adapter trader.

Since:
0.3.0
Method Detail

adaptTo

public <T extends Adaptee<?>> T adaptTo(Object object,
                                        Class<T> adapteeType)
Description copied from interface: AdapterTrader
Adapts an object to the adaptee type.

Specified by:
adaptTo in interface AdapterTrader
Parameters:
object - the object to adapt.
adapteeType - the type to adapt to.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG