AnnotatedElementMetaDataLoader component metadata optimizationInspired by http://community.jboss.org/thread/96937?tstart=0 I did some standalone benchmarks of beans with a lot of methods, and found a bottleneck in CommonAnnotationAdapter which needs to obtain the component metad...
Optimizing ControllerStateAt AS6 meeting we came across some "shocking" ControllerState numbers. :-) Number of created instances was big, and the number of equals() and hashCode() invocations was just outrageous ~ 12M. (if I remember the numb...
Optimizing ScopeKeyContinued from http://community.jboss.org/message/525925#525925 1001 puts into BasicMetaDataRepository.retrievals results in 499500 UnmodifiableScopeKey calls. That is the sum of all numbers from 1 to 999, so ...
Modules with null ClassLoadersI have just found out that ClassPoolRepository is registering null class loaders. JBossClDelegatingClassPoolFactory.create method has a call to registerBootstrapClassLoaders public synchronized AbstractClassPo...
DependsOnMe is broken?Something in jboss-kernel 2.2.0.Alpha4 breaks the dependsOnMe processing - not tidying it up. See the jboss-cl testsuite. This test passes using 2.2.0.Alpha3 junit.framework.AssertionFailedError: expec...
Pluggable dependency resolverI have made a start on the pluggable dependency resolvers and am committing stuff to https://svn.jboss.org/repos/jbossas/projects/kernel/branches/resolver. So far I am just playing to get a rough idea of...
Thread JMX's ServiceControllerContext doesn't use MDR
JMX's ServiceControllerContext doesn't use MDRWe're currently not registering ServiceControllerContext to MDR. Looking at its DescribeAction, it's a no-op. We used to populate KernelControllerContext's MDR in Describe state, so I guess this is the right p...
Thread Using MetaDataRetrievalFactory is missing addition
Using MetaDataRetrievalFactory is missing additionWhen we use an explicit MetaDataRetrievalFactory to create MDRetrieval for scope level, we never actually add the newly created retrieval to repository. This results in retrieval override, since the factory is invok...
JBREFLECT - Exception processing non-public annotationPete has reported a failure in CDI testsuite against the AS trunk [https://jira.jboss.org/jira/browse/JBAS-7676]. The testcase involves a @Stateless annotated EJB. Apart from this annotation, the EJB class also has on...
DependencyInfo remove itemsHow come we never call any of the remove methods on DependencyItem: - void removeIDependOn(DependencyItem dependency); - void removeDependsOnMe(DependencyItem dependency);
Thread Uninstall OnDemand context if there are no more dependencies
Uninstall OnDemand context if there are no more dependenciesI have knocked up a prototype for https://jira.jboss.org/jira/browse/JBKERNEL-4. A few of the existing tests fail since the order of uninstall has changed. What I am doing is:
protected void uninstallContext(Contr...
Thread Activating OnDemand beans from child controller
Activating OnDemand beans from child controllerFixing http://lists.jboss.org/pipermail/jboss-development/2010-January/015434.html I am adding a ScopedOnDemandDependencyTestCase (extends OnDemandDependencyTestCase similar to (Scoped)DuplicateAliasTestCase), but hav...
Qualifiers introduced a cleanup bugI've found that this code does no longer get called for the ContextualInjectionDependencyItem which are now created by AbstractInjectionValueMetaData private void removeClassContextReference()
...
Native library mapping at jboss-cl levelFor the upcomming release (01-Feb-2010) I plan to pull up native library mapping to the jboss-cl level later this week https://jira.jboss.org/jira/browse/JBCL-136
Aggregated Microcontainer JavaDocI made an effort to get started on https://jira.jboss.org/jira/browse/JBMICROCONT-442 Please have a look at Aggregated Microcontainer JavaDoc in JBossAS Development
BeanMetaDataBuilder ignoring ignoreDestroy()?In jboss-threads, I call ignoreDestroy() on all ThreadGroup beans so that the ThreadGroup.destroy() method is never called. However, when I deploy, undeploy, and redeploy a thread group, Threads which are subseq...
ShutdownPolicyhttps://jira.jboss.org/jira/browse/JBCL-139 To support the OSGi semantics of not automatically re-resolving classloader dependencies when you remove a classloader/deployment, I'm introducing a notion of Shutd...
WarStructure metadata locations are wrongA recent post on MC user forum exposed a buggy behavior of our .war handling. * http://community.jboss.org/message/517508#517508 The reason for this error is, as I stated already, how we handle metadata locat...