|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.adapter.AbstractAdapter
org.openpermis.editor.policy.adapter.PartBeanAdapter
public class PartBeanAdapter
A basic implementation of an Adapter
.
Constructor Summary | |
---|---|
PartBeanAdapter()
|
Method Summary | |
---|---|
protected org.picocontainer.MutablePicoContainer |
createContainer()
Creates a pico container and fill it with all combinations of objects and adaptee types. |
protected Class<?> |
getAdapteeImplementationClass(Class<?> adapteeType,
Class<?> objectType)
Returns the concrete adaptee implementation class to use when converting objects of the specified type to a given adaptee type. |
protected String |
getAdapteeImplementationClassName(Class<?> adapteeType,
Class<?> objectType)
Returns the fully qualified class name of the concrete adaptee implementation class to use when converting objects of the specified type to a given adaptee type. |
protected Class<?> |
getObjectType(Object object)
Determines the object type of the specified object. |
Methods inherited from class org.openpermis.editor.policy.adapter.AbstractAdapter |
---|
adaptTo, getKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartBeanAdapter()
Method Detail |
---|
protected String getAdapteeImplementationClassName(Class<?> adapteeType, Class<?> objectType)
adapteeType
- the base adaptee type to convert to.objectType
- the object type to be converted.
null
.protected Class<?> getAdapteeImplementationClass(Class<?> adapteeType, Class<?> objectType) throws IllegalStateException
adapteeType
- the base adaptee type to convert to.objectType
- the object type to be converted.
IllegalStateException
- if there is no such concrete adaptee implementation.protected org.picocontainer.MutablePicoContainer createContainer()
createContainer
in class AbstractAdapter
Adaptee
s.protected Class<?> getObjectType(Object object)
AbstractAdapter
The default implementation returns the implementation class of the object.
getObjectType
in class AbstractAdapter
object
- the object for which to determine the type in the context of this trader.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG