X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fusermgt%2Fhibernate%2FAuthorizationComponent.java;h=150a84470cf56c9435bf94b3f0fb1db17cb54345;hb=680cb4c2d0b10909a2cdd3e7f73d8998a74441c1;hp=0093dc8dca46affdc31abe31e6d92c0270272e18;hpb=604319a397eeb71db767a79487f2848dd91e49de;p=utils diff --git a/security/src/main/java/org/wamblee/usermgt/hibernate/AuthorizationComponent.java b/security/src/main/java/org/wamblee/usermgt/hibernate/AuthorizationComponent.java index 0093dc8d..150a8447 100644 --- a/security/src/main/java/org/wamblee/usermgt/hibernate/AuthorizationComponent.java +++ b/security/src/main/java/org/wamblee/usermgt/hibernate/AuthorizationComponent.java @@ -25,6 +25,8 @@ import org.wamblee.cache.EhCache; import org.wamblee.security.authorization.AuthorizationService; import org.wamblee.security.authorization.hibernate.AuthorizationMappingFiles; import org.wamblee.system.adapters.DefaultContainer; +import org.wamblee.system.adapters.ObjectConfiguration; +import org.wamblee.system.components.ORMappingConfig; import org.wamblee.system.core.Component; import org.wamblee.system.core.DefaultProvidedInterface; import org.wamblee.system.core.DefaultRequiredInterface; @@ -48,7 +50,9 @@ public class AuthorizationComponent extends DefaultContainer { throws IOException { super(aName); - addComponent("mappingFiles", new AuthorizationMappingFiles()); + ObjectConfiguration authConfig = new ObjectConfiguration(AuthorizationMappingFiles.class); + authConfig.getSetterConfig().initAllSetters(); + addComponent("mappingFiles", new AuthorizationMappingFiles(), authConfig); Component hibernate = new HibernateComponent("hibernate"); addComponent(hibernate); @@ -59,6 +63,7 @@ public class AuthorizationComponent extends DefaultContainer { addRequiredInterface(new DefaultRequiredInterface("datasource", DataSource.class)); addRequiredInterface(new DefaultRequiredInterface("userAccessor", UserAccessor.class)); + addRequiredInterface(new DefaultRequiredInterface("ormconfig", ORMappingConfig.class)); if (aExposeInternals) { addProvidedInterface(TRANSACTION_MGR);