Search in sources :

Example 1 with Managed

use of com.acme.Managed in project jetty.project by eclipse.

the class MBeanContainerTest method setUpDestroy.

private void setUpDestroy() {
    managed = new Managed();
    mbeanContainer.beanAdded(null, managed);
}
Also used : Managed(com.acme.Managed)

Example 2 with Managed

use of com.acme.Managed in project jetty.project by eclipse.

the class MBeanContainerTest method getManaged.

private Managed getManaged() {
    beanName = "mngd:bean";
    beanName = mbeanContainer.makeName(beanName);
    Managed managed = new Managed();
    managed.setManaged(beanName);
    mbeanContainer.beanAdded(null, managed);
    return managed;
}
Also used : Managed(com.acme.Managed)

Example 3 with Managed

use of com.acme.Managed in project jetty.project by eclipse.

the class MBeanContainerTest method setUpBeanRemoved.

private void setUpBeanRemoved() {
    managed = new Managed();
    mbeanContainer.beanRemoved(null, managed);
    mbeanContainer.beanAdded(null, managed);
}
Also used : Managed(com.acme.Managed)

Example 4 with Managed

use of com.acme.Managed in project jetty.project by eclipse.

the class MBeanContainerTest method setBeanAdded.

private void setBeanAdded() {
    managed = new Managed();
    Container container = new ContainerLifeCycle();
    mbeanContainer.beanAdded(container, managed);
    mbeanServer = mbeanContainer.getMBeanServer();
}
Also used : Container(org.eclipse.jetty.util.component.Container) ContainerLifeCycle(org.eclipse.jetty.util.component.ContainerLifeCycle) Managed(com.acme.Managed)

Example 5 with Managed

use of com.acme.Managed in project jetty.project by eclipse.

the class LogMBeanTest method setUp.

@Before
public void setUp() {
    managed = new Managed();
    logMBean = new LogMBean(managed);
}
Also used : Managed(com.acme.Managed) Before(org.junit.Before)

Aggregations

Managed (com.acme.Managed)5 Container (org.eclipse.jetty.util.component.Container)1 ContainerLifeCycle (org.eclipse.jetty.util.component.ContainerLifeCycle)1 Before (org.junit.Before)1