本文整理了Java中org.apache.polygene.api.injection.scope.This.<init>()
方法的一些代码示例,展示了This.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。This.<init>()
方法的具体详情如下:
包路径:org.apache.polygene.api.injection.scope.This
类名称:This
方法名:<init>
暂无
代码示例来源:origin: org.apache.polygene.core/org.apache.polygene.core.testsupport
public static abstract class AnotherValueMixin
implements AnotherValue
{
@This
private AnotherValueInternalState internalState;
@Override
public String internalVal()
{
return internalState.val2().get();
}
}
代码示例来源:origin: apache/attic-polygene-java
public static abstract class AnotherValueMixin
implements AnotherValue
{
@This
private AnotherValueInternalState internalState;
@Override
public String internalVal()
{
return internalState.val2().get();
}
}
代码示例来源:origin: apache/attic-polygene-java
public class EmptyCassandraTableMixin
implements CanRemoveAll
{
@This
private CassandraCluster cluster;
@Override
public void removeAll()
{
cluster.cassandraClientSession().execute( "TRUNCATE TABLE " + cluster.tableName() + ";");
}
}
代码示例来源:origin: apache/attic-polygene-java
public abstract class MyServiceMixin
implements MyService
{
@This
Configuration<MyConfig> myconf;
@Override
public PersonDetails details()
{
return myconf.get().me().get();
}
}
代码示例来源:origin: apache/attic-polygene-java
public static class TestMixin2
implements TestService
{
@This
Configuration<TestServiceConfiguration> config;
public String test()
{
return "mixin2";
}
}
代码示例来源:origin: apache/attic-polygene-java
public static class TestMixin
implements TestService
{
@This
Configuration<TestConfiguration> config;
@Override
public void test()
{
assertThat( config.get().constrained().get(), equalTo( "constrained" ) );
}
}
代码示例来源:origin: apache/attic-polygene-java
public abstract static class SomeMixin
implements Some
{
@This
private Other other;
public String method()
{
other.other();
return "method()";
}
}
代码示例来源:origin: apache/attic-polygene-java
class Mixin
implements TestActivation
{
@This
Configuration<TestConfiguration> config;
public void printConfig()
{
System.out.println( "Activate service:" + config.get().stringConfig().get() );
}
}
代码示例来源:origin: apache/attic-polygene-java
class Mixin
implements TestActivation
{
@This
Configuration<TestConfiguration> config;
public void printConfig()
{
System.out.println( "Activate service:" + config.get().stringConfig().get() );
}
}
代码示例来源:origin: apache/attic-polygene-java
public class Mixin
implements View1
{
@This
FooModel model;
@Override
public String bar()
{
return model.getBar();
}
}
}
代码示例来源:origin: apache/attic-polygene-java
public class Mixin
implements View2
{
@This
FooModel model;
@Override
public String bar()
{
return model.getBar();
}
}
}
代码示例来源:origin: apache/attic-polygene-java
private static class Annotated
{
@This
String uses;
@Optional
@This
String usesOptional;
}
}
代码示例来源:origin: apache/attic-polygene-java
public DoesConcern( @This Does work )
{
if( work == null )
{
throw new NullPointerException();
}
System.out.print( "Niclas " );
}
代码示例来源:origin: apache/attic-polygene-java
public TestDMixin( @This TestC testC )
{
this.testC = testC;
testC.testC();
}
代码示例来源:origin: apache/attic-polygene-java
@AppliesTo( CountCalls.class )
public static class CountCallsSideEffect
extends GenericSideEffect
{
@This
private Counter counter;
protected void invoke( Method method, Object[] args )
{
counter.increment();
}
}
代码示例来源:origin: apache/attic-polygene-java
public TestBMixin( @This TestA testA )
{
this.testA = testA;
testA.test();
}
代码示例来源: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: 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: 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 );
}
内容来源于网络,如有侵权,请联系作者删除!