org.apache.polygene.api.structure.Module.newTransient()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.apache.polygene.api.structure.Module.newTransient()方法的一些代码示例,展示了Module.newTransient()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.newTransient()方法的具体详情如下:
包路径:org.apache.polygene.api.structure.Module
类名称:Module
方法名:newTransient

Module.newTransient介绍

暂无

代码示例

代码示例来源:origin: org.apache.polygene.core/org.apache.polygene.core.api

@Override
protected T initialValue()
{
  return module.instance().newTransient( type );
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchObjectTypeException.class )
public void givenFromTransientWhenAccessingBelowLayerVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.belowLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingModuleLayerVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.moduleLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingBelowApplicationVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.belowApplicationVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchEntityTypeException.class )
public void givenFromTransientWhenAccessingBelowLayerVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.belowLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingBesideApplicationVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.besideApplicationVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchTransientTypeException.class )
public void givenFromTransientWhenAccessingBesideModuleVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.besideModuleVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingModuleApplicationVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.moduleApplicationVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingBesideLayerVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.besideLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchValueTypeException.class )
public void givenFromTransientWhenAccessingAboveApplicationVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.aboveApplicationVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingModuleLayerVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.moduleLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingBesideLayerVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.besideLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchObjectTypeException.class )
public void givenFromTransientWhenAccessingBelowModuleVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.belowModuleVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchObjectTypeException.class )
public void givenFromTransientWhenAccessingAboveLayerVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.aboveLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingBesideApplicationVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.besideApplicationVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchEntityTypeException.class )
public void givenFromTransientWhenAccessingAboveLayerVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.aboveLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test( expected = NoSuchValueTypeException.class )
public void givenFromTransientWhenAccessingBesideModuleVisibleExpectException()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.besideModuleVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingModuleLayerVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.moduleLayerVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void givenFromTransientWhenAccessingModuleModuleVisibleExpectSuccess()
{
  FromTransient transientt = module.newTransient( FromTransient.class );
  transientt.moduleModuleVisible();
}

代码示例来源:origin: apache/attic-polygene-java

@Test
public void whenInvocationInjectionWithMethodWhenInjectedThenInjectMethod()
  throws Exception
{
  SingletonAssembler assembly = new SingletonAssembler( module -> module.transients( MyComposite.class ) );
  MyComposite composite = assembly.module().newTransient( MyComposite.class );
  composite.doStuff();
  composite.doStuff();
  composite.doStuff2();
  composite.doStuff3();
}

相关文章