daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @Override
  2.     public void deploy(DeploymentUnit unit) throws DeploymentException {
  3.         RubyApplicationMetaData rubyAppMetaData = unit.getAttachment(RubyApplicationMetaData.class);
  4.  
  5.         if (rubyAppMetaData.getAuthenticationStrategy() == null || rubyAppMetaData.getAuthenticationStrategy().trim().equals("")) {
  6.             rubyAppMetaData.setAuthenticationStrategy(DEFAULT_AUTHENTICATION_STRATEGY);
  7.         }
  8.         String beanName = AttachmentUtils.beanName(unit, Authenticator.class);
  9.  
  10.         BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(beanName, Authenticator.class.getName());
  11.         ValueMetaData kernelControllerInject = builder.createInject("jboss.kernel:service=Kernel", "controller");
  12.         builder.addPropertyMetaData("controller", kernelControllerInject);
  13. // how do I create this injection?
  14.         ValueMetaData kernelControllerInject = builder.createInject("jboss.kernel:service=Kernel", "controller");
  15.         builder.addPropertyMetaData("authStrategy", authStrategyInject);
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top