Codota Logo
Service.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.polygene.api.injection.scope.Service
constructor

Best Java code snippets using org.apache.polygene.api.injection.scope.Service.<init> (Showing top 20 results out of 540)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: apache/attic-polygene-java

public class ConsoleViewerMixin
  implements LogServiceListener
{
  @Service private LoggingService service;
}

origin: apache/attic-polygene-java

public class SwingViewer extends JFrame
{
  @Service private Iterable<LoggingService> services;
}

origin: org.apache.polygene.libraries/org.apache.polygene.library.http

public SecureJettyMixin( @This HasIdentity meAsIdentity,
             @Service Server jettyServer,
             @Service Iterable<ServiceReference<ServletContextListener>> contextListeners,
             @Service Iterable<ServiceReference<Servlet>> servlets,
             @Service Iterable<ServiceReference<Filter>> filters,
             @Optional @Service MBeanServer mBeanServer )
{
  super( meAsIdentity.identity().get(), jettyServer, contextListeners, servlets, filters, mBeanServer );
}
origin: org.apache.polygene.libraries/org.apache.polygene.library.http

public JettyMixin( @This HasIdentity meAsIdentity,
          @Service Server jettyServer,
          @Service Iterable<ServiceReference<ServletContextListener>> contextListeners,
          @Service Iterable<ServiceReference<Servlet>> servlets,
          @Service Iterable<ServiceReference<Filter>> filters,
          @Optional @Service MBeanServer mBeanServer )
{
  super( meAsIdentity.identity().get(), jettyServer, contextListeners, servlets, filters, mBeanServer );
}
origin: apache/attic-polygene-java

public SecureJettyMixin( @This HasIdentity meAsIdentity,
             @Service Server jettyServer,
             @Service Iterable<ServiceReference<ServletContextListener>> contextListeners,
             @Service Iterable<ServiceReference<Servlet>> servlets,
             @Service Iterable<ServiceReference<Filter>> filters,
             @Optional @Service MBeanServer mBeanServer )
{
  super( meAsIdentity.identity().get(), jettyServer, contextListeners, servlets, filters, mBeanServer );
}
origin: apache/attic-polygene-java

public JettyMixin( @This HasIdentity meAsIdentity,
          @Service Server jettyServer,
          @Service Iterable<ServiceReference<ServletContextListener>> contextListeners,
          @Service Iterable<ServiceReference<Servlet>> servlets,
          @Service Iterable<ServiceReference<Filter>> filters,
          @Optional @Service MBeanServer mBeanServer )
{
  super( meAsIdentity.identity().get(), jettyServer, contextListeners, servlets, filters, mBeanServer );
}
origin: apache/attic-polygene-java

  class Mixin
    implements MyEntity
  {
    @Service
    private YourService service;
    @Override
    public void logic()
    {
      YourEntity result = service.get();
    }
  }
}
origin: apache/attic-polygene-java

  public static class UnderTestMixin
    implements UnderTest
  {
    @Service private UuidService service;

    public String generateUuid( int len )
    {
      return service.generateUuid( len );
    }
  }
}
origin: apache/attic-polygene-java

public static class ServiceConsumer
{
  private
  @Service
  TestService service;
  public TestService getService()
  {
    return service;
  }
}
origin: apache/attic-polygene-java

abstract class IdentityMixin<T extends HasIdentity>
  implements ServerResource<T>
{
  @This
  private Parameters<T> parameters;
  @Service
  private IdentityManager identityManager;
  @Override
  public Identity identity()
  {
    return identityManager.generate( parameters.entityType().get(), parameters.id().get() );
  }
}
origin: apache/attic-polygene-java

  public static class UnderTestMixin
    implements UnderTest
  {
    @Service private Sequencing service;

    public long nextValue()
    {
      return service.newSequenceValue();
    }

    public long currentValue()
    {
      return service.currentSequenceValue();
    }
  }
}
origin: apache/attic-polygene-java

  public static class UnderTestMixin
    implements UnderTest
  {
    @Service private Sequencing service;

    public long nextValue()
    {
      return service.newSequenceValue();
    }

    public long currentValue()
    {
      return service.currentSequenceValue();
    }
  }
}
origin: apache/attic-polygene-java

public class JavaxJsonConvertersSerializationTest extends AbstractConvertersSerializationTest
{
  @Override
  public void assemble( ModuleAssembly module )
  {
    new JavaxJsonSerializationAssembler().assemble( module );
    super.assemble( module );
  }

  @Service
  private JavaxJsonFactories jsonFactories;

  @Override
  protected String getStringFromValueState( String state, String key ) throws Exception
  {
    JsonObject jsonObject = jsonFactories.readerFactory().createReader( new StringReader( state ) ).readObject();
    return jsonObject.getString( key );
  }
}

origin: apache/attic-polygene-java

public Mixin( @Service Iterable<ServiceReference<CrudRepository>> repositories )
{
  StreamSupport.stream( repositories.spliterator(), true ).forEach( ref -> {
    Class type = ref.metaInfo( EntityTypeDescriptor.class ).entityType();
    this.repositories.put( type, ref.get() );
  } );
}
origin: org.apache.polygene.core/org.apache.polygene.core.api

public TimingCaptureConcern( @Structure Module module,
               @Service @Optional MetricsProvider metrics,
               @Invocation Method method
)
{
  super( module, metrics, method );
}
origin: apache/attic-polygene-java

public TimingCaptureConcern( @Structure Module module,
               @Service @Optional MetricsProvider metrics,
               @Invocation Method method
)
{
  super( module, metrics, method );
}
origin: apache/attic-polygene-java

public ServiceConsumer( @Uses String serviceId, @Service Iterable<ServiceReference<TestService>> serviceRefs )
{
  service = StreamSupport.stream( serviceRefs.spliterator(), false )
              .filter( withId( serviceId ) )
              .findFirst().map( ServiceReference::get ).orElse( null );
}
origin: apache/attic-polygene-java

public static abstract class SomeMixin
  implements Some
{
  @Service
  DummyService service;
  @Structure
  Module module;
  public DummyService service()
  {
    return service;
  }
  public Module module()
  {
    return module;
  }
}
origin: apache/attic-polygene-java

public static abstract class SomeMixin
  implements Some
{
  @Service
  DummyService service;
  @Structure
  Module module;
  public DummyService service()
  {
    return service;
  }
  public Module module()
  {
    return module;
  }
}
origin: apache/attic-polygene-java

  public static class TestObject
  {
    @Service
    @Optional
    @Available
    TestService service;

    public TestService getService()
    {
      return service;
    }
  }
}
org.apache.polygene.api.injection.scopeService<init>

Popular methods of Service

    Popular in Java

    • Reading from database using SQL prepared statement
    • scheduleAtFixedRate (Timer)
    • getExternalFilesDir (Context)
    • getApplicationContext (Context)
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • PrintWriter (java.io)
      Prints formatted representations of objects to a text-output stream. This class implements all of th
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • JOptionPane (javax.swing)
    • JTextField (javax.swing)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now