Package de.fraunhofer.iese.mydata.pep
Class PepBeanFactory
- java.lang.Object
-
- de.fraunhofer.iese.mydata.pep.PepBeanFactory
-
@Component("pepFactory") public class PepBeanFactory extends Object
Factory forReactivePep
.Creates a
ReactivePep
for an Interface that is annotated withPepServiceDescription
. The resulting instance (dynamic proxy) implements the Intefacee.
-
-
Constructor Summary
Constructors Constructor Description PepBeanFactory(de.fraunhofer.iese.mydata.IMyDataEnvironment myDataEnvironment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
createPep(Class<T> interfaceOfPep)
Create aReactivePep
that implements the given interfaceOfPep.
-
-
-
Method Detail
-
createPep
public <T> T createPep(Class<T> interfaceOfPep)
Create aReactivePep
that implements the given interfaceOfPep.The interface must contain an annotation of type
PepServiceDescription
.- Type Parameters:
T
- Type of the Interface.- Parameters:
interfaceOfPep
- The Interface to generate a PEP for.- Returns:
- Dynamic Prox
ReactivePep
that implements the given interfaceOfPep and is able to enforce a decision at PDP by sending events.
-
-