src/main/java/org/docksidestage/derby/dbflute/allcommon/DBFluteModule.java
/**
     * New DBFlute bean for behavior command invoker.
     * @param beanManager The manager of CDI beans. (NotNull)
     * @return The new-created DBFlute bean. (NotNull)
     */
New DBFlute bean for behavior command invoker.
@param beanManager The manager of CDI beans.
New DBFlute bean for behavior command invoker . @param beanManager The manager of CDI beans .
protected DBFluteBean<BehaviorCommandInvoker> newDBFluteBeanOfBehaviorCommandInvoker(final BeanManager beanManager) {
        return new DBFluteBean<BehaviorCommandInvoker>(beanManager, BehaviorCommandInvoker.class) {
            @Override
            protected void postInject(final BehaviorCommandInvoker instance) {
                final Bean<?> bean = beanManager.resolve(beanManager.getBeans(InvokerAssistant.class, createDBFluteAnnotationLiteral()));
                instance.setInvokerAssistant((InvokerAssistant) beanManager.getReference(bean, bean.getBeanClass(), beanManager.createCreationalContext(bean)));
            }
            @Override
            public String getName() {
                final StringBuilder name = new StringBuilder(DBFlute.class.getPackage().getName());
                name.append(".");
                name.append(this.beanClass.getSimpleName());
                return name.toString();
            }
        };
    }
protected DBFluteBean < BehaviorCommandInvoker > newDBFluteBeanOfBehaviorCommandInvoker ( final BeanManager beanManager ) { return new DBFluteBean < BehaviorCommandInvoker > ( beanManager , BehaviorCommandInvoker . class ) { @ Override protected void postInject ( final BehaviorCommandInvoker instance ) { final Bean < ? > bean = beanManager . resolve ( beanManager . getBeans ( InvokerAssistant . class , createDBFluteAnnotationLiteral ( ) ) ) ; instance . setInvokerAssistant ( ( InvokerAssistant ) beanManager . getReference ( bean , bean . getBeanClass ( ) , beanManager . createCreationalContext ( bean ) ) ) ; } @ Override public String getName ( ) { final StringBuilder name = new StringBuilder ( DBFlute . class . getPackage ( ) . getName ( ) ) ; name . append ( "." ) ; name . append ( this . beanClass . getSimpleName ( ) ) ; return name . toString ( ) ; } } ; }
New DBFlute bean for behavior command invoker.
New DBFlute bean for behavior command invoker .