[
https://issues.apache.org/jira/browse/OWB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901004#action_12901004
]
Mark Struberg commented on OWB-444:
-----------------------------------
I think I already commented on removing most of our static util methods because
they are also bad from a performance and configuration perspective. I'd suggest
to remove 'static' and apply them as members to BeanManager + hold a back
reference to the BM.
All those utils then have a ct like
private BeanManagerImpl bm;
public AnnotationUtil(BeanManagerImpl bm)
{
this.bm = bm;
}
so they can easily access other utils by calling bm.getClassUtil()....
All our Util can then also be modeled as SPI and thus we gain further
portability.
I can e.g. imagine a ClassUtil which does all the methods via doPrivileged in
SecureClassUtil vs a simple implementation without utilising the
SecurityManager in SimpleClassUtil.
> Using Static Loggers in Shared ClassLoader
> ------------------------------------------
>
> Key: OWB-444
> URL: https://issues.apache.org/jira/browse/OWB-444
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.0-alpha-1
> Reporter: Gurkan Erdogdu
> Assignee: Gurkan Erdogdu
> Fix For: 1.0.0-GA
>
>
> Errors of using static loggers in shared classloaders environments
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.