Search in sources :

Example 1 with MailerByteCodeScanner

use of act.mail.bytecode.MailerByteCodeScanner in project actframework by actframework.

the class App method loadBuiltInScanners.

private void loadBuiltInScanners() {
    scannerManager.register(new GenieModuleScanner());
    scannerManager.register(new ClassInfoByteCodeScanner());
    scannerManager.register(new ClassFinderByteCodeScanner());
    scannerManager.register(new ControllerByteCodeScanner());
    scannerManager.register(new MailerByteCodeScanner());
    scannerManager.register(new JobByteCodeScanner());
    scannerManager.register(new Password.ByteCodeScanner());
    scannerManager.register(new SimpleBean.ByteCodeScanner());
    scannerManager.register(new SimpleEventListenerByteCodeScanner());
    scannerManager.register(new CommanderByteCodeScanner());
    scannerManager.register(new EntityInfoByteCodeScanner());
    scannerManager.register(new RythmTransformerScanner());
    scannerManager.register(new MetricContextScanner());
    scannerManager.register(new ImplicitVariableProvider.TemplateVariableScanner(this));
    scannerManager.register(new ConfigurationByteCodeScanner());
}
Also used : JobByteCodeScanner(act.job.bytecode.JobByteCodeScanner) ControllerByteCodeScanner(act.controller.bytecode.ControllerByteCodeScanner) MetricContextScanner(act.metric.MetricContextScanner) CommanderByteCodeScanner(act.cli.bytecode.CommanderByteCodeScanner) ConfigurationByteCodeScanner(act.conf.ConfigurationByteCodeScanner) GenieModuleScanner(act.inject.genie.GenieModuleScanner) ImplicitVariableProvider(act.view.ImplicitVariableProvider) RythmTransformerScanner(act.view.rythm.RythmTransformerScanner) EntityInfoByteCodeScanner(act.db.meta.EntityInfoByteCodeScanner) SimpleEventListenerByteCodeScanner(act.event.bytecode.SimpleEventListenerByteCodeScanner) MailerByteCodeScanner(act.mail.bytecode.MailerByteCodeScanner) Password(act.validation.Password)

Example 2 with MailerByteCodeScanner

use of act.mail.bytecode.MailerByteCodeScanner in project actframework by actframework.

the class MailerEnhancerTest method setup.

@Before
public void setup() throws Exception {
    super.setup();
    invokeLog = mock(InvokeLog.class);
    scanner = new MailerByteCodeScanner();
    scanner.setApp(mockApp);
    classLoader = new TestingAppClassLoader(mockApp);
    infoSrc = classLoader.mailerClassMetaInfoManager();
    scannerManager = mock(AppCodeScannerManager.class);
    when(mockApp.classLoader()).thenReturn(classLoader);
    when(mockApp.scannerManager()).thenReturn(scannerManager);
    C.List<AppByteCodeScanner> scanners = C.list(scanner);
    when(scannerManager.byteCodeScanners()).thenReturn(scanners);
    InvokeLogFactory.set(invokeLog);
    base = new File("./target/test-classes");
}
Also used : AppCodeScannerManager(act.app.AppCodeScannerManager) C(org.osgl.util.C) AppByteCodeScanner(act.app.AppByteCodeScanner) TestingAppClassLoader(act.app.TestingAppClassLoader) InvokeLog(testapp.util.InvokeLog) MailerByteCodeScanner(act.mail.bytecode.MailerByteCodeScanner) Before(org.junit.Before)

Aggregations

MailerByteCodeScanner (act.mail.bytecode.MailerByteCodeScanner)2 AppByteCodeScanner (act.app.AppByteCodeScanner)1 AppCodeScannerManager (act.app.AppCodeScannerManager)1 TestingAppClassLoader (act.app.TestingAppClassLoader)1 CommanderByteCodeScanner (act.cli.bytecode.CommanderByteCodeScanner)1 ConfigurationByteCodeScanner (act.conf.ConfigurationByteCodeScanner)1 ControllerByteCodeScanner (act.controller.bytecode.ControllerByteCodeScanner)1 EntityInfoByteCodeScanner (act.db.meta.EntityInfoByteCodeScanner)1 SimpleEventListenerByteCodeScanner (act.event.bytecode.SimpleEventListenerByteCodeScanner)1 GenieModuleScanner (act.inject.genie.GenieModuleScanner)1 JobByteCodeScanner (act.job.bytecode.JobByteCodeScanner)1 MetricContextScanner (act.metric.MetricContextScanner)1 Password (act.validation.Password)1 ImplicitVariableProvider (act.view.ImplicitVariableProvider)1 RythmTransformerScanner (act.view.rythm.RythmTransformerScanner)1 Before (org.junit.Before)1 C (org.osgl.util.C)1 InvokeLog (testapp.util.InvokeLog)1