|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.adapter.BasicAdapterTrader
public class BasicAdapterTrader
A basic implementation of an AdapterTrader
.
Field Summary | |
---|---|
private org.picocontainer.MutablePicoContainer |
pico
|
Constructor Summary | |
---|---|
BasicAdapterTrader()
Creates a basic adapter trader. |
Method Summary | ||
---|---|---|
|
adaptTo(Object object,
Class<T> adapteeType)
Adapts an object to the adaptee type. |
|
private static org.picocontainer.MutablePicoContainer |
createContainer(org.picocontainer.PicoContainer parent)
Creates a pico container and fill it with all combinations of objects and adaptee types. |
|
private static String |
createKey(Class<?> adapteeType,
Class<?> objectType)
Creates a unique key that identifies an objecgt/adapter type pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.picocontainer.MutablePicoContainer pico
Constructor Detail |
---|
public BasicAdapterTrader()
Method Detail |
---|
private static final org.picocontainer.MutablePicoContainer createContainer(org.picocontainer.PicoContainer parent)
private static String createKey(Class<?> adapteeType, Class<?> objectType)
adapteeType
- the type of adapter for which to retrieve the key.objectType
- the object type, may be null
for default type.
null
.public <T extends Adaptee<?>> T adaptTo(Object object, Class<T> adapteeType)
AdapterTrader
adaptTo
in interface AdapterTrader
object
- the object to adapt.adapteeType
- the type to adapt to.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG