Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abbreviated notation for key entities in spring context xml #31

Closed
Evlikat opened this issue Mar 27, 2017 · 2 comments
Closed

Abbreviated notation for key entities in spring context xml #31

Evlikat opened this issue Mar 27, 2017 · 2 comments
Assignees

Comments

@Evlikat
Copy link

Evlikat commented Mar 27, 2017

<extention id="someExtension">
instead of
<bean id="someExtension" class="com.github.xdcrafts.flower.spring.impl.DefaultExtensionFactory">

<feature id="someFeature">
instead of
<bean id="someFeature" class="com.github.xdcrafts.flower.spring.impl.DefaultFeatureFactory">

etc.

@xdcrafts xdcrafts self-assigned this Mar 27, 2017
@xdcrafts
Copy link
Owner

#32

@xdcrafts
Copy link
Owner

  • Header example

      <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:f="http://xdcrafts.github.com/schema/flower"
         xsi:schemaLocation="
          http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
          http://xdcrafts.github.com/schema/flower
          http://xdcrafts.github.com/schema/flower.xsd">
    
  • Keyword selector example

      <f:keyword-selector id="selector" keyword="request.type" required="true"/>
    
  • Sync flow example

      <f:sync-flow id="mainFlow">
          <f:method>authenticator::authenticate</f:method>
          <f:action>selector</f:action>
          <f:method>receiver::receive</f:method>
      </f:sync-flow>
    
  • Extension example

      <f:extension id="email.Extension" action="email.Flow">
          <f:keyword-value>email</f:keyword-value>
      </f:extension>
    
  • Feature example

      <f:feature id="email.Feature">
          <f:binding extension="email.Extension" selector="selector"/>
      </f:feature>
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants