[jboss-dev-forums] [Design of POJO Server] - Re: Contract ejb3-interceptors and bean-factory

alesj do-not-reply at jboss.com
Mon Mar 31 10:10:12 EDT 2008


"wolfc" wrote : Maybe we need an InstanceContext / BeanContext from the StatelessObjectFactory:
  | Factory<T> {
  |   |   BeanContext<T> create();
  |   | };
  |   | 
  |   | BeanContext<T> {
  |   |    T getInstance();
  |   | 
  |   |    <A> A getAttachment(Object key, Class<A> attachmentType);
  |   | }
  | 
  | Does MC have such a thing?
  | 
What exactly are you looking for?

You can now change the underlying BeanFactory class.
Previous versions always used GenericBeanFactory.
Now you can set factoryClass attribute.
What your factory impl does is your thing. ;-)
e.g. CarlosBF::createBean() would always return BeanContext

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140149#4140149

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140149



More information about the jboss-dev-forums mailing list