-
May 31st, 2006, 04:26 AM
#1
Initializing the Bean with Parameter obtained at runtime
hi,
I need to initiliaze a bean with 3 parameters. When i'm initializing the bean, if i specify the parameters in the configuration, Container creates this object at initializaiton time.
Basically this bean should be injected in other service beans where the initialization parameters changes from service to service. So i want to define the bean for each service, whenever the bean is injected into the service. Out of the three initilization parameters, 2 parameters are constants defined for that service, but the third object is an object created by a Facade before this service. Basically i want to introduce an interceptor( bean i'm talking about ) between the Facade and this service. But for each service, the interceptor should be intialized with a User object created by Facade. So only at the runtime the bean should be populated with the User object generated from Facade.
How to play with the Configuraiton to achieve this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules