add remanding factory property setters
parent
b1c317a713
commit
c1dd26b4b5
|
@ -58,6 +58,46 @@ public class ModelFactory {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setAuthCodeType(String type) {
|
||||
try {
|
||||
Class<?> localType = Class.forName(type);
|
||||
setAuthCodeType((Class<? extends AuthorizationCodeEntity>)localType);
|
||||
} catch (Throwable ex) {
|
||||
throw new RuntimeException("failed while setting class", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setAuthHolderType(String type) {
|
||||
try {
|
||||
Class<?> localType = Class.forName(type);
|
||||
setAuthHolderType((Class<? extends AuthenticationHolderEntity>)localType);
|
||||
} catch (Throwable ex) {
|
||||
throw new RuntimeException("failed while setting class", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setRegisteredClientType(String type) {
|
||||
try {
|
||||
Class<?> localType = Class.forName(type);
|
||||
setRegisteredClientType((Class<? extends RegisteredClient>)localType);
|
||||
} catch (Throwable ex) {
|
||||
throw new RuntimeException("failed while setting class", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setSystemScopeType(String type) {
|
||||
try {
|
||||
Class<?> localType = Class.forName(type);
|
||||
setSystemScopeType((Class<? extends SystemScope>)localType);
|
||||
} catch (Throwable ex) {
|
||||
throw new RuntimeException("failed while setting class", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void setClientDetailsType(Class<? extends ClientDetailsEntity> type) {
|
||||
this.clientDetailsType = type;
|
||||
}
|
||||
|
@ -70,6 +110,22 @@ public class ModelFactory {
|
|||
this.refreshTokenType = type;
|
||||
}
|
||||
|
||||
public void setAuthCodeType(Class<? extends AuthorizationCodeEntity> type) {
|
||||
this.authCodeType = type;
|
||||
}
|
||||
|
||||
public void setAuthHolderType(Class<? extends AuthenticationHolderEntity> type) {
|
||||
this.authHolderType = type;
|
||||
}
|
||||
|
||||
public void setRegisteredClientType(Class<? extends RegisteredClient> type) {
|
||||
this.regClientType = type;
|
||||
}
|
||||
|
||||
public void setSystemScopeType(Class<? extends SystemScope> type) {
|
||||
this.sysScopeType = type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends ClientDetailsEntity> T getClientDetailsInstance() {
|
||||
T instance = null;
|
||||
|
|
|
@ -33,6 +33,10 @@
|
|||
<property name="clientDetailsType" value="org.mitre.oauth2.model.impl.DefaultClientDetailsEntity" />
|
||||
<property name="accessTokenType" value="org.mitre.oauth2.model.impl.DefaultOAuth2AccessTokenEntity" />
|
||||
<property name="refreshTokenType" value="org.mitre.oauth2.model.impl.DefaultOAuth2RefreshTokenEntity" />
|
||||
<property name="authCodeType" value="org.mitre.oauth2.model.impl.DefaultAuthorizationCodeEntity" />
|
||||
<property name="authHolderType" value="org.mitre.oauth2.model.impl.DefaultAuthenticationHolderEntity" />
|
||||
<property name="registeredClientType" value="org.mitre.oauth2.model.impl.DefaultRegisteredClient" />
|
||||
<property name="systemScopeType" value="org.mitre.oauth2.model.impl.DefaultSystemScope" />
|
||||
</bean>
|
||||
|
||||
<!-- Scan for components -->
|
||||
|
|
Loading…
Reference in New Issue