|
![]() |
||||||||
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(org.openpermis.policy.bean.PartBean part,
Class<T> adapteeType)
Adapts a part bean 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 part beans and adaptee types. |
|
private static String |
createKey(Class<?> adapteeType,
Class<?> partBeanType)
Creates a unique key that identifies a bean/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<?> partBeanType)
adapteeType
- the type of adapter for which to retrieve the key.partBeanType
- the part bean type, corresponds to getPartBeanType()
of
PartBean
, may be null
for default type.
null
.public <T extends Adaptee<?>> T adaptTo(org.openpermis.policy.bean.PartBean part, Class<T> adapteeType)
AdapterTrader
adaptTo
in interface AdapterTrader
part
- the part bean 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.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG