Class MyAccessIntroductionImpl<T>
java.lang.Object
info.ejava.examples.svc.aop.items.proxyfactory.MyAccessIntroductionImpl<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
MyAccessIntroduction<T>
This is an implementation class for the example Access Introduction.
It provides a list of roles the caller has access to for the target
object this is added to.
-
Nested Class Summary
Nested classes/interfaces inherited from interface info.ejava.examples.svc.aop.items.proxyfactory.MyAccessIntroduction
MyAccessIntroduction.Access, MyAccessIntroduction.TargetWrapper<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInstead of returning a raw target, hide the target from proxy within a wrapper but eliminate the wrapper when marshalling.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface info.ejava.examples.svc.aop.items.proxyfactory.MyAccessIntroduction
getData, getUserRoles
-
Field Details
-
userRoles
-
data
-
-
Constructor Details
-
MyAccessIntroductionImpl
public MyAccessIntroductionImpl()
-
-
Method Details
-
setUserRoles
- Specified by:
setUserRoles
in interfaceMyAccessIntroduction<T>
-
getRawTarget
Description copied from interface:MyAccessIntroduction
Instead of returning a raw target, hide the target from proxy within a wrapper but eliminate the wrapper when marshalling. An alternative would have been to clone the data target. This should be much cheaper.- Specified by:
getRawTarget
in interfaceMyAccessIntroduction<T>
-