private static DescriptorImpl getTransactions() { return BuilderHelper.link(TRANSACTIONS_IMPL). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigInstanceListener() { return BuilderHelper.link(CONFIG_INSTANCE_LISTENER_IMPL). to(InstanceLifecycleListener.class.getName()). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigurationPopulator() { return BuilderHelper.link(CONFIGURATION_POPULATOR_IMPL). to(CONFIG_POPULATOR). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigSupport() { return BuilderHelper.link(CONFIG_SUPPORT_IMPL). to(CONFIGURATION_UTILITIES). in(Singleton.class.getName()).build(); }
descriptionList.add(LEAF); DescriptorImpl injectorDescriptor = BuilderHelper.link(PROPERTY_GENERATED_INJECTOR_CLASS). to(CONFIG_INJECTOR_CLASS). in(Singleton.class.getName()).
private void bindInjector(DynamicConfiguration configurator, String elementName, Class contract, final Class clz) { DescriptorBuilder db = BuilderHelper.link(clz). to(ConfigInjector.class).to(InjectionTarget.class).to(contract). in(Singleton.class.getName()).
/** * This method links an implementation class with a {@link DescriptorBuilder}, to * be used to further build the {@link Descriptor}. This method will automatically * put the implementationClass into the list of advertised contracts. * * @param implementationClass The fully qualified name of the implementation * class to be associated with the PredicateBuilder. * * @return A {@link DescriptorBuilder} that can be used to further build up the * {@link Descriptor} * @throws IllegalArgumentException if implementationClass is null */ public static DescriptorBuilder link(String implementationClass) throws IllegalArgumentException { return link(implementationClass, true); }
/** * This method links an implementation class with a {@link DescriptorBuilder}, to * be used to further build the {@link Descriptor}. This method will automatically * put the implementationClass into the list of advertised contracts. * * @param implementationClass The fully qualified name of the implementation * class to be associated with the PredicateBuilder. * * @return A {@link DescriptorBuilder} that can be used to further build up the * {@link Descriptor} * @throws IllegalArgumentException if implementationClass is null */ public static DescriptorBuilder link(String implementationClass) throws IllegalArgumentException { return link(implementationClass, true); }
configurator.bind(BuilderHelper.link(ConfigSupport.class) .in(Singleton.class.getName()) .build()); configurator.bind(BuilderHelper.link(Transactions.class) .in(Singleton.class.getName()) .build()); configurator.bind(BuilderHelper.link(SimpleConfigBeanDomDecorator.class) .to(DomDecorator.class).in(Singleton.class.getName()) .build()); configurator.bind(BuilderHelper.link(ConfigurationPopulator.class) .in(Singleton.class.getName()) .build()); configurator.bind(BuilderHelper.link(DummyPopulator.class) .to(Populator.class).in(Singleton.class.getName()) .build());
private static DescriptorImpl getTransactions() { return BuilderHelper.link(TRANSACTIONS_IMPL). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getTransactions() { return BuilderHelper.link(TRANSACTIONS_IMPL). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigInstanceListener() { return BuilderHelper.link(CONFIG_INSTANCE_LISTENER_IMPL). to(InstanceLifecycleListener.class.getName()). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigInstanceListener() { return BuilderHelper.link(CONFIG_INSTANCE_LISTENER_IMPL). to(InstanceLifecycleListener.class.getName()). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigurationPopulator() { return BuilderHelper.link(CONFIGURATION_POPULATOR_IMPL). to(CONFIG_POPULATOR). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigSupport() { return BuilderHelper.link(CONFIG_SUPPORT_IMPL). to(CONFIGURATION_UTILITIES). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigurationPopulator() { return BuilderHelper.link(CONFIGURATION_POPULATOR_IMPL). to(CONFIG_POPULATOR). in(Singleton.class.getName()).build(); }
private static DescriptorImpl getConfigSupport() { return BuilderHelper.link(CONFIG_SUPPORT_IMPL). to(CONFIGURATION_UTILITIES). in(Singleton.class.getName()).build(); }
private <T extends MessageBodyReader<?> & MessageBodyWriter<?>> void bindSingletonReaderWriterProvider(Class<T> provider) { bind(BuilderHelper.link(provider).to(MessageBodyReader.class).to(MessageBodyWriter.class).in(Singleton.class).build()); } }
private <T extends MessageBodyReader<?> & MessageBodyWriter<?>> void bindSingletonReaderWriterProvider(Class<T> provider) { bind(BuilderHelper.link(provider).to(MessageBodyReader.class).to(MessageBodyWriter.class).in(Singleton.class).build()); } }
@Override protected void configure() { bindSingletonReaderWriterProvider(JsonRootElementProvider.App.class); bindSingletonReaderWriterProvider(JsonRootElementProvider.General.class); bindSingletonReaderWriterProvider(JsonJaxbElementProvider.App.class); bindSingletonReaderWriterProvider(JsonJaxbElementProvider.General.class); bindSingletonReaderWriterProvider(JsonListElementProvider.App.class); bindSingletonReaderWriterProvider(JsonListElementProvider.General.class); bindSingletonReaderWriterProvider(JsonArrayProvider.App.class); bindSingletonReaderWriterProvider(JsonArrayProvider.General.class); bindSingletonReaderWriterProvider(JsonObjectProvider.App.class); bindSingletonReaderWriterProvider(JsonObjectProvider.General.class); bind(BuilderHelper.link(JsonWithPaddingProvider.class).to(MessageBodyWriter.class).in(Singleton.class).build()); }