Area
|
Spring
|
JavaEE
|
---|---|---|
Injection
|
@component
@Autowire
|
@Named
@Qualifier
@Inject
|
Lifecycle | @Scope("session") | @SessionScoped |
xml based component | components.xml | beans.xml |
xml based bean by factory |
factory-method="createInstance" /> |
@Produces
@Disposes
@PostConstruct
@PreDestroy
|
AOP | Spring AOP @Aspect @Around | @Interceptor @InterceptorBinding |
profile |
Spring beans profile
< beans profile = "test2" > |
definition in beans.xml
<beans ... > <alternatives> <class>encoder.TestCoderImpl</class> </alternatives> </beans>
dynamic solution: Apache DeltaSpike ProjectStage or
your own CDI extension
|
property file place-holder |
@Value("${port}")
|
Apache DeltaSpike @configProperty(name="port")
or
your own CDI extension
|
Spring 4.0.8 v.s JavaEE 8
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment