public static abstract class AnotherValueMixin implements AnotherValue { @This private AnotherValueInternalState internalState; @Override public String internalVal() { return internalState.val2().get(); } }
public static abstract class AnotherValueMixin implements AnotherValue { @This private AnotherValueInternalState internalState; @Override public String internalVal() { return internalState.val2().get(); } }
public class EmptyCassandraTableMixin implements CanRemoveAll { @This private CassandraCluster cluster; @Override public void removeAll() { cluster.cassandraClientSession().execute( "TRUNCATE TABLE " + cluster.tableName() + ";"); } }
public abstract class MyServiceMixin implements MyService { @This Configuration<MyConfig> myconf; @Override public PersonDetails details() { return myconf.get().me().get(); } }
public static class TestMixin2 implements TestService { @This Configuration<TestServiceConfiguration> config; public String test() { return "mixin2"; } }
public static class TestMixin implements TestService { @This Configuration<TestConfiguration> config; @Override public void test() { assertThat( config.get().constrained().get(), equalTo( "constrained" ) ); } }
public abstract static class SomeMixin implements Some { @This private Other other; public String method() { other.other(); return "method()"; } }
class Mixin implements TestActivation { @This Configuration<TestConfiguration> config; public void printConfig() { System.out.println( "Activate service:" + config.get().stringConfig().get() ); } }
class Mixin implements TestActivation { @This Configuration<TestConfiguration> config; public void printConfig() { System.out.println( "Activate service:" + config.get().stringConfig().get() ); } }
public class Mixin implements View1 { @This FooModel model; @Override public String bar() { return model.getBar(); } } }
public class Mixin implements View2 { @This FooModel model; @Override public String bar() { return model.getBar(); } } }
public DoesConcern( @This Does work ) { if( work == null ) { throw new NullPointerException(); } System.out.print( "Niclas " ); }
public TestDMixin( @This TestC testC ) { this.testC = testC; testC.testC(); }
@AppliesTo( CountCalls.class ) public static class CountCallsSideEffect extends GenericSideEffect { @This private Counter counter; protected void invoke( Method method, Object[] args ) { counter.increment(); } }
public TestBMixin( @This TestA testA ) { this.testA = testA; testA.test(); }
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 ); }
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 ); }
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 ); }
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 ); }