public LogOnConsoleSideEffect( @Invocation Method thisMethod ) { bundle = ResourceBundle.getBundle( thisMethod.getDeclaringClass().getName() ); }
public DebugOnConsoleSideEffect( @Invocation Method thisMethod ) { bundle = ResourceBundle.getBundle( thisMethod.getDeclaringClass().getName() ); }
implements InvocationHandler @Invocation private Trace trace;
implements MyComposite @Invocation Foo foo; @Invocation Method method; @Invocation AnnotatedElement ae;
public TimingCaptureConcern( @Structure Module module, @Service @Optional MetricsProvider metrics, @Invocation Method method ) { super( module, metrics, method ); }
public TimingCaptureConcern( @Structure Module module, @Service @Optional MetricsProvider metrics, @Invocation Method method ) { super( module, metrics, method ); }
@Invocation private RequiresAuthentication requiresAuthentication; @Invocation private RequiresGuest requiresGuest; @Invocation private RequiresPermissions requiresPermissions; @Invocation private RequiresRoles requiresRoles; @Invocation private RequiresUser requiresUser;
@Invocation private RequiresAuthentication requiresAuthentication; @Invocation private RequiresGuest requiresGuest; @Invocation private RequiresPermissions requiresPermissions; @Invocation private RequiresRoles requiresRoles; @Invocation private RequiresUser requiresUser;
public static abstract class ReadOnlyMapConcern extends ConcernOf<Map> implements Map { @Invocation private Method method; @This private Composite me; @Override public Object put( Object key, Object value ) { throw new ReadOnlyException( me, method ); } @Override public Object remove( Object key ) { throw new ReadOnlyException( me, method ); } @Override public void putAll( Map m ) { throw new ReadOnlyException( me, method ); } @Override public void clear() { throw new ReadOnlyException( me, method ); } }
public TimingCaptureAllConcern( @Structure Module module, @Service @Optional MetricsProvider metrics, @Invocation Method method ) { if( metrics == null ) { timer = null; } else { MetricsTimerFactory factory = metrics.createFactory( MetricsTimerFactory.class ); TimingCapture capture = method.getAnnotation( TimingCapture.class ); String timerName; if( capture == null || "".equals( capture.value() ) ) { timerName = MetricNames.nameFor( module, method ); } else { timerName = capture.value(); } timer = factory.createTimer( timerName ); } }
public TimingCaptureAllConcern( @Structure Module module, @Service @Optional MetricsProvider metrics, @Invocation Method method ) { if( metrics == null ) { timer = null; } else { MetricsTimerFactory factory = metrics.createFactory( MetricsTimerFactory.class ); TimingCapture capture = method.getAnnotation( TimingCapture.class ); String timerName; if( capture == null || "".equals( capture.value() ) ) { timerName = MetricNames.nameFor( module, method ); } else { timerName = capture.value(); } timer = factory.createTimer( timerName ); } }
@Invocation private FirstAnnotation first; @Invocation private SecondAnnotation second;
private UnitOfWorkFactory uowf; @Invocation private UnitOfWorkPropagation propagation;
private UnitOfWorkFactory uowf; @Invocation private UnitOfWorkPropagation propagation;